Skip to content

Commit 5b8a7bd

Browse files
author
Vladimir Kudinov
committed
ESLint
1 parent e3b15cb commit 5b8a7bd

File tree

4 files changed

+543
-469
lines changed

4 files changed

+543
-469
lines changed

.eslintrc

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
{
2+
"ecmaFeatures": {
3+
"modules": true,
4+
"jsx": true,
5+
"experimentalObjectRestSpread": true
6+
},
7+
"env": {
8+
"node": true,
9+
"es6": true
10+
},
11+
"rules": {
12+
"comma-dangle": [2, "never"],
13+
"no-cond-assign": 2,
14+
"no-constant-condition": 2,
15+
"no-control-regex": 2,
16+
"no-debugger": 2,
17+
"no-dupe-args": 2,
18+
"no-dupe-keys": 2,
19+
"no-duplicate-case": 2,
20+
"no-empty-character-class": 2,
21+
22+
"no-ex-assign": 2,
23+
"no-extra-boolean-cast": 2,
24+
25+
"no-extra-semi": 2,
26+
"no-func-assign": 2,
27+
"no-inner-declarations": 2,
28+
"no-invalid-regexp": 2,
29+
"no-irregular-whitespace": 2,
30+
"no-negated-in-lhs": 2,
31+
"no-obj-calls": 2,
32+
"no-regex-spaces": 2,
33+
"no-sparse-arrays": 2,
34+
"no-unreachable": 2,
35+
"use-isnan": 2,
36+
"valid-typeof": 2,
37+
"no-unexpected-multiline": 2,
38+
39+
"accessor-pairs": 2,
40+
"block-scoped-var": 2,
41+
"curly": 2,
42+
"default-case": 2,
43+
"dot-notation": 2,
44+
"dot-location": [2, "property"],
45+
"eqeqeq": 2,
46+
"guard-for-in": 2,
47+
"no-alert": 2,
48+
"no-caller": 2,
49+
"no-case-declarations": 2,
50+
"no-div-regex": 2,
51+
"no-else-return": 2,
52+
"no-empty-label": 2,
53+
"no-empty-pattern": 2,
54+
"no-eq-null": 2,
55+
"no-eval": 2,
56+
"no-extend-native": 2,
57+
"no-extra-bind": 2,
58+
"no-fallthrough": 2,
59+
"no-floating-decimal": 2,
60+
"no-implicit-coercion": 2,
61+
"no-implied-eval": 2,
62+
"no-iterator": 2,
63+
"no-labels": 2,
64+
"no-lone-blocks": 2,
65+
"no-loop-func": 2,
66+
67+
"no-multi-spaces": 0,
68+
"no-multi-str": 2,
69+
"no-native-reassign": 2,
70+
"no-new-func": 2,
71+
"no-new-wrappers": 2,
72+
"no-new": 2,
73+
"no-octal-escape": 2,
74+
"no-octal": 2,
75+
"no-proto": 2,
76+
"no-redeclare": 2,
77+
"no-return-assign": [2, "always"],
78+
"no-script-url": 2,
79+
"no-self-compare": 2,
80+
"no-sequences": 2,
81+
"no-throw-literal": 2,
82+
"no-unused-expressions": 2,
83+
"no-useless-call": 2,
84+
"no-useless-concat": 2,
85+
"no-void": 2,
86+
"no-warning-comments": 1,
87+
"no-with": 2,
88+
"radix": 2,
89+
"wrap-iife": [2, "inside"],
90+
"yoda": 2,
91+
92+
"no-delete-var": 2,
93+
"no-label-var": 2,
94+
"no-shadow-restricted-names": 2,
95+
"no-undef-init": 2,
96+
"no-undef": [2, {"typeof": true}],
97+
"no-unused-vars": 2,
98+
"no-use-before-define": [2, "nofunc"],
99+
100+
"handle-callback-err": 1,
101+
"no-mixed-requires": 2,
102+
"no-new-require": 2,
103+
"no-path-concat": 2,
104+
"no-restricted-modules": [2, "domain", "freelist", "smalloc", "sys"],
105+
106+
"array-bracket-spacing": [2, "never"],
107+
"brace-style": [2, "1tbs", {"allowSingleLine": false}],
108+
"camelcase": [2, {"properties": "always"}],
109+
"comma-spacing": [2, {"before": false, "after": true}],
110+
"comma-style": [2, "last"],
111+
"computed-property-spacing": [2, "never"],
112+
"eol-last": 2,
113+
"indent": [2, "tab", {"SwitchCase": 1}],
114+
"jsx-quotes": 2,
115+
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
116+
"linebreak-style": [2, "unix"],
117+
"max-nested-callbacks": [1, 4],
118+
"new-cap": [2, {"newIsCap": true, "capIsNew": true}],
119+
"new-parens": 2,
120+
"no-array-constructor": 2,
121+
"no-inline-comments": 2,
122+
"no-lonely-if": 2,
123+
"no-mixed-spaces-and-tabs": 0,
124+
"no-multiple-empty-lines": [2, {"max": 1}],
125+
"no-nested-ternary": 2,
126+
"no-negated-condition": 0,
127+
"no-new-object": 2,
128+
"no-restricted-syntax": [2, "WithStatement"],
129+
"no-spaced-func": 2,
130+
"no-trailing-spaces": 2,
131+
"no-unneeded-ternary": 2,
132+
"object-curly-spacing": [2, "never"],
133+
"one-var": [2, "always"],
134+
"operator-assignment": [2, "always"],
135+
"operator-linebreak": [2, "after"],
136+
"padded-blocks": [2, "never"],
137+
"quote-props": [2, "consistent-as-needed"],
138+
"quotes": [2, "single"],
139+
"semi-spacing": [2, {"before": false, "after": true}],
140+
"semi": [2, "always"],
141+
"space-after-keywords": [2, "never"],
142+
"space-before-keywords": [2, "never"],
143+
"space-before-blocks": [2, "never"],
144+
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
145+
"space-in-parens": [2, "never"],
146+
"space-infix-ops": 2,
147+
"space-return-throw-case": 2,
148+
"space-unary-ops": 2,
149+
"spaced-comment": [2, "always", {"markers": ["!"]}],
150+
151+
"arrow-parens": [2, "as-needed"],
152+
"arrow-spacing": [2, {"before": true, "after": true}],
153+
"constructor-super": 2,
154+
"generator-star-spacing": [2, "after"],
155+
"no-class-assign": 2,
156+
"no-const-assign": 2,
157+
"no-dupe-class-members": 2,
158+
"no-this-before-super": 2
159+
}
160+
}

.jscsrc

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)