forked from opendatacam/opendatacam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
145 lines (145 loc) · 4.57 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jasmine": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"ignorePatterns": [
".build",
".next",
"node_modules",
"public/static/js",
"server/tracker/GpsTracker.js"
],
"rules": {
"array-callback-return": "warn",
"arrow-body-style": "warn",
"arrow-parens": "warn",
"block-scoped-var": "warn",
"brace-style": "warn",
"camelcase": "warn",
"class-methods-use-this": "warn",
"comma-dangle": "warn",
"comma-spacing": "warn",
"consistent-return": "warn",
"curly": "warn",
"dot-notation": "warn",
"eol-last": "warn",
"eqeqeq": "warn",
"function-paren-newline": "warn",
"global-require": "warn",
"guard-for-in": "warn",
"implicit-arrow-linebreak": "warn",
"import/extensions": "warn",
"import/newline-after-import": "warn",
"import/no-dynamic-require": "warn",
"import/no-extraneous-dependencies": "warn",
"import/order": "warn",
"import/prefer-default-export": "warn",
"indent": "warn",
"jsx-a11y/alt-text": "warn",
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/label-has-associated-control": "warn",
"jsx-a11y/no-autofocus": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-quotes": "warn",
"key-spacing": "warn",
"keyword-spacing": "warn",
"linebreak-style": "warn",
"lines-between-class-members": "warn",
"max-len": "warn",
"new-cap": "warn",
"no-cond-assign": "warn",
"no-else-return": "warn",
"no-extra-semi": "warn",
"no-lonely-if": "warn",
"no-mixed-operators": "warn",
"no-multi-assign": "warn",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": "warn",
"no-param-reassign": "warn",
"no-plusplus": "warn",
"no-proto": "warn",
"no-redeclare": "warn",
"no-restricted-globals": "warn",
"no-restricted-properties": "warn",
"no-restricted-syntax": "warn",
"no-return-assign": "warn",
"no-shadow": "warn",
"no-tabs": "warn",
"no-trailing-spaces": "warn",
"no-undef": "warn",
"no-underscore-dangle": "warn",
"no-unused-vars": "warn",
"no-use-before-define": "warn",
"no-useless-constructor": "warn",
"no-useless-escape": "warn",
"no-var": "warn",
"nonblock-statement-body-position": "warn",
"object-curly-newline": "warn",
"object-curly-spacing": "warn",
"object-shorthand": "warn",
"one-var-declaration-per-line": "warn",
"one-var": "warn",
"operator-linebreak": "warn",
"padded-blocks": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-destructuring": "warn",
"prefer-template": "warn",
"quote-props": "warn",
"quotes": "warn",
"radix": "warn",
"react/button-has-type": "warn",
"react/destructuring-assignment": "warn",
"react/jsx-boolean-value": "warn",
"react/jsx-closing-bracket-location": "warn",
"react/jsx-closing-tag-location": "warn",
"react/jsx-curly-brace-presence": "warn",
"react/jsx-curly-newline": "warn",
"react/jsx-filename-extension": "warn",
"react/jsx-first-prop-new-line": "warn",
"react/jsx-fragments": "warn",
"react/jsx-indent-props": "warn",
"react/jsx-indent": "warn",
"react/jsx-max-props-per-line": "warn",
"react/jsx-no-target-blank": "warn",
"react/jsx-one-expression-per-line": "warn",
"react/jsx-props-no-spreading": "warn",
"react/jsx-tag-spacing": "warn",
"react/jsx-wrap-multilines": "warn",
"react/no-array-index-key": "warn",
"react/no-unescaped-entities": "warn",
"react/no-unused-state": "warn",
"react/prefer-stateless-function": "warn",
"react/prop-types": "warn",
"react/self-closing-comp": "warn",
"react/sort-comp": "warn",
"semi": "warn",
"space-before-blocks": "warn",
"space-before-function-paren": "warn",
"space-in-parens": "warn",
"space-infix-ops": "warn",
"space-unary-ops": "warn",
"spaced-comment": "warn",
"strict": "warn",
"vars-on-top": "warn"
},
"reportUnusedDisableDirectives": true
}