UNPKG

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