Skip to content

Commit

Permalink
Merge branch 'master' into update-eslint-plugin-unicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed May 7, 2023
2 parents f29cc81 + 7215073 commit c9ab283
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ module.exports = {
'unicorn/prefer-top-level-await': 'off', // turn off to prevent make breaking changes (ref: #2146)
'unicorn/switch-case-braces': 'off', // turn off to prevent make breaking changes (ref: #2146)

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

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

Check warning on line 145 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
Original file line number Diff line number Diff line change
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 c9ab283

Please sign in to comment.