-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
51 lines (51 loc) · 1.22 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"standard",
"standard-react",
"plugin:prettier/recommended",
"prettier",
"plugin:@typescript-eslint/eslint-recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "react"],
"settings": {
"react": {
"pragma": "React",
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx"],
"moduleDirectory": ["src", "node_modules"]
}
}
},
"rules": {
"comma-dangle": 1,
"no-unused-vars": 1,
"no-undef": 1,
"quotes": 1,
"indent": ["error", 2],
"react/prop-types": "off",
"space-before-function-paren": 0,
"no-use-before-define": 0,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/no-var-requires": 1,
"no-unused-expressions": "error",
"@typescript-eslint/no-unused-expressions": ["error", { "enforceForJSX": true }],
"@typescript-eslint/no-non-null-asserted-optional-chain": "error"
}
}