Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed rules incompatible with ESLint v8.40. #2147

Merged
merged 1 commit into from May 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion .eslintrc.js
Expand Up @@ -133,7 +133,11 @@
'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'
FloEdelmann marked this conversation as resolved.
Show resolved Hide resolved
},
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