Skip to content

Commit

Permalink
Update eslint-plugin-unicorn to v47 (#2146)
Browse files Browse the repository at this point in the history
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
  • Loading branch information
TatsuyaYamamoto and ota-meshi authored May 8, 2023
1 parent 9184384 commit d58fb19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,19 @@ module.exports = {
'unicorn/filename-case': 'off',
'unicorn/no-null': 'off',
'unicorn/no-array-callback-reference': 'off', // doesn't work well with TypeScript's custom type guards
'unicorn/no-negated-condition': 'off', // remove when there are few pull requests (ref: #2146)
'unicorn/no-useless-undefined': 'off',
'unicorn/prefer-optional-catch-binding': 'off', // not supported by current ESLint parser version
'unicorn/prefer-module': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/prefer-at': 'off', // turn off to prevent make breaking changes (ref: #2146)
'unicorn/prefer-node-protocol': 'off', // turn off to prevent make breaking changes (ref: #2146)
'unicorn/prefer-string-replace-all': 'off', // turn off to prevent make breaking changes (ref: #2146)
'unicorn/prefer-ternary': 'off', // remove when there are few pull requests (ref: #2146)
'unicorn/prefer-top-level-await': 'off', // turn off to prevent make breaking changes (ref: #2146)
'unicorn/switch-case-braces': 'off', // remove when there are few pull requests (ref: #2146)

'require-eslint-community': ['error'],

// FIXME: The version we are currently using is not compatible.
// May be removed in #2146. https://github.com/vuejs/eslint-plugin-vue/pull/2146
'unicorn/expiring-todo-comments': 'off'
'require-eslint-community': ['error']
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"eslint-plugin-jsonc": "^2.2.1",
"eslint-plugin-node-dependencies": ">=0.5.0 <1.0.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unicorn": "^42.0.0",
"eslint-plugin-unicorn": "^47.0.0",
"eslint-plugin-vue": "file:.",
"espree": "^9.3.2",
"events": "^3.3.0",
Expand Down

0 comments on commit d58fb19

Please sign in to comment.