Skip to content

Commit 459cc48

Browse files
Update eslint-config-problems to the latest version 🚀 (postcss#310)
* chore(package): update eslint-config-problems to version 4.0.0 * Use base config * Use optional catch bindings Co-authored-by: Ryan Zimmerman <17342435+RyanZim@users.noreply.github.com>
1 parent 6b0666e commit 459cc48

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎.eslintrc.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
env:
22
node: true
3-
extends: problems/node10
3+
extends: problems
44
rules:
55
no-console: off

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"ava": "^3.1.0",
3636
"coveralls": "^3.0.0",
3737
"eslint": "^6.8.0",
38-
"eslint-config-problems": "3.1.0",
38+
"eslint-config-problems": "4.0.0",
3939
"nyc": "^15.0.0",
4040
"postcss-import": "^12.0.0",
4141
"prettier": "~1.19.1",

‎test/watch.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ testCb('--watch works', t => {
7171
function done(err) {
7272
try {
7373
cp.kill()
74-
} catch (e) {}
74+
} catch {}
7575

7676
t.end(err)
7777
}
@@ -152,7 +152,7 @@ testCb('--watch postcss.config.js', t => {
152152
function done(err) {
153153
try {
154154
cp.kill()
155-
} catch (e) {}
155+
} catch {}
156156

157157
t.end(err)
158158
}
@@ -223,7 +223,7 @@ testCb('--watch dependencies', t => {
223223
function done(err) {
224224
try {
225225
cp.kill()
226-
} catch (e) {}
226+
} catch {}
227227
t.end(err)
228228
}
229229
})
@@ -274,7 +274,7 @@ testCb("--watch doesn't exit on CssSyntaxError", t => {
274274
function done(err) {
275275
try {
276276
cp.kill()
277-
} catch (e) {}
277+
} catch {}
278278

279279
t.end(err)
280280
}

0 commit comments

Comments
 (0)