-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
executable file
·89 lines (89 loc) · 2.51 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"extends": [
"airbnb",
"prettier",
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
"plugin:@typescript-eslint/recommended"
],
"env": {
"browser": true,
"es6": true,
"jest": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"js": true,
"jsx": true,
"ts": true,
"tsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"codeFrame": false,
"allowImportExportEverywhere": false
},
"plugins": ["react", "jsx-a11y", "import"],
"rules": {
"react/no-array-index-key": 0,
"react-hooks/rules-of-hooks": 0,
"react-hooks/exhaustive-deps": 0,
"react/display-name": 1,
"jsx-a11y/rule-name": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"prettier/prettier": 0,
"global-require": "off",
"no-redeclare": 0,
"no-undef": 0,
"no-unused-expressions": [0, { "allowTaggedTemplates": true }],
"no-return-assign": ["off"],
"prefer-promise-reject-errors": ["off"],
"react/prop-types": ["warn"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-unused-vars": "off",
"import/no-named-as-default-member": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"import/named": 0,
"import/order": 0,
"import/no-self-import": 0,
"import/no-duplicates": 0,
"import/extensions": 0,
"import/no-cycle": 0,
"import/no-named-as-default": 0,
"import/no-useless-path-segments": 0,
"import/no-extraneous-dependencies": [
0,
{ "devDependencies": false, "optionalDependencies": false, "peerDependencies": false }
],
"react/jsx-one-expression-per-line": [0, { "allow": "none|literal|single-child" }],
"react/destructuring-assignment": [0, "always", { "ignoreClassFields": "<boolean>" }]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {}
},
"react": {
"version": "detect" // Tells eslint-plugin-react to automatically detect the version of React to use
}
}
}