|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + node: true, |
| 5 | + es6: true, |
| 6 | + }, |
| 7 | + parserOptions: { ecmaVersion: 8 }, |
| 8 | + ignorePatterns: ["node_modules/*", ".next/*", ".out/*", "!.prettierrc.js"], |
| 9 | + extends: ["eslint:recommended"], |
| 10 | + plugins: ["simple-import-sort"], |
| 11 | + overrides: [ |
| 12 | + { |
| 13 | + files: ["**/*.ts", "**/*.tsx"], |
| 14 | + parser: "@typescript-eslint/parser", |
| 15 | + settings: { react: { version: "detect" } }, |
| 16 | + env: { |
| 17 | + browser: true, |
| 18 | + node: true, |
| 19 | + es6: true, |
| 20 | + }, |
| 21 | + extends: [ |
| 22 | + "eslint:recommended", |
| 23 | + "plugin:@typescript-eslint/recommended", |
| 24 | + "plugin:react/recommended", |
| 25 | + "plugin:react-hooks/recommended", |
| 26 | + "prettier/@typescript-eslint", |
| 27 | + "plugin:prettier/recommended", |
| 28 | + ], |
| 29 | + rules: { |
| 30 | + "simple-import-sort/imports": "error", |
| 31 | + "simple-import-sort/exports": "error", |
| 32 | + "sort-imports": "off", |
| 33 | + "import/order": "off", |
| 34 | + "@typescript-eslint/ban-ts-comment": "off", |
| 35 | + "react-hooks/exhaustive-deps": "off", |
| 36 | + "prettier/prettier": ["error", {}, { usePrettierrc: true }], |
| 37 | + "react/prop-types": "off", |
| 38 | + "react/react-in-jsx-scope": "off", |
| 39 | + "@typescript-eslint/no-unused-vars": ["error"], |
| 40 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 41 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 42 | + }, |
| 43 | + }, |
| 44 | + ], |
| 45 | +}; |
0 commit comments