Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f53bf7

Browse files
committed
Use ESLint instead of JSCS
1 parente0b8b4a commit2f53bf7

15 files changed

+379
-124
lines changed

‎.eslintrc‎

Lines changed: 344 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,344 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 6,
4+
"ecmaFeatures": {
5+
"experimentalObjectRestSpread": true,
6+
"jsx": true
7+
},
8+
"sourceType": "module"
9+
},
10+
"env": {
11+
"es6": true,
12+
"node": true,
13+
"browser": true,
14+
"commonjs": true,
15+
"jquery": true,
16+
"phantomjs": true,
17+
"jasmine": true,
18+
"mocha": true,
19+
"amd": true,
20+
"worker": true,
21+
"qunit": true
22+
},
23+
"plugins": [
24+
"standard",
25+
"promise"
26+
],
27+
"globals": {
28+
"document": false,
29+
"navigator": false,
30+
"window": false
31+
},
32+
"rules": {
33+
"accessor-pairs": 2,
34+
"arrow-spacing": [
35+
2,
36+
{
37+
"before": true,
38+
"after": true
39+
}
40+
],
41+
"block-spacing": [
42+
2,
43+
"always"
44+
],
45+
"brace-style": [
46+
2,
47+
"1tbs",
48+
{
49+
"allowSingleLine": true
50+
}
51+
],
52+
"camelcase": [
53+
2,
54+
{
55+
"properties": "never"
56+
}
57+
],
58+
"comma-dangle": [
59+
2,
60+
"never"
61+
],
62+
"comma-spacing": [
63+
2,
64+
{
65+
"before": false,
66+
"after": true
67+
}
68+
],
69+
"comma-style": [
70+
2,
71+
"last"
72+
],
73+
"constructor-super": 2,
74+
"curly": [
75+
2,
76+
"multi-line"
77+
],
78+
"dot-location": [
79+
2,
80+
"property"
81+
],
82+
"eol-last": 2,
83+
"eqeqeq": [
84+
2,
85+
"allow-null"
86+
],
87+
"generator-star-spacing": [
88+
2,
89+
{
90+
"before": true,
91+
"after": true
92+
}
93+
],
94+
"handle-callback-err": [
95+
2,
96+
"^(err|error)$"
97+
],
98+
"indent": [
99+
2,
100+
2,
101+
{
102+
"SwitchCase": 1
103+
}
104+
],
105+
"jsx-quotes": [
106+
2,
107+
"prefer-single"
108+
],
109+
"key-spacing": [
110+
2,
111+
{
112+
"beforeColon": false,
113+
"afterColon": true
114+
}
115+
],
116+
"keyword-spacing": [
117+
2,
118+
{
119+
"before": true,
120+
"after": true
121+
}
122+
],
123+
"new-cap": [
124+
2,
125+
{
126+
"newIsCap": true,
127+
"capIsNew": false
128+
}
129+
],
130+
"new-parens": 2,
131+
"no-array-constructor": 2,
132+
"no-caller": 2,
133+
"no-class-assign": 2,
134+
"no-cond-assign": 2,
135+
"no-const-assign": 2,
136+
"no-control-regex": 2,
137+
"no-debugger": 2,
138+
"no-delete-var": 2,
139+
"no-dupe-args": 2,
140+
"no-dupe-class-members": 2,
141+
"no-dupe-keys": 2,
142+
"no-duplicate-case": 2,
143+
"no-duplicate-imports": 2,
144+
"no-empty-character-class": 2,
145+
"no-empty-pattern": 2,
146+
"no-eval": 2,
147+
"no-ex-assign": 2,
148+
"no-extend-native": 2,
149+
"no-extra-bind": 2,
150+
"no-extra-boolean-cast": 2,
151+
"no-extra-parens": [
152+
2,
153+
"functions"
154+
],
155+
"no-fallthrough": 2,
156+
"no-floating-decimal": 2,
157+
"no-func-assign": 2,
158+
"no-implied-eval": 2,
159+
"no-inner-declarations": [
160+
2,
161+
"functions"
162+
],
163+
"no-invalid-regexp": 2,
164+
"no-irregular-whitespace": 2,
165+
"no-iterator": 2,
166+
"no-label-var": 2,
167+
"no-labels": [
168+
2,
169+
{
170+
"allowLoop": false,
171+
"allowSwitch": false
172+
}
173+
],
174+
"no-lone-blocks": 2,
175+
"no-mixed-spaces-and-tabs": 2,
176+
"no-multi-spaces": 2,
177+
"no-multi-str": 2,
178+
"no-multiple-empty-lines": [
179+
2,
180+
{
181+
"max": 1
182+
}
183+
],
184+
"no-native-reassign": 2,
185+
"no-negated-in-lhs": 2,
186+
"no-new": 2,
187+
"no-new-func": 2,
188+
"no-new-object": 2,
189+
"no-new-require": 2,
190+
"no-new-symbol": 2,
191+
"no-new-wrappers": 2,
192+
"no-obj-calls": 2,
193+
"no-octal": 2,
194+
"no-octal-escape": 2,
195+
"no-path-concat": 2,
196+
"no-proto": 2,
197+
"no-redeclare": 2,
198+
"no-regex-spaces": 2,
199+
"no-return-assign": [
200+
2,
201+
"except-parens"
202+
],
203+
"no-self-assign": 2,
204+
"no-self-compare": 2,
205+
"no-sequences": 2,
206+
"no-shadow-restricted-names": 2,
207+
"no-spaced-func": 2,
208+
"no-sparse-arrays": 2,
209+
"no-this-before-super": 2,
210+
"no-throw-literal": 2,
211+
"no-trailing-spaces": 2,
212+
"no-undef": 2,
213+
"no-undef-init": 2,
214+
"no-unexpected-multiline": 2,
215+
"no-unmodified-loop-condition": 2,
216+
"no-unneeded-ternary": [
217+
2,
218+
{
219+
"defaultAssignment": false
220+
}
221+
],
222+
"no-unreachable": 2,
223+
"no-unsafe-finally": 2,
224+
"no-unused-vars": [
225+
2,
226+
{
227+
"vars": "all",
228+
"args": "none"
229+
}
230+
],
231+
"no-useless-call": 2,
232+
"no-useless-computed-key": 2,
233+
"no-useless-constructor": 2,
234+
"no-useless-escape": 2,
235+
"no-whitespace-before-property": 2,
236+
"no-with": 2,
237+
"one-var": [
238+
2,
239+
{
240+
"initialized": "never"
241+
}
242+
],
243+
"operator-linebreak": [
244+
2,
245+
"after",
246+
{
247+
"overrides": {
248+
"?": "before",
249+
":": "before"
250+
}
251+
}
252+
],
253+
"padded-blocks": [
254+
2,
255+
"never"
256+
],
257+
"quotes": [
258+
2,
259+
"single",
260+
"avoid-escape"
261+
],
262+
"semi": [
263+
2,
264+
"always"
265+
],
266+
"semi-spacing": [
267+
2,
268+
{
269+
"before": false,
270+
"after": true
271+
}
272+
],
273+
"space-before-blocks": [
274+
2,
275+
"always"
276+
],
277+
"space-before-function-paren": [
278+
2,
279+
"never"
280+
],
281+
"space-in-parens": [
282+
2,
283+
"never"
284+
],
285+
"space-infix-ops": 2,
286+
"space-unary-ops": [
287+
2,
288+
{
289+
"words": true,
290+
"nonwords": false
291+
}
292+
],
293+
"spaced-comment": [
294+
2,
295+
"always",
296+
{
297+
"markers": [
298+
"global",
299+
"globals",
300+
"eslint",
301+
"eslint-disable",
302+
"*package",
303+
"!",
304+
","
305+
]
306+
}
307+
],
308+
"template-curly-spacing": [
309+
2,
310+
"never"
311+
],
312+
"use-isnan": 2,
313+
"valid-typeof": 2,
314+
"wrap-iife": [
315+
2,
316+
"any"
317+
],
318+
"yield-star-spacing": [
319+
2,
320+
"both"
321+
],
322+
"yoda": [
323+
2,
324+
"never"
325+
],
326+
"standard/object-curly-even-spacing": [
327+
2,
328+
"either"
329+
],
330+
"standard/array-bracket-even-spacing": [
331+
2,
332+
"either"
333+
],
334+
"standard/computed-property-even-spacing": [
335+
2,
336+
"even"
337+
],
338+
"promise/param-names": 2,
339+
"linebreak-style": [
340+
2,
341+
"unix"
342+
]
343+
}
344+
}

‎.jscsrc‎

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp