UNPKG

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