Skip to content

Commit aaa9d1f

Browse files
committed
[eslint] fix indentation and whitespace
1 parent 6ee1437 commit aaa9d1f

File tree

11 files changed

+420
-429
lines changed

11 files changed

+420
-429
lines changed

.eslintrc

+36-45
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,41 @@
11
{
2-
"root": true,
2+
"root": true,
33

4-
"extends": "@ljharb",
4+
"extends": "@ljharb",
55

6-
"rules": {
7-
"array-bracket-newline": 0,
8-
"array-bracket-spacing": 1,
9-
"array-callback-return": 1,
10-
"brace-style": 1,
11-
"comma-spacing": 1,
12-
"complexity": 0,
13-
"consistent-return": 1,
14-
"curly": 1,
15-
"eqeqeq": 1,
16-
"func-style": 1,
17-
"indent": [1, 4],
18-
"max-depth": 0,
19-
"max-lines-per-function": 1,
20-
"max-statements": 0,
21-
"multiline-comment-style": 0,
22-
"no-else-return": 1,
23-
"no-lonely-if": 1,
24-
"no-negated-condition": 1,
25-
"no-param-reassign": 1,
26-
"no-shadow": 1,
27-
"no-template-curly-in-string": 0,
28-
"no-trailing-spaces": 1,
29-
"no-use-before-define": 1,
30-
"no-useless-escape": 1,
31-
"nonblock-statement-body-position": 1,
32-
"object-curly-spacing": 1,
33-
"prefer-regex-literals": 1,
34-
"quotes": 1,
35-
"space-before-blocks": 1,
36-
"space-before-function-paren": 1,
37-
"space-infix-ops": 1,
38-
"spaced-comment": 1,
39-
"wrap-regex": 1,
40-
},
6+
"rules": {
7+
"array-bracket-newline": 0,
8+
"array-callback-return": 1,
9+
"brace-style": 1,
10+
"complexity": 0,
11+
"consistent-return": 1,
12+
"curly": 1,
13+
"eqeqeq": 1,
14+
"func-style": 1,
15+
"max-depth": 0,
16+
"max-lines-per-function": 1,
17+
"max-statements": 0,
18+
"multiline-comment-style": 0,
19+
"no-else-return": 1,
20+
"no-lonely-if": 1,
21+
"no-negated-condition": 1,
22+
"no-param-reassign": 1,
23+
"no-shadow": 1,
24+
"no-template-curly-in-string": 0,
25+
"no-use-before-define": 1,
26+
"no-useless-escape": 1,
27+
"nonblock-statement-body-position": 1,
28+
"prefer-regex-literals": 1,
29+
"quotes": 1,
30+
"wrap-regex": 1,
31+
},
4132

42-
"overrides": [
43-
{
44-
"files": "example/**",
45-
"rules": {
46-
"no-console": 0,
47-
},
48-
},
49-
],
33+
"overrides": [
34+
{
35+
"files": "example/**",
36+
"rules": {
37+
"no-console": 0,
38+
},
39+
},
40+
],
5041
}

example/quote.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

33
var quote = require('../').quote;
4-
var s = quote([ 'a', 'b c d', '$f', '"g"' ]);
4+
var s = quote(['a', 'b c d', '$f', '"g"']);
55
console.log(s);

0 commit comments

Comments
 (0)