forked from constgen/neutrino-preset-svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
36 lines (36 loc) · 1.12 KB
/
.eslintrc
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
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"comma-dangle": ["error", "never"],
"indent": ["error", "tab", {"MemberExpression": "off", "SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"no-unused-vars": ["warn"],
"no-console": ["warn", { "allow": ["error"] }],
"eqeqeq": ["error", "always"],
"getter-return": ["error"],
"id-length": "error",
"no-eval": "error",
"no-trailing-spaces": "error",
"no-with": "error",
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true }],
"strict": ["warn", "safe"],
"curly": ["error", "multi-line"],
"unicode-bom": ["error", "never"],
"vars-on-top": "error",
"max-len": [1, 120, 2, { "ignoreComments": true }],
"quote-props": [1, "consistent-as-needed"],
"no-cond-assign": [2, "except-parens"],
"space-infix-ops": 0,
"default-case": 0,
"no-else-return": 0,
"no-param-reassign": 0,
"new-cap": 2
}
}