Skip to content

Commit

Permalink
Fixed rules incompatible with ESLint v8.40. (#2147)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed May 7, 2023
1 parent 6916db0 commit 7215073
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .eslintrc.js
Expand Up @@ -133,7 +133,11 @@ module.exports = {
'unicorn/prefer-module': 'off',
'unicorn/prevent-abbreviations': 'off',

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

// FIXME: The version we are currently using is not compatible.

Check warning on line 138 in .eslintrc.js

View workflow job for this annotation

GitHub Actions / Lint

Unexpected 'fixme' comment: 'FIXME: The version we are currently...'
// May be removed in #2146. https://github.com/vuejs/eslint-plugin-vue/pull/2146
'unicorn/expiring-todo-comments': 'off'
},
overrides: [
{
Expand Down
4 changes: 4 additions & 0 deletions lib/utils/index.js
Expand Up @@ -248,6 +248,10 @@ function wrapContextToOverrideTokenMethods(context, tokenStore, options) {
getSourceCode() {
return sourceCode
},
// @ts-expect-error -- Added in ESLint v8.40
get sourceCode() {
return sourceCode
},
getDeclaredVariables
})

Expand Down

0 comments on commit 7215073

Please sign in to comment.