-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
executable file
·78 lines (78 loc) · 2.52 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends":[
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"import",
"react",
"jsx-a11y"
],
"settings": {
"react": {
"pragma": "React",
"version": "16.6.3"
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"expect": true,
"test": true,
"describe": true,
"beforeEach": true,
"afterEach": true,
"jest": true,
"it": true
},
"rules": {
"semi": 0,
"strict": 0,
"indent": [2, 4, { "SwitchCase": 1 }],
"arrow-body-style": 0,
"no-return-assign": 0,
"no-useless-constructor": 0,
"eqeqeq": 0,
"no-console": 0,
"no-param-reassign": 0,
"@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": false}],
"react/display-name":[0],
"react/sort-comp": 0,
"react/jsx-uses-react": 1,
"react/prefer-stateless-function": 0,
"react/jsx-closing-bracket-location": 0,
"jsx-a11y/no-static-element-interactions": 0,
"react/prop-types": [0, {"ignore": ["children"]}],
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".js", ".jsx"] }],
"react/react-in-jsx-scope": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/interface-name-prefix":0,
"@typescript-eslint/no-empty-interface":0,
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": true, // Allow `const { props, state } = this`; false by default
"allowedNames": ["that"] // Allow `const self = this`; `[]` by default
}
],
"@typescript-eslint/explicit-module-boundary-types": 0,
"prefer-const": 0,
"no-var": 0,
"prefer-rest-params": 0
}
}