UNPKG

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