Skip to content

Commit 6604b27

Browse files
authored
Disable unicorn/empty-brace-spaces (#169)
1 parent 078db84 commit 6604b27

File tree

4 files changed

+35
-5
lines changed

4 files changed

+35
-5
lines changed

package-lock.json

Lines changed: 28 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"eslint-plugin-prettier": "3.2.0",
2727
"eslint-plugin-react": "7.21.5",
2828
"eslint-plugin-standard": "4.0.2",
29-
"eslint-plugin-unicorn": "23.0.0",
29+
"eslint-plugin-unicorn": "24.0.0",
3030
"eslint-plugin-vue": "7.2.0",
3131
"jest": "26.6.3",
3232
"prettier": "2.2.1",

test-lint/unicorn.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
// Prettier wants number literals to be lowercase, but
55
// `plugin:unicorn/recommended` wants them uppercase.
66
0xffffff;
7+
8+
// Prettier wants line break in `try`, but
9+
// `plugin:unicorn/recommended` wants whitespace removed.
10+
try {
11+
} catch {}

unicorn.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module.exports = {
44
rules: {
5+
"unicorn/empty-brace-spaces": "off",
56
"unicorn/no-nested-ternary": "off",
67
"unicorn/number-literal-case": "off",
78
},

0 commit comments

Comments
 (0)