forked from foundryvtt-starfinder/foundryvtt-starfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
79 lines (79 loc) · 2.18 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:json/recommended"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": ["dist/*"],
"rules": {
"indent": ["error", 4, {"SwitchCase": 1}],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "windows"],
"semi": ["error", "always"],
"no-unused-vars": "warn",
"camelcase": "warn",
"arrow-spacing": "error",
"eol-last": "error",
"array-element-newline": ["error", {
"ArrayExpression": "consistent",
"ArrayPattern": { "minItems": 6 }
}
],
"object-property-newline": ["error", {
"allowAllPropertiesOnSameLine": true
}
],
"implicit-arrow-linebreak": ["error", "beside"],
"comma-dangle": ["error", "never"],
"no-duplicate-imports": "error",
"no-use-before-define": "off",
"no-unreachable-loop": "error",
"eqeqeq": ["error", "always"],
"no-eq-null": "error",
"init-declarations": "off",
"prefer-const": ["error", {"destructuring": "all"}],
"no-undef": "off",
"no-var": "error",
"spaced-comment": "error",
"array-bracket-newline": ["error", "consistent"],
"dot-location": ["error", "property"],
"comma-style": ["error", "last"],
"comma-spacing": "error",
"multiline-ternary": ["error", "always-multiline"],
"no-trailing-spaces": "error",
"no-irregular-whitespace": "error",
"func-call-spacing": "error",
"newline-per-chained-call": "error",
"no-whitespace-before-property": "error",
"rest-spread-spacing": ["error", "never"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"operator-assignment": "warn",
"space-infix-ops": ["error"],
"operator-linebreak": ["error", "before"],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 1
}
],
"space-unary-ops": [
"error",
{
"words": true,
"nonwords": false
}
],
"no-prototype-builtins": "off"
}
}