Skip to content

Commit d58fb19

Browse files
Update eslint-plugin-unicorn to v47 (#2146)
Co-authored-by: Yosuke Ota <[email protected]>
1 parent 9184384 commit d58fb19

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.eslintrc.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,19 @@ module.exports = {
128128
'unicorn/filename-case': 'off',
129129
'unicorn/no-null': 'off',
130130
'unicorn/no-array-callback-reference': 'off', // doesn't work well with TypeScript's custom type guards
131+
'unicorn/no-negated-condition': 'off', // remove when there are few pull requests (ref: #2146)
131132
'unicorn/no-useless-undefined': 'off',
132133
'unicorn/prefer-optional-catch-binding': 'off', // not supported by current ESLint parser version
133134
'unicorn/prefer-module': 'off',
134135
'unicorn/prevent-abbreviations': 'off',
136+
'unicorn/prefer-at': 'off', // turn off to prevent make breaking changes (ref: #2146)
137+
'unicorn/prefer-node-protocol': 'off', // turn off to prevent make breaking changes (ref: #2146)
138+
'unicorn/prefer-string-replace-all': 'off', // turn off to prevent make breaking changes (ref: #2146)
139+
'unicorn/prefer-ternary': 'off', // remove when there are few pull requests (ref: #2146)
140+
'unicorn/prefer-top-level-await': 'off', // turn off to prevent make breaking changes (ref: #2146)
141+
'unicorn/switch-case-braces': 'off', // remove when there are few pull requests (ref: #2146)
135142

136-
'require-eslint-community': ['error'],
137-
138-
// FIXME: The version we are currently using is not compatible.
139-
// May be removed in #2146. https://github.com/vuejs/eslint-plugin-vue/pull/2146
140-
'unicorn/expiring-todo-comments': 'off'
143+
'require-eslint-community': ['error']
141144
},
142145
overrides: [
143146
{

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"eslint-plugin-jsonc": "^2.2.1",
8282
"eslint-plugin-node-dependencies": ">=0.5.0 <1.0.0",
8383
"eslint-plugin-prettier": "^4.0.0",
84-
"eslint-plugin-unicorn": "^42.0.0",
84+
"eslint-plugin-unicorn": "^47.0.0",
8585
"eslint-plugin-vue": "file:.",
8686
"espree": "^9.3.2",
8787
"events": "^3.3.0",

0 commit comments

Comments
 (0)