Skip to content

Commit 928b03e

Browse files
committed
ES: eslint
1 parent dc3028a commit 928b03e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4680
-2701
lines changed

.jshintignore .eslintignore

File renamed without changes.

.eslintrc.js

+172
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
module.exports =
2+
{
3+
env:
4+
{
5+
browser: true,
6+
es6: true,
7+
node: true
8+
},
9+
plugins:
10+
[
11+
],
12+
extends:
13+
[
14+
'eslint:recommended'
15+
],
16+
settings: {},
17+
parserOptions:
18+
{
19+
ecmaVersion: 6,
20+
sourceType: 'script',
21+
ecmaFeatures:
22+
{
23+
impliedStrict: true
24+
}
25+
},
26+
rules:
27+
{
28+
'array-bracket-spacing': [ 2, 'always',
29+
{
30+
objectsInArrays: true,
31+
arraysInArrays: true
32+
}],
33+
'arrow-parens': [ 2, 'always' ],
34+
'arrow-spacing': 2,
35+
'block-spacing': [ 2, 'always' ],
36+
'brace-style': [ 2, 'allman', { allowSingleLine: true } ],
37+
'camelcase': 0,
38+
'comma-dangle': 2,
39+
'comma-spacing': [ 2, { before: false, after: true } ],
40+
'comma-style': 2,
41+
'computed-property-spacing': 2,
42+
'constructor-super': 2,
43+
'func-call-spacing': 2,
44+
'generator-star-spacing': 2,
45+
'guard-for-in': 2,
46+
'indent': [ 2, 2, { 'SwitchCase': 1 } ],
47+
'key-spacing': [ 2,
48+
{
49+
singleLine:
50+
{
51+
beforeColon: false,
52+
afterColon: true
53+
},
54+
multiLine:
55+
{
56+
beforeColon: true,
57+
afterColon: true,
58+
align: 'colon'
59+
}
60+
}],
61+
'keyword-spacing': 2,
62+
'linebreak-style': [ 2, 'unix' ],
63+
'lines-around-comment': [ 2,
64+
{
65+
allowBlockStart: true,
66+
allowObjectStart: true,
67+
beforeBlockComment: true,
68+
beforeLineComment: false
69+
}],
70+
'max-len': [ 2, 90,
71+
{
72+
tabWidth: 2,
73+
comments: 110,
74+
ignoreUrls: true,
75+
ignoreStrings: true,
76+
ignoreTemplateLiterals: true,
77+
ignoreRegExpLiterals: true
78+
}],
79+
'newline-after-var': 2,
80+
'newline-before-return': 2,
81+
'newline-per-chained-call': 2,
82+
'no-alert': 2,
83+
'no-caller': 2,
84+
'no-case-declarations': 2,
85+
'no-catch-shadow': 2,
86+
'no-class-assign': 2,
87+
'no-confusing-arrow': 2,
88+
'no-console': [ 2, { allow: [ 'warn' ] } ],
89+
'no-const-assign': 2,
90+
'no-constant-condition': [ 2 , { 'checkLoops': false } ],
91+
'no-debugger': 2,
92+
'no-dupe-args': 2,
93+
'no-dupe-keys': 2,
94+
'no-duplicate-case': 2,
95+
'no-div-regex': 2,
96+
'no-empty': [ 2, { allowEmptyCatch: true } ],
97+
'no-empty-pattern': 2,
98+
'no-else-return': 0,
99+
'no-eval': 2,
100+
'no-extend-native': 2,
101+
'no-ex-assign': 2,
102+
'no-extra-bind': 2,
103+
'no-extra-boolean-cast': 2,
104+
'no-extra-label': 2,
105+
'no-extra-semi': 2,
106+
'no-fallthrough': 2,
107+
'no-func-assign': 2,
108+
'no-global-assign': 2,
109+
'no-implicit-coercion': 2,
110+
'no-implicit-globals': 2,
111+
'no-inner-declarations': 2,
112+
'no-invalid-regexp': 2,
113+
'no-invalid-this': 0,
114+
'no-irregular-whitespace': 2,
115+
'no-lonely-if': 2,
116+
'no-mixed-operators': 2,
117+
'no-mixed-spaces-and-tabs': 2,
118+
'no-multi-spaces': 2,
119+
'no-multi-str': 2,
120+
'no-multiple-empty-lines': 2,
121+
'no-native-reassign': 2,
122+
'no-negated-in-lhs': 2,
123+
'no-new': 2,
124+
'no-new-func': 2,
125+
'no-new-wrappers': 2,
126+
'no-obj-calls': 2,
127+
'no-proto': 2,
128+
'no-prototype-builtins': 0,
129+
'no-redeclare': 2,
130+
'no-regex-spaces': 2,
131+
'no-restricted-imports': 2,
132+
'no-return-assign': 2,
133+
'no-self-assign': 2,
134+
'no-self-compare': 2,
135+
'no-sequences': 2,
136+
'no-shadow': 2,
137+
'no-shadow-restricted-names': 2,
138+
'no-spaced-func': 2,
139+
'no-sparse-arrays': 2,
140+
'no-this-before-super': 2,
141+
'no-throw-literal': 2,
142+
'no-undef': 2,
143+
'no-unexpected-multiline': 2,
144+
'no-unmodified-loop-condition': 2,
145+
'no-unreachable': 2,
146+
'no-unused-vars': [ 1, { vars: 'all', args: 'after-used' }],
147+
'no-use-before-define': [ 2, { functions: false } ],
148+
'no-useless-call': 2,
149+
'no-useless-computed-key': 2,
150+
'no-useless-concat': 2,
151+
'no-useless-rename': 2,
152+
'no-var': 2,
153+
'no-whitespace-before-property': 2,
154+
'object-curly-newline': 0,
155+
'object-curly-spacing': [ 2, 'always' ],
156+
'object-property-newline': [ 2, { allowMultiplePropertiesPerLine: true } ],
157+
'prefer-const': 2,
158+
'prefer-rest-params': 2,
159+
'prefer-spread': 2,
160+
'prefer-template': 2,
161+
'quotes': [ 2, 'single', { avoidEscape: true } ],
162+
'semi': [ 2, 'always' ],
163+
'semi-spacing': 2,
164+
'space-before-blocks': 2,
165+
'space-before-function-paren': [ 2, 'never' ],
166+
'space-in-parens': [ 2, 'never' ],
167+
'spaced-comment': [ 2, 'always' ],
168+
'strict': 2,
169+
'valid-typeof': 2,
170+
'yoda': 2
171+
}
172+
};

.jshintrc

-83
This file was deleted.

0 commit comments

Comments
 (0)