-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.eslintrc.json
More file actions
95 lines (94 loc) · 2.62 KB
/
.eslintrc.json
File metadata and controls
95 lines (94 loc) · 2.62 KB
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
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": ["airbnb"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint",
"simple-import-sort",
"prefer-arrow"
],
// rules: 1 is warning, 2 is error, off is ignore
"rules": {
"at-rule-no-unknown": 0,
"prefer-arrow/prefer-arrow-functions": [
0,
{
"disallowPrototype": true,
"singleReturnOnly": false,
"classPropertiesAllowed": false
}
],
"import/extensions": 0,
"react/jsx-filename-extension": 0,
"no-alert": 0,
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": 0,
"import/no-duplicates": 1,
"import/no-unresolved": 0,
"max-len": 0,
"react/prefer-stateless-function": 1,
"jsx-a11y/label-has-associated-control": 0,
"react/destructuring-assignment": 0,
"jsx-a11y/control-has-associated-label": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/img-redundant-alt": 0,
"jsx-a11y/anchor-is-valid": 0,
"react/no-did-update-set-state": 0,
"max-classes-per-file": 1,
"react/jsx-props-no-spreading": 0,
"linebreak-style": 0,
"react/sort-comp": 0,
"no-shadow": 0,
"react/require-default-props": 0,
"simple-import-sort/imports": 1,
"comma-dangle": 1,
"indent": 1,
"no-confusing-arrow": 0,
"object-curly-newline": 0,
"react/jsx-curly-newline": 0,
"react/jsx-indent": 0,
"operator-linebreak": 0,
"implicit-arrow-linebreak": 0,
"import/no-extraneous-dependencies": 0,
"no-underscore-dangle": 0,
"react/prop-types": 0,
"function-paren-newline": 1,
"react/jsx-one-expression-per-line": 0,
"react/no-unused-prop-types": 0,
"react/jsx-no-constructed-context-values": 0,
"no-promise-executor-return": 0,
"react/no-unused-class-component-methods": 1,
"react/no-unstable-nested-components": 1,
"react/jsx-no-bind": 1,
"react/default-props-match-prop-types": 1,
"import/prefer-default-export": 0,
"prefer-destructuring": 0,
"react/function-component-definition": 0,
"no-console": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"prefer-rest-params": 1,
"react/no-unused-state": 0,
"no-use-before-define": 0,
"react/button-has-type": 0,
"class-methods-use-this": 0,
"no-undef": 0,
"prefer-regex-literals": 0
}
}