Skip to content

Commit 5368ca4

Browse files
committedOct 16, 2022
[eslint] fix indentation and whitespace
1 parent 980d7ac commit 5368ca4

19 files changed

+1002
-1009
lines changed
 

‎.eslintrc

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

4-
"extends": "@ljharb/eslint-config/node/0.4",
4+
"extends": "@ljharb/eslint-config/node/0.4",
55

6-
"rules": {
7-
"array-bracket-spacing": 0,
8-
"array-element-newline": 0,
9-
"brace-style": 1,
10-
"camelcase": 1,
11-
"comma-dangle": 1,
12-
"comma-spacing": 1,
13-
"complexity": 0,
14-
"curly": 1,
15-
"dot-notation": 1,
16-
"eol-last": 1,
17-
"func-style": 1,
18-
"function-paren-newline": 1,
19-
"indent": [1, 4],
20-
"key-spacing": 1,
21-
"max-lines-per-function": 0,
22-
"max-nested-callbacks": 1,
23-
"max-statements": 0,
24-
"multiline-comment-style": 1,
25-
"no-array-constructor": 1,
26-
"no-continue": 1,
27-
"no-div-regex": 1,
28-
"no-extra-parens": 1,
29-
"no-mixed-operators": 1,
30-
"no-multi-spaces": 1,
31-
"no-multiple-empty-lines": 1,
32-
"no-param-reassign": 1,
33-
"no-plusplus": 1,
34-
"no-proto": 1,
35-
"no-redeclare": 1,
36-
"no-restricted-syntax": 1,
37-
"no-shadow": 1,
38-
"no-trailing-spaces": 1,
39-
"no-unused-vars": 1,
40-
"no-use-before-define": 1,
41-
"object-curly-newline": 1,
42-
"object-curly-spacing": 1,
43-
"operator-linebreak": 1,
44-
"quote-props": 1,
45-
"quotes": 1,
46-
"semi-style": 1,
47-
"semi": 1,
48-
"space-before-blocks": 1,
49-
"space-before-function-paren": 1,
50-
"space-infix-ops": 1,
51-
"strict": 1,
52-
"wrap-regex": 1,
53-
},
6+
"rules": {
7+
"array-element-newline": 0,
8+
"camelcase": 1,
9+
"comma-dangle": 1,
10+
"complexity": 0,
11+
"curly": 1,
12+
"dot-notation": 1,
13+
"func-style": 1,
14+
"max-lines-per-function": 0,
15+
"max-nested-callbacks": 1,
16+
"max-statements": 0,
17+
"multiline-comment-style": 0,
18+
"no-array-constructor": 1,
19+
"no-continue": 1,
20+
"no-div-regex": 1,
21+
"no-extra-parens": 1,
22+
"no-mixed-operators": 1,
23+
"no-param-reassign": 1,
24+
"no-plusplus": 1,
25+
"no-proto": 1,
26+
"no-redeclare": 1,
27+
"no-restricted-syntax": 1,
28+
"no-shadow": 1,
29+
"no-unused-vars": 1,
30+
"no-use-before-define": 1,
31+
"object-curly-newline": 1,
32+
"operator-linebreak": 1,
33+
"quote-props": 1,
34+
"quotes": 1,
35+
"semi-style": 1,
36+
"semi": 1,
37+
"strict": 1,
38+
"wrap-regex": 1,
39+
},
5440
}

‎README.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ $ node example/parse.js -a beep -b boop
2626

2727
```
2828
$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz
29-
{ _: [ 'foo', 'bar', 'baz' ],
30-
x: 3,
31-
y: 4,
32-
n: 5,
33-
a: true,
34-
b: true,
35-
c: true,
36-
beep: 'boop' }
29+
{
30+
_: ['foo', 'bar', 'baz'],
31+
x: 3,
32+
y: 4,
33+
n: 5,
34+
a: true,
35+
b: true,
36+
c: true,
37+
beep: 'boop'
38+
}
3739
```
3840

3941
# security
@@ -81,8 +83,10 @@ and `argv['--']` with everything after the `--`. Here's an example:
8183

8284
```
8385
> require('./')('one two three -- four five --six'.split(' '), { '--': true })
84-
{ _: [ 'one', 'two', 'three' ],
85-
'--': [ 'four', 'five', '--six' ] }
86+
{
87+
_: ['one', 'two', 'three'],
88+
'--': ['four', 'five', '--six']
89+
}
8690
```
8791

8892
Note that with `opts['--']` set, parsing for arguments still stops after the

0 commit comments

Comments
 (0)
Please sign in to comment.