19 lines
482 B
JavaScript
19 lines
482 B
JavaScript
const { defineConfig, globalIgnores } = require("eslint/config");
|
|
const nextVitals = require("eslint-config-next/core-web-vitals");
|
|
const nextTs = require("eslint-config-next/typescript");
|
|
|
|
const eslintConfig = defineConfig([
|
|
...nextVitals,
|
|
...nextTs,
|
|
// Override default ignores of eslint-config-next.
|
|
globalIgnores([
|
|
// Default ignores of eslint-config-next:
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"next-env.d.ts",
|
|
]),
|
|
]);
|
|
|
|
module.exports = eslintConfig;
|