forked from noopkat/avrgirl-arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
59 lines (45 loc) · 1.34 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
{
"env": {
"node": true,
"es2020": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": "eslint:recommended",
"rules": {
// Force all variable names to use either camelCase style or UPPER_CASE
// with underscores.
"camelcase": ["error"],
// Prohibit use of == and != in favor of === and !==.
"eqeqeq": 2,
// Enforce tab width of 2 spaces.
"indent": ["warn", 2],
// Prohibit use of a variable before it is defined.
"no-use-before-define": 2,
// Enforce line length to 100 characters
"max-len": ["error", { "code": 300 }],
// Require capitalized names for constructor functions.
"new-cap": 1,
// Enforce use of single quotation marks for strings.
"quotes": ["error", "single"],
// Enforce placing 'use strict' at the top function scope
"strict": 0,
// Prohibit use of explicitly undeclared variables.
"no-undef": 2,
// Warn when variables are defined but never used.
"no-unused-vars": 1,
// Suppress warnings about == null comparisons.
"no-eq-null": 0,
// Warn when there are dangling commas
"comma-dangle": ["warn", "never"],
"no-irregular-whitespace": ["warn"],
"no-self-assign": ["warn"],
"no-redeclare": ["warn"]
}
}