-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.84 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
{
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"extends": [
"eslint:recommended"
],
"plugins": [],
"ignorePatterns": ["node_modules", "js/libraries", "temp"],
"env": {
"es6": true,
"browser": true,
"node": true,
"commonjs": true,
"jquery": true
},
"globals": {
"LZString": "readonly",
"saveAs": "readonly",
"ClipboardJS": "readonly"
},
"rules": {
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"semi": ["error", "always"],
"array-bracket-newline": ["error", { "multiline": true, "minItems": 3 }],
"indent": ["error", 4, { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }],
"implicit-arrow-linebreak": ["error", "beside"],
"no-whitespace-before-property": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
"camelcase": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"no-confusing-arrow": "error",
"padded-blocks": ["error", "never", { "allowSingleLineBlocks": true }],
"eol-last": ["error", "always"],
"no-lonely-if": "error",
"no-underscore-dangle": "error",
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"semi-style": ["error", "last"],
"padding-line-between-statements": ["error",
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]},
{ "blankLine": "always", "prev": "directive", "next": "*" },
{ "blankLine": "any", "prev": "directive", "next": "directive" }
],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"keyword-spacing": ["error", { "before": true }],
"space-before-blocks": "error",
"arrow-spacing": "error",
"space-infix-ops": ["error", { "int32Hint": false }]
}
}