{ "env": { "browser": true, "commonjs": true, "es6": true, "node": true }, "extends": [ "airbnb", "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:import/errors", "plugin:import/typescript", "plugin:import/warnings", "plugin:jsx-a11y/recommended", "plugin:prettier/recommended", "plugin:react/recommended", "plugin:react-hooks/recommended", "prettier/@typescript-eslint", "prettier/react" ], "plugins": [ "@typescript-eslint", "import", "jsx-a11y", "prettier", "react", "react-hooks" ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": 2020, "sourceType": "module" }, "rules": { "complexity": ["error", 5], "import/extensions": [ "error", "ignorePackages", { "js": "never", "jsx": "never", "ts": "never", "tsx": "never" } ], // Allow JSX in files with other extensions "react/jsx-filename-extension": [1, { "extensions": [".tsx"] }], // Use TypeScript's types for component props "react/prop-types": "off", // Importing React is not required in Next.js "react/react-in-jsx-scope": "off" }, "settings": { "react": { "version": "detect" } } }