-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
78 lines (78 loc) · 2.04 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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"standard",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-overwolf-ts",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"plugin:jsdoc/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"plugins": [
"react",
"@typescript-eslint",
"jsdoc"
],
"rules": {
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/type-annotation-spacing": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-namespace": "off",
"no-use-before-define": "off",
"jsdoc/no-undefined-types": ["warn", {"definedTypes":["overwolf"]}],
"jsdoc/no-multi-asterisks": "off",
"semi": [
"error",
"always"
],
"quotes": [
"error",
"single"
],
"no-unused-vars": "warn",
"space-before-function-paren": "off",
"object-curly-spacing": "off",
"padded-blocks": "off",
"max-len": [
"error",
{
"code": 80,
"ignorePattern": "^(import\\s.+\\sfrom\\s.+;|\\} from\\s.+;)$",
"ignoreUrls": true
}
],
"no-prototype-builtin": "off",
"comma-dangle": "off",
"prefer-promise-reject-errors": "off",
"no-async-promise-executor": "off",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"react/prop-types": "off",
"radix": "off",
"one-var": "off"
}
}