|
1 | 1 | { |
2 | | - "parser": "@typescript-eslint/parser", |
3 | | - "env": { |
4 | | - "browser": true, |
5 | | - "node": true |
6 | | - }, |
7 | | - "plugins": ["@typescript-eslint", "react", "react-hooks"], |
8 | | - "extends": [ |
9 | | - "eslint:recommended", |
10 | | - "plugin:@typescript-eslint/recommended", |
11 | | - "plugin:react/recommended", |
12 | | - "plugin:react/jsx-runtime", |
13 | | - "plugin:import/recommended", |
14 | | - "plugin:import/typescript", |
15 | | - "plugin:prettier/recommended" |
16 | | - ], |
| 2 | + "extends": "@aboutbits/eslint-config/ts-react", |
17 | 3 | "parserOptions": { |
18 | | - "sourceType": "module", |
19 | | - "ecmaVersion": 2018 |
20 | | - }, |
21 | | - "settings": { |
22 | | - "react": { |
23 | | - "version": "detect" |
24 | | - }, |
25 | | - "import/resolver": { |
26 | | - "node": { |
27 | | - "paths": ["./"] |
28 | | - } |
29 | | - } |
| 4 | + "project": true |
30 | 5 | }, |
31 | | - "rules": { |
32 | | - "react-hooks/rules-of-hooks": "error", |
33 | | - "react-hooks/exhaustive-deps": "error", |
34 | | - "@typescript-eslint/no-unused-vars": [ |
35 | | - "error", |
36 | | - { |
37 | | - "ignoreRestSiblings": true, |
38 | | - "varsIgnorePattern": "^[iI]gnored", |
39 | | - "argsIgnorePattern": "^_", |
40 | | - "caughtErrorsIgnorePattern": "^ignore" |
41 | | - } |
42 | | - ], |
43 | | - "@typescript-eslint/member-delimiter-style": "off", |
44 | | - "@typescript-eslint/explicit-function-return-type": "off", |
45 | | - "@next/next/no-img-element": "off", |
46 | | - "import/order": [ |
47 | | - "error", |
48 | | - { |
49 | | - "groups": [ |
50 | | - "builtin", |
51 | | - "external", |
52 | | - "unknown", |
53 | | - "parent", |
54 | | - "sibling", |
55 | | - "index" |
56 | | - ] |
57 | | - } |
58 | | - ], |
59 | | - "no-console": [ |
60 | | - "error", |
61 | | - { |
62 | | - "allow": ["warn", "error", "assert"] |
63 | | - } |
64 | | - ] |
65 | | - } |
| 6 | + "ignorePatterns": ["node_modules", "dist"] |
66 | 7 | } |
0 commit comments