Skip to content

Commit b8fd1b6

Browse files
authored
Format using prettier (#9)
1 parent bb476de commit b8fd1b6

Some content is hidden

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

45 files changed

+19834
-19390
lines changed

.all-contributorsrc

Lines changed: 22 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"files": [
3-
"README.md"
4-
],
2+
"files": ["README.md"],
53
"imageSize": 100,
64
"commit": false,
75
"contributors": [
@@ -10,192 +8,147 @@
108
"name": "Dan Klausner",
119
"avatar_url": "https://avatars1.githubusercontent.com/u/2083539?v=4",
1210
"profile": "https://github.com/wellDan28",
13-
"contributions": [
14-
"bug",
15-
"code"
16-
]
11+
"contributions": ["bug", "code"]
1712
},
1813
{
1914
"login": "datitisev",
2015
"name": "David Sevilla Martín",
2116
"avatar_url": "https://avatars2.githubusercontent.com/u/6401250?v=4",
2217
"profile": "https://datitisev.me",
23-
"contributions": [
24-
"doc"
25-
]
18+
"contributions": ["doc"]
2619
},
2720
{
2821
"login": "phun-ky",
2922
"name": "Alexander Vassbotn Røyne-Helgesen",
3023
"avatar_url": "https://avatars1.githubusercontent.com/u/1714029?v=4",
3124
"profile": "http://phun-ky.net",
32-
"contributions": [
33-
"bug",
34-
"code"
35-
]
25+
"contributions": ["bug", "code"]
3626
},
3727
{
3828
"login": "joaquin-corchero",
3929
"name": "Joaquin Corchero",
4030
"avatar_url": "https://avatars2.githubusercontent.com/u/6892214?v=4",
4131
"profile": "https://github.com/joaquin-corchero",
42-
"contributions": [
43-
"code"
44-
]
32+
"contributions": ["code"]
4533
},
4634
{
4735
"login": "durera",
4836
"name": "David Parker",
4937
"avatar_url": "https://avatars1.githubusercontent.com/u/4400618?v=4",
5038
"profile": "https://github.com/durera",
51-
"contributions": [
52-
"code"
53-
]
39+
"contributions": ["code"]
5440
},
5541
{
5642
"login": "mariotacke",
5743
"name": "Mario Tacke",
5844
"avatar_url": "https://avatars2.githubusercontent.com/u/4942019?v=4",
5945
"profile": "https://www.mariotacke.io",
60-
"contributions": [
61-
"code"
62-
]
46+
"contributions": ["code"]
6347
},
6448
{
6549
"login": "kyeah",
6650
"name": "Kevin Yeh",
6751
"avatar_url": "https://avatars1.githubusercontent.com/u/2308368?v=4",
6852
"profile": "http://kyeh.me",
69-
"contributions": [
70-
"code"
71-
]
53+
"contributions": ["code"]
7254
},
7355
{
7456
"login": "jackocnr",
7557
"name": "Jack O'Connor",
7658
"avatar_url": "https://avatars0.githubusercontent.com/u/1186883?v=4",
7759
"profile": "https://jackocnr.com",
78-
"contributions": [
79-
"code"
80-
]
60+
"contributions": ["code"]
8161
},
8262
{
8363
"login": "kstolte",
8464
"name": "Keith Stolte",
8565
"avatar_url": "https://avatars0.githubusercontent.com/u/20091146?v=4",
8666
"profile": "https://keithstolte.io",
87-
"contributions": [
88-
"doc",
89-
"design"
90-
]
67+
"contributions": ["doc", "design"]
9168
},
9269
{
9370
"login": "david-poindexter",
9471
"name": "David Poindexter",
9572
"avatar_url": "https://avatars2.githubusercontent.com/u/4568451?v=4",
9673
"profile": "http://www.nvisionative.com",
97-
"contributions": [
98-
"doc"
99-
]
74+
"contributions": ["doc"]
10075
},
10176
{
10277
"login": "fthomas",
10378
"name": "Frank S. Thomas",
10479
"avatar_url": "https://avatars1.githubusercontent.com/u/141252?v=4",
10580
"profile": "https://github.com/fthomas",
106-
"contributions": [
107-
"code"
108-
]
81+
"contributions": ["code"]
10982
},
11083
{
11184
"login": "pawk",
11285
"name": "pawk",
11386
"avatar_url": "https://avatars1.githubusercontent.com/u/27773225?v=4",
11487
"profile": "https://github.com/pawk",
115-
"contributions": [
116-
"code"
117-
]
88+
"contributions": ["code"]
11889
},
11990
{
12091
"login": "Atry",
12192
"name": "Yang, Bo",
12293
"avatar_url": "https://avatars3.githubusercontent.com/u/601530?v=4",
12394
"profile": "https://www.yang-bo.com/",
124-
"contributions": [
125-
"code"
126-
]
95+
"contributions": ["code"]
12796
},
12897
{
12998
"login": "v1v",
13099
"name": "Victor Martinez",
131100
"avatar_url": "https://avatars2.githubusercontent.com/u/2871786?v=4",
132101
"profile": "https://github.com/v1v",
133-
"contributions": [
134-
"doc"
135-
]
102+
"contributions": ["doc"]
136103
},
137104
{
138105
"login": "Tybot204",
139106
"name": "Tyler Hogan",
140107
"avatar_url": "https://avatars3.githubusercontent.com/u/7002601?v=4",
141108
"profile": "https://github.com/Tybot204",
142-
"contributions": [
143-
"code"
144-
]
109+
"contributions": ["code"]
145110
},
146111
{
147112
"login": "blairg23",
148113
"name": "Blair Gemmer",
149114
"avatar_url": "https://avatars0.githubusercontent.com/u/6225764?v=4",
150115
"profile": "http://blairgemmer.com",
151-
"contributions": [
152-
"doc"
153-
]
116+
"contributions": ["doc"]
154117
},
155118
{
156119
"login": "lianghx-319",
157120
"name": "Han",
158121
"avatar_url": "https://avatars2.githubusercontent.com/u/27187946?v=4",
159122
"profile": "https://github.com/lianghx-319",
160-
"contributions": [
161-
"code"
162-
]
123+
"contributions": ["code"]
163124
},
164125
{
165126
"login": "donmahallem",
166127
"name": "donmahallem",
167128
"avatar_url": "https://avatars2.githubusercontent.com/u/4698322?v=4",
168129
"profile": "https://github.com/donmahallem",
169-
"contributions": [
170-
"code"
171-
]
130+
"contributions": ["code"]
172131
},
173132
{
174133
"login": "aelbozie",
175134
"name": "Ahmed",
176135
"avatar_url": "https://avatars3.githubusercontent.com/u/36151122?v=4",
177136
"profile": "https://github.com/aelbozie",
178-
"contributions": [
179-
"code"
180-
]
137+
"contributions": ["code"]
181138
},
182139
{
183140
"login": "monicarib",
184141
"name": "Mônica Ribeiro",
185142
"avatar_url": "https://avatars0.githubusercontent.com/u/7025960?v=4",
186143
"profile": "https://github.com/monicarib",
187-
"contributions": [
188-
"code"
189-
]
144+
"contributions": ["code"]
190145
},
191146
{
192147
"login": "viatrix",
193148
"name": "Tanya Bushenyova",
194149
"avatar_url": "https://avatars.githubusercontent.com/u/16937734?v=4",
195150
"profile": "https://github.com/viatrix",
196-
"contributions": [
197-
"code"
198-
]
151+
"contributions": ["code"]
199152
}
200153
],
201154
"contributorsPerLine": 7,

.babelrc

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{
2-
"presets": ["@babel/preset-env"],
3-
"plugins": [
4-
"@babel/plugin-transform-runtime",
5-
"@babel/plugin-proposal-object-rest-spread"
6-
],
7-
"env": {
8-
"test": {
9-
"plugins": ["istanbul"]
10-
}
11-
},
12-
"targets": "node 14.0"
13-
}
1+
{
2+
"presets": ["@babel/preset-env"],
3+
"plugins": ["@babel/plugin-transform-runtime", "@babel/plugin-proposal-object-rest-spread"],
4+
"env": {
5+
"test": {
6+
"plugins": ["istanbul"]
7+
}
8+
},
9+
"targets": "node 14.0"
10+
}

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
codecov:
2-
branch: master
2+
branch: master

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ root = true
55

66
[*]
77
indent_style = space
8-
indent_size = 4
8+
indent_size = 2
99
charset = utf-8
1010
trim_trailing_whitespace = true
1111
insert_final_newline = true

.eslintrc.yaml

Lines changed: 47 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,54 @@
11
parser: babel-eslint
22
env:
3-
node: true
4-
mocha: true
5-
es6: true
3+
node: true
4+
mocha: true
5+
es6: true
66
parserOptions:
7-
ecmaVersion: 6
8-
sourceType: module
9-
ecmaFeatures:
10-
impliedStrict: true
11-
allowImportExportEverywhere: false
7+
ecmaVersion: 6
8+
sourceType: module
9+
ecmaFeatures:
10+
impliedStrict: true
11+
allowImportExportEverywhere: false
1212
plugins:
13-
- mocha
14-
- babel
13+
- mocha
14+
- babel
1515
extends:
16-
- semistandard
16+
- prettier
1717
rules:
18-
no-undef: 1
19-
no-unreachable: 1
20-
no-empty: error
21-
array-callback-return: error
22-
no-var: error
23-
indent:
24-
- error
25-
- 4
26-
- SwitchCase: 1
27-
space-before-function-paren:
28-
- error
29-
- never
30-
no-debugger: 0
31-
prefer-const: error
32-
strict: error
33-
no-template-curly-in-string: error
34-
consistent-return: error
35-
no-multiple-empty-lines:
36-
- error
37-
- max: 1
38-
maxBOF: 0
39-
no-lonely-if: error
40-
new-parens: error
41-
eol-last: error
42-
no-array-constructor: error
43-
arrow-body-style:
44-
- error
45-
- as-needed
46-
prefer-arrow-callback:
47-
- error
48-
- allowNamedFunctions: true
49-
prefer-destructuring:
50-
- error
51-
- object: true
52-
array: false
53-
prefer-spread: error
54-
prefer-rest-params: error
55-
prefer-promise-reject-errors: 0
56-
valid-typeof: 0
18+
no-undef: 1
19+
no-unreachable: 1
20+
no-empty: error
21+
array-callback-return: error
22+
no-var: error
23+
no-debugger: 0
24+
prefer-const: error
25+
strict: error
26+
no-template-curly-in-string: error
27+
consistent-return: error
28+
no-multiple-empty-lines:
29+
- error
30+
- max: 1
31+
maxBOF: 0
32+
no-lonely-if: error
33+
new-parens: error
34+
eol-last: error
35+
no-array-constructor: error
36+
arrow-body-style:
37+
- error
38+
- as-needed
39+
prefer-arrow-callback:
40+
- error
41+
- allowNamedFunctions: true
42+
prefer-destructuring:
43+
- error
44+
- object: true
45+
array: false
46+
prefer-spread: error
47+
prefer-rest-params: error
48+
prefer-promise-reject-errors: 0
49+
valid-typeof: 0
5750
overrides:
58-
- files:
59-
- "*.spec.js"
60-
env:
61-
mocha: true
51+
- files:
52+
- "*.spec.js"
53+
env:
54+
mocha: true

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
experimental: true
2323
runs-on: ${{ matrix.os }}
2424
continue-on-error: ${{ matrix.experimental }}
25-
25+
2626
steps:
2727
- uses: actions/checkout@v3
2828
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
@@ -36,4 +36,3 @@ jobs:
3636
- run: npm ci
3737
- run: npm test
3838
- run: npm run build
39-

0 commit comments

Comments
 (0)