1 | {
|
2 | "env": {
|
3 | "mocha": true,
|
4 | "node": true
|
5 | },
|
6 | "globals": {},
|
7 | "rules": {
|
8 | "camelcase": [
|
9 | 2,
|
10 | {
|
11 | "properties": "never"
|
12 | }
|
13 | ],
|
14 | "curly": [
|
15 | 2,
|
16 | "all"
|
17 | ],
|
18 | "eqeqeq": 2,
|
19 | "wrap-iife": 2,
|
20 | "indent": [
|
21 | 2,
|
22 | 4,
|
23 | {
|
24 | "SwitchCase": 1
|
25 | }
|
26 | ],
|
27 | "no-use-before-define": [
|
28 | 2,
|
29 | {
|
30 | "functions": false
|
31 | }
|
32 | ],
|
33 | "new-cap": 2,
|
34 | "no-caller": 2,
|
35 | "no-empty": [
|
36 | 2,
|
37 | {
|
38 | "allowEmptyCatch": true
|
39 | }
|
40 | ],
|
41 | "no-irregular-whitespace": 2,
|
42 | "no-new": 2,
|
43 | "quotes": [
|
44 | 2,
|
45 | "single"
|
46 | ],
|
47 | "no-undef": 2,
|
48 | "no-unused-vars": 2,
|
49 | "strict": [
|
50 | 2,
|
51 | "function"
|
52 | ],
|
53 | "no-eq-null": 2,
|
54 | "keyword-spacing": [
|
55 | 2,
|
56 | {}
|
57 | ],
|
58 | "space-before-blocks": [
|
59 | 2,
|
60 | "always"
|
61 | ],
|
62 | "space-before-function-paren": [
|
63 | 2,
|
64 | {
|
65 | "anonymous": "ignore",
|
66 | "named": "never"
|
67 | }
|
68 | ],
|
69 | "array-bracket-spacing": [
|
70 | 2,
|
71 | "never",
|
72 | {}
|
73 | ],
|
74 | "space-in-parens": [
|
75 | 2,
|
76 | "never"
|
77 | ],
|
78 | "quote-props": [
|
79 | 2,
|
80 | "as-needed"
|
81 | ],
|
82 | "no-underscore-dangle": 2,
|
83 | "key-spacing": [
|
84 | 2,
|
85 | {
|
86 | "beforeColon": false,
|
87 | "afterColon": true
|
88 | }
|
89 | ],
|
90 | "comma-style": [
|
91 | 2,
|
92 | "last"
|
93 | ],
|
94 | "space-unary-ops": [
|
95 | 2,
|
96 | {
|
97 | "words": false,
|
98 | "nonwords": false
|
99 | }
|
100 | ],
|
101 | "space-infix-ops": 2,
|
102 | "no-with": 2,
|
103 | "no-multiple-empty-lines": 2,
|
104 | "no-mixed-spaces-and-tabs": 2,
|
105 | "no-trailing-spaces": 2,
|
106 | "comma-dangle": [
|
107 | 2,
|
108 | "never"
|
109 | ],
|
110 | "brace-style": [
|
111 | 2,
|
112 | "1tbs",
|
113 | {
|
114 | "allowSingleLine": true
|
115 | }
|
116 | ],
|
117 | "dot-notation": 2,
|
118 | "yoda": [
|
119 | 2,
|
120 | "never"
|
121 | ]
|
122 | }
|
123 | }
|