-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
51 lines (51 loc) · 1.25 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"plugin:security/recommended",
"plugin:@microsoft/sdl/common",
"plugin:@microsoft/sdl/node",
"plugin:@microsoft/sdl/react"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier",
"simple-import-sort",
"react-hooks",
"@microsoft/sdl",
"security"
],
"rules": {
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": "allow-with-description",
"ts-nocheck": true,
"ts-check": false
}
],
"@typescript-eslint/ban-types": ["off"],
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-use-before-define": ["warn"],
"@typescript-eslint/prefer-optional-chain": "error",
"prettier/prettier": "error",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/prop-types": ["off"],
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"react/react-in-jsx-scope": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}