-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
54 lines (54 loc) · 1.55 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"env": {
"browser": true,
"es2022": true,
"node": true,
"jest": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"react/jsx-uses-vars": "warn",
"react/jsx-uses-react": "warn",
"@typescript-eslint/no-explicit-any": 2,
"linebreak-style": 0,
"react/react-in-jsx-scope": "off",
"react/jsx-no-constructed-context-values": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"react/destructuring-assignment": ["off", "always"],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/indent": "off",
"import/no-cycle": "off",
"no-case-declarations": "off",
"object-curly-newline": "off",
"no-plusplus": "off",
"react/no-unescaped-entities": "off"
},
"settings": {
"react": {
"version": "detect"
},
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}