Skip to content

Commit 7215073

Browse files
authored
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

+5-1
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

+4
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)