Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d58fb19

Browse files
TatsuyaYamamotoota-meshi
andauthored
Update eslint-plugin-unicorn to v47 (#2146)
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
1 parent 9184384 commit d58fb19

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

‎.eslintrc.js

Lines changed: 8 additions & 5 deletions
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /