nuxt / eslint

Collection of ESLint-related packages for Nuxt
https://eslint.nuxt.com
MIT License
553 stars 66 forks source link

Error while loading rule '@typescript-eslint/no-unused-expressions': Cannot read properties of undefined (reading 'allowShortCircuit') #518

Open naruko-hstk opened 2 hours ago

naruko-hstk commented 2 hours ago

Environment

Working directory: /Users/naruko_hstk/afei 3:14:20 Nuxt project info: (copied to clipboard) 3:14:20


Package

@nuxt/eslint

Reproduction

https://github.com/naruko-hstk/afei

Describe the bug

Here's Log

[Error - 上午3:09:11] TypeError: Error while loading rule '@typescript-eslint/no-unused-expressions': Cannot read properties of undefined (reading 'allowShortCircuit')
Occurred while linting /Users/naruko_hstk/afei/app.vue
    at Object.create (/Users/naruko_hstk/afei/node_modules/eslint/lib/rules/no-unused-expressions.js:75:13)
    at create (/Users/naruko_hstk/afei/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js:28:32)
    at Object.create (/Users/naruko_hstk/afei/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:31:20)
    at createRuleListeners (/Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:944:21)
    at /Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1082:84
    at Array.forEach (<anonymous>)
    at runRules (/Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1013:34)
    at #flatVerifyWithoutProcessors (/Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1911:31)
    at Linter._verifyWithFlatConfigArrayAndWithoutProcessors (/Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1993:49)
    at /Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1609:29

Additional context

No response

Logs

[Error - 上午3:09:11] TypeError: Error while loading rule '@typescript-eslint/no-unused-expressions': Cannot read properties of undefined (reading 'allowShortCircuit')
Occurred while linting /Users/naruko_hstk/afei/app.vue
    at Object.create (/Users/naruko_hstk/afei/node_modules/eslint/lib/rules/no-unused-expressions.js:75:13)
    at create (/Users/naruko_hstk/afei/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js:28:32)
    at Object.create (/Users/naruko_hstk/afei/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:31:20)
    at createRuleListeners (/Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:944:21)
    at /Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1082:84
    at Array.forEach (<anonymous>)
    at runRules (/Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1013:34)
    at #flatVerifyWithoutProcessors (/Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1911:31)
    at Linter._verifyWithFlatConfigArrayAndWithoutProcessors (/Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1993:49)
    at /Users/naruko_hstk/afei/node_modules/eslint/lib/linter/linter.js:1609:29
naruko-hstk commented 2 hours ago

b.t.w. Log is from eslint plugin on vscode