20 lines
530 B
JavaScript
20 lines
530 B
JavaScript
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
|
|
import nextTypescript from "eslint-config-next/typescript";
|
|
|
|
/** @type {import('eslint').Linter.Config[]} */
|
|
const eslintConfig = [
|
|
{ ignores: ["templates/**", "docs/**", "generated/**", ".next/**", "node_modules/**"] },
|
|
...nextCoreWebVitals,
|
|
...nextTypescript,
|
|
{
|
|
rules: {
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
],
|
|
},
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|