Skip to content

Commit

Permalink
Disable unicorn/empty-brace-spaces (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Dec 18, 2020
1 parent 078db84 commit 6604b27
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
32 changes: 28 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"eslint-plugin-prettier": "3.2.0",
"eslint-plugin-react": "7.21.5",
"eslint-plugin-standard": "4.0.2",
"eslint-plugin-unicorn": "23.0.0",
"eslint-plugin-unicorn": "24.0.0",
"eslint-plugin-vue": "7.2.0",
"jest": "26.6.3",
"prettier": "2.2.1",
Expand Down
5 changes: 5 additions & 0 deletions test-lint/unicorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
// Prettier wants number literals to be lowercase, but
// `plugin:unicorn/recommended` wants them uppercase.
0xffffff;

// Prettier wants line break in `try`, but
// `plugin:unicorn/recommended` wants whitespace removed.
try {
} catch {}
1 change: 1 addition & 0 deletions unicorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module.exports = {
rules: {
"unicorn/empty-brace-spaces": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/number-literal-case": "off",
},
Expand Down

0 comments on commit 6604b27

Please sign in to comment.