1 | {
|
2 | "env": {
|
3 | "browser": false,
|
4 | "node": true
|
5 | },
|
6 |
|
7 | "globals": {
|
8 | "crypto": true,
|
9 | "escape": false,
|
10 | "unescape": false
|
11 | },
|
12 |
|
13 | "ecmaFeatures": {
|
14 | "arrowFunctions": true,
|
15 | "binaryLiterals": true,
|
16 | "blockBindings": true,
|
17 | "defaultParams": true,
|
18 | "forOf": true,
|
19 | "generators": true,
|
20 | "objectLiteralComputedProperties": true,
|
21 | "objectLiteralDuplicateProperties": false,
|
22 | "objectLiteralShorthandMethods": true,
|
23 | "objectLiteralShorthandProperties": true,
|
24 | "octalLiterals": false,
|
25 | "regexUFlag": true,
|
26 | "regexYFlag": true,
|
27 | "superInFunctions": true,
|
28 | "templateStrings": true,
|
29 | "unicodeCodePointEscapes": true,
|
30 | "globalReturn": true
|
31 | },
|
32 |
|
33 | "rules": {
|
34 | "block-scoped-var": 0,
|
35 | "brace-style": [2, "allman", { "allowSingleLine": true }],
|
36 | "camelcase": 0,
|
37 | "comma-spacing": [2, {"before": false, "after": true}],
|
38 | "comma-style": [2, "last"],
|
39 | "complexity": 0,
|
40 | "consistent-return": 0,
|
41 | "consistent-this": 0,
|
42 | "curly": 0,
|
43 | "default-case": 0,
|
44 | "dot-notation": 0,
|
45 | "eol-last": 2,
|
46 | "eqeqeq": [2, "allow-null"],
|
47 | "func-names": 0,
|
48 | "func-style": [0, "declaration"],
|
49 | "generator-star": 0,
|
50 | "global-strict": 0,
|
51 | "guard-for-in": 0,
|
52 | "handle-callback-err": [2, "^(err|error|anySpecificError)$" ],
|
53 | "indent": [2, "tab"],
|
54 | "max-depth": 0,
|
55 | "max-len": 0,
|
56 | "max-nested-callbacks": 0,
|
57 | "max-params": 0,
|
58 | "max-statements": 0,
|
59 | "new-cap": [2, { "newIsCap": true, "capIsNew": false }],
|
60 | "new-parens": 2,
|
61 | "no-alert": 2,
|
62 | "no-array-constructor": 2,
|
63 | "no-bitwise": 0,
|
64 | "no-caller": 2,
|
65 | "no-catch-shadow": 0,
|
66 | "no-cond-assign": 2,
|
67 | "no-console": 0,
|
68 | "no-constant-condition": 0,
|
69 | "no-control-regex": 2,
|
70 | "no-debugger": 2,
|
71 | "no-delete-var": 2,
|
72 | "no-div-regex": 0,
|
73 | "no-dupe-keys": 2,
|
74 | "no-else-return": 0,
|
75 | "no-empty": 0,
|
76 | "no-empty-character-class": 2,
|
77 | "no-eq-null": 0,
|
78 | "no-eval": 2,
|
79 | "no-ex-assign": 2,
|
80 | "no-extend-native": 2,
|
81 | "no-extra-bind": 2,
|
82 | "no-extra-boolean-cast": 2,
|
83 | "no-extra-parens": 0,
|
84 | "no-extra-semi": 2,
|
85 | "no-fallthrough": 2,
|
86 | "no-floating-decimal": 2,
|
87 | "no-func-assign": 2,
|
88 | "no-implied-eval": 2,
|
89 | "no-inline-comments": 0,
|
90 | "no-inner-declarations": [2, "functions"],
|
91 | "no-invalid-regexp": 2,
|
92 | "no-irregular-whitespace": 2,
|
93 | "no-iterator": 2,
|
94 | "no-label-var": 2,
|
95 | "no-labels": 0,
|
96 | "no-lone-blocks": 2,
|
97 | "no-lonely-if": 0,
|
98 | "no-loop-func": 0,
|
99 | "no-mixed-requires": [0, false],
|
100 | "no-mixed-spaces-and-tabs": [2, false],
|
101 | "no-multi-str": 2,
|
102 | "no-multiple-empty-lines": [2, {"max": 1}],
|
103 | "no-native-reassign": 2,
|
104 | "no-negated-in-lhs": 2,
|
105 | "no-nested-ternary": 0,
|
106 | "no-new": 2,
|
107 | "no-new-func": 2,
|
108 | "no-new-object": 2,
|
109 | "no-new-require": 2,
|
110 | "no-new-wrappers": 2,
|
111 | "no-obj-calls": 2,
|
112 | "no-octal": 0,
|
113 | "no-octal-escape": 2,
|
114 | "no-path-concat": 0,
|
115 | "no-plusplus": 0,
|
116 | "no-process-env": 0,
|
117 | "no-process-exit": 0,
|
118 | "no-proto": 2,
|
119 | "no-redeclare": 2,
|
120 | "no-regex-spaces": 2,
|
121 | "no-reserved-keys": 0,
|
122 | "no-restricted-modules": 0,
|
123 | "no-return-assign": 2,
|
124 | "no-script-url": 2,
|
125 | "no-self-compare": 2,
|
126 | "no-sequences": 2,
|
127 | "no-shadow": 0,
|
128 | "no-shadow-restricted-names": 2,
|
129 | "no-space-before-semi": 0,
|
130 | "no-spaced-func": 2,
|
131 | "no-sparse-arrays": 2,
|
132 | "no-sync": 0,
|
133 | "no-ternary": 0,
|
134 | "no-trailing-spaces": 2,
|
135 | "no-undef": 2,
|
136 | "no-undef-init": 2,
|
137 | "no-undefined": 0,
|
138 | "no-underscore-dangle": 0,
|
139 | "no-unreachable": 2,
|
140 | "no-unused-expressions": 0,
|
141 | "no-unused-vars": [2, {"vars": "local", "args": "none", "varsIgnorePattern": "demand"}],
|
142 | "no-use-before-define": 0,
|
143 | "no-var": 0,
|
144 | "no-void": 0,
|
145 | "no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
|
146 | "no-with": 2,
|
147 | "one-var": 0,
|
148 | "operator-assignment": [0, "always"],
|
149 | "padded-blocks": 0,
|
150 | "quote-props": 0,
|
151 | "quotes": [2, "single", "avoid-escape"],
|
152 | "radix": 2,
|
153 | "semi": [2, "always"],
|
154 | "sort-vars": 0,
|
155 | "space-before-function-paren": [2, "never"],
|
156 | "keyword-spacing": 2,
|
157 | "space-before-blocks": [2, "always"],
|
158 | "space-in-brackets": 0,
|
159 | "space-in-parens": [2, "never"],
|
160 | "space-infix-ops": 2,
|
161 | "space-unary-ops": [2, { "words": true, "nonwords": false }],
|
162 | "strict": 0,
|
163 | "use-isnan": 2,
|
164 | "valid-jsdoc": 0,
|
165 | "valid-typeof": 2,
|
166 | "vars-on-top": 0,
|
167 | "wrap-iife": [2, "any"],
|
168 | "wrap-regex": 0,
|
169 | "yoda": [2, "never"]
|
170 | }
|
171 | }
|