UNPKG

3.94 kBPlain TextView Raw
1{
2 "ecmaFeatures": {
3 "modules": true,
4 "experimentalObjectRestSpread": true
5 },
6
7 "env": {
8 "browser": false,
9 "es6": true,
10 "node": true
11 },
12
13 "plugins": [
14 "standard"
15 ],
16
17 "globals": {
18 "document": false,
19 "navigator": false,
20 "window": false
21 },
22
23 "rules": {
24 "accessor-pairs": 2,
25 "arrow-spacing": [2, { "before": true, "after": true }],
26 "block-spacing": [2, "always"],
27 "brace-style": [2, "1tbs", { "allowSingleLine": true }],
28 "comma-dangle": [2, "never"],
29 "comma-spacing": [2, { "before": false, "after": true }],
30 "comma-style": [2, "last"],
31 "constructor-super": 2,
32 "curly": [2, "multi-line"],
33 "dot-location": [2, "property"],
34 "eol-last": 2,
35 "eqeqeq": [2, "allow-null"],
36 "generator-star-spacing": [2, { "before": true, "after": true }],
37 "handle-callback-err": [2, "^(err|error)$" ],
38 "indent": [2, 2, { "SwitchCase": 1 }],
39 "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
40 "new-cap": [2, { "newIsCap": true, "capIsNew": false }],
41 "new-parens": 2,
42 "no-array-constructor": 2,
43 "no-caller": 2,
44 "no-class-assign": 2,
45 "no-cond-assign": 2,
46 "no-const-assign": 2,
47 "no-control-regex": 2,
48 "no-debugger": 2,
49 "no-delete-var": 2,
50 "no-dupe-args": 2,
51 "no-dupe-class-members": 2,
52 "no-dupe-keys": 2,
53 "no-duplicate-case": 2,
54 "no-empty-character-class": 2,
55 "no-empty-label": 2,
56 "no-eval": 2,
57 "no-ex-assign": 2,
58 "no-extend-native": 2,
59 "no-extra-bind": 2,
60 "no-extra-boolean-cast": 2,
61 "no-extra-parens": [2, "functions"],
62 "no-fallthrough": 2,
63 "no-floating-decimal": 2,
64 "no-func-assign": 2,
65 "no-implied-eval": 2,
66 "no-inner-declarations": [2, "functions"],
67 "no-invalid-regexp": 2,
68 "no-irregular-whitespace": 2,
69 "no-iterator": 2,
70 "no-label-var": 2,
71 "no-labels": 2,
72 "no-lone-blocks": 2,
73 "no-mixed-spaces-and-tabs": 2,
74 "no-multi-spaces": 2,
75 "no-multi-str": 2,
76 "no-multiple-empty-lines": [2, { "max": 1 }],
77 "no-native-reassign": 2,
78 "no-negated-in-lhs": 2,
79 "no-new": 2,
80 "no-new-func": 2,
81 "no-new-object": 2,
82 "no-new-require": 2,
83 "no-new-wrappers": 2,
84 "no-obj-calls": 2,
85 "no-octal": 2,
86 "no-octal-escape": 2,
87 "no-proto": 2,
88 "no-redeclare": 2,
89 "no-regex-spaces": 2,
90 "no-return-assign": 2,
91 "no-self-compare": 2,
92 "no-sequences": 2,
93 "no-shadow-restricted-names": 2,
94 "no-spaced-func": 2,
95 "no-sparse-arrays": 2,
96 "no-this-before-super": 2,
97 "no-throw-literal": 2,
98 "no-trailing-spaces": 2,
99 "no-undef": 2,
100 "no-undef-init": 2,
101 "no-unexpected-multiline": 2,
102 "no-unneeded-ternary": [2, { "defaultAssignment": false }],
103 "no-unreachable": 2,
104 "no-unused-vars": [2, { "vars": "all", "args": "none" }],
105 "no-useless-call": 2,
106 "no-with": 2,
107 "one-var": [2, { "initialized": "never" }],
108 "operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
109 "padded-blocks": [2, "never"],
110 "quotes": [2, "single", "avoid-escape"],
111 "radix": 2,
112 "semi": [2, "never"],
113 "semi-spacing": [2, { "before": false, "after": true }],
114 "space-after-keywords": [2, "always"],
115 "space-before-blocks": [2, "always"],
116 "space-before-function-paren": [2, "always"],
117 "space-before-keywords": [2, "always"],
118 "space-in-parens": [2, "never"],
119 "space-infix-ops": 2,
120 "space-return-throw-case": 2,
121 "space-unary-ops": [2, { "words": true, "nonwords": false }],
122 "spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }],
123 "use-isnan": 2,
124 "valid-typeof": 2,
125 "wrap-iife": [2, "any"],
126 "yoda": [2, "never"],
127
128 "standard/object-curly-even-spacing": [2, "either"],
129 "standard/array-bracket-even-spacing": [2, "either"],
130 "standard/computed-property-even-spacing": [2, "even"]
131 }
132}