-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.js
112 lines (112 loc) · 3.51 KB
/
index.js
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
module.exports = {
"env": {
"es6": true,
"node": true,
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:no-unsanitized/DOM",
"plugin:react/recommended",
],
"globals": {
"console": true,
"document": true,
"navigator": true,
"window": true,
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"comment": true,
"useJSXTextNode": true,
"warnOnUnsupportedTypeScriptVersion": false,
"ecmaFeatures": {
"jsx": true,
"modules": true,
},
"ecmaVersion": 2018,
"sourceType": "module",
},
"plugins": [
"no-only-tests",
"no-unsanitized",
"react",
"react-hooks",
"@typescript-eslint",
],
"settings": {
"import/extensions": [".js", ".jsx"],
"import/resolver": {"node": {"extensions": [".js", ".jsx", ".tsx", ".ts"]}},
"react": {
"version": "detect",
},
},
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/class-name-casing": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/indent": ["error", 2, {"SwitchCase": 1, "VariableDeclarator": 1}],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-this-alias": ["error", { allowDestructuring: true, allowedNames: ['self', 'that'] }],
"@typescript-eslint/prefer-interface": "off",
"arrow-spacing": ["error", { "before": true, "after": true }],
"block-spacing": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": "off",
"consistent-return": "off",
"curly": "error",
"default-case": "off",
"dot-notation": "warn",
"eqeqeq": ["error", "always"],
"getter-return": "error",
"indent": ["error", 2, {"SwitchCase": 1, "VariableDeclarator": 1}],
"jsx-quotes": "error",
"keyword-spacing": "error",
"new-cap": "off",
"no-caller": "error",
"no-console": "error",
"no-else-return": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extra-parens": ["error", "all", { "nestedBinaryExpressions": false }],
"no-implicit-globals": "error",
"no-invalid-this": "off",
"no-irregular-whitespace": "error",
"no-multiple-empty-lines": "off",
"no-only-tests/no-only-tests": "error",
"no-param-reassign": "off",
"no-shadow": "error",
"no-trailing-spaces": "error",
"no-use-before-define": ["error", "nofunc"],
"no-useless-concat": "error",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"one-var": "off",
"padded-blocks": ["error", "never"],
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread" : "error",
"prefer-template": "error",
"quotes": "off",
"react-hooks/rules-of-hooks": "error",
"react/no-danger": "error",
"react/no-deprecated": "error",
"react/no-multi-comp": "off",
"react/no-string-refs": "warn",
"react/no-unsafe": ["error", { "checkAliases": true }],
"react/prop-types": "off",
"react/self-closing-comp": "off",
"react/sort-comp": "off",
"react/wrap-multilines": "off",
"semi": "error",
"space-before-blocks": "error",
"space-before-function-paren": "error",
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"template-curly-spacing": ["error", "never"],
"vars-on-top": "off",
},
};