diff --git a/.eslintrc.js b/.eslintrc.js index 8f3053a3..bf90632e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,14 +4,17 @@ module.exports = { es2021: true, node: true, }, + ignorePatterns: [ + // Legacy/vendor-style JS in app router. Keep out of CI lint gate for now. + "app/api/index.js", + ], extends: [ "plugin:react/jsx-runtime", "plugin:react/recommended", - "plugin:@next/next/recommended", + "next/core-web-vitals", "standard", "prettier", "plugin:@typescript-eslint/recommended", // Add TypeScript recommended rules - "plugin:@typescript-eslint/recommended-requiring-type-checking", // Add rules that require type checking ], parser: "@typescript-eslint/parser", // Using the TypeScript parser parserOptions: { @@ -20,11 +23,9 @@ module.exports = { }, ecmaVersion: 12, sourceType: "module", - project: "./tsconfig.json", // Specify the path to tsconfig.json }, plugins: [ "react", - "react-hooks", "prettier", "@typescript-eslint", // Add TypeScript plugin ], @@ -38,9 +39,36 @@ module.exports = { "react/no-unknown-property": "off", //