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 7215073

Browse files
Fixed rules incompatible with ESLint v8.40. (#2147)
1 parent 6916db0 commit 7215073

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ module.exports = {
133133
'unicorn/prefer-module': 'off',
134134
'unicorn/prevent-abbreviations': 'off',
135135

136-
'require-eslint-community': ['error']
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'
137141
},
138142
overrides: [
139143
{

‎lib/utils/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ function wrapContextToOverrideTokenMethods(context, tokenStore, options) {
248248
getSourceCode() {
249249
return sourceCode
250250
},
251+
// @ts-expect-error -- Added in ESLint v8.40
252+
get sourceCode() {
253+
return sourceCode
254+
},
251255
getDeclaredVariables
252256
})
253257

0 commit comments

Comments
(0)

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