Skip to content

Commit e5f5067

Browse files
committed
[eslint] fix indentation and whitespace
1 parent 42635cd commit e5f5067

16 files changed

+764
-788
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

+15-11
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ $ node example/parse.js -a beep -b boop
3030

3131
```
3232
$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz
33-
{ _: [ 'foo', 'bar', 'baz' ],
34-
x: 3,
35-
y: 4,
36-
n: 5,
37-
a: true,
38-
b: true,
39-
c: true,
40-
beep: 'boop' }
33+
{
34+
_: ['foo', 'bar', 'baz'],
35+
x: 3,
36+
y: 4,
37+
n: 5,
38+
a: true,
39+
b: true,
40+
c: true,
41+
beep: 'boop'
42+
}
4143
```
4244

4345
# methods
@@ -71,10 +73,12 @@ argument names to use as aliases
7173
* `opts['--']` - when true, populate `argv._` with everything before the `--`
7274
and `argv['--']` with everything after the `--`. Here's an example:
7375

74-
```
76+
```sh
7577
> require('./')('one two three -- four five --six'.split(' '), { '--': true })
76-
{ _: [ 'one', 'two', 'three' ],
77-
'--': [ 'four', 'five', '--six' ] }
78+
{
79+
_: ['one', 'two', 'three'],
80+
'--': ['four', 'five', '--six'],
81+
}
7882
```
7983
8084
Note that with `opts['--']` set, parsing for arguments still stops after the

0 commit comments

Comments
 (0)