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
| {
| "env": {
| "node": true,
| "mocha": true,
| "es6": true
| },
| "rules": {
| "strict": "off",
| "quotes": ["error", "single", {
| "avoidEscape": true,
| "allowTemplateLiterals": true
| }],
| "no-undef": "error",
| "no-unused-vars": ["error", {
| "args": "none"
| }],
| "no-trailing-spaces": "error",
| "no-loop-func": "error",
| "no-underscore-dangle": "off",
| "indent": ["error", 2, {
| "SwitchCase": 1
| }],
| "no-octal": "off",
| "no-multiple-empty-lines": ["error", {
| "max": 1
| }],
| "no-debugger": "error",
| "no-empty": ["error", {
| "allowEmptyCatch": true
| }],
| "no-template-curly-in-string": "warn",
| "no-unreachable": "error",
| "valid-typeof": "error",
| "dot-notation": ["error", {
| "allowKeywords": false
| }],
| "eqeqeq": "error",
| "no-extend-native": "error",
| "no-loop-func": "error",
| "no-magic-numbers": ["error", {
| "ignore": [-1,0,1],
| "ignoreArrayIndexes": true,
| "enforceConst": true,
| "detectObjects": true
| }],
| "no-multi-spaces": "error",
| "no-sequences": "error",
| "wrap-iife": ["error", "inside"],
| "yoda": ["error", "never"],
| "no-path-concat": "error",
| "array-bracket-spacing": ["error", "always", {
| "singleValue": false,
| "objectsInArrays": false,
| "arraysInArrays": false
| }],
| "brace-style": ["error", "1tbs"],
| "camelcase": ["error", {
| "properties": "always"
| }],
| "comma-spacing": ["error", {
| "before": false,
| "after": true
| }],
| "comma-style": ["error", "last"],
| "consistent-this": ["error", "self"],
| "func-style": ["error", "expression", {
| "allowArrowFunctions": true
| }],
| "key-spacing": ["error", {
| "beforeColon": false,
| "afterColon": true,
| "mode": "strict"
| }],
| "keyword-spacing": ["error", {
| "before": true,
| "after": true
| }],
| "no-lonely-if": "error",
| "no-tabs": "error",
| "no-whitespace-before-property": "error",
| "object-curly-newline": ["error", {
| "minProperties": 1
| }],
| "object-curly-spacing": ["error", "always", {
| "arraysInObjects": false,
| "objectsInObjects": false
| }],
| "object-property-newline": "error",
| "semi": ["error", "always", {
| "omitLastInOneLineBlock": true
| }],
| "space-before-blocks": ["error", "always"],
| "spaced-comment": ["error", "always"],
| "arrow-spacing": ["error", {
| "before": true,
| "after": true
| }],
| "no-const-assign": "error",
| "prefer-template": "error"
| }
| }
|
|