salesforce / eslint-config-lwc

Opinionated ESLint configurations for LWC projects
MIT License
114 stars 35 forks source link

Configuration for rule "@lwc/lwc/valid-api" is invalid #106

Open rmathewsbeyond opened 1 year ago

rmathewsbeyond commented 1 year ago

Getting the following error

Uncaught exception received. Error: .eslintrc » @salesforce/eslint-config-lwc/recommended: Configuration for rule "@lwc/lwc/valid-api" is invalid: Value [{"disallowUnderscoreUppercaseMix":true}] should NOT have more than 0 items.

at validateRuleOptions (/Users/RMathews/Documents/GitHub/salesforce-bedrock/node_modules/eslint/lib/shared/config-validator.js:138:19)
at /Users/RMathews/Documents/GitHub/salesforce-bedrock/node_modules/eslint/lib/shared/config-validator.js:193:9
at Array.forEach (<anonymous>)
at validateRules (/Users/RMathews/Documents/GitHub/salesforce-bedrock/node_modules/eslint/lib/shared/config-validator.js:190:30)
at validateConfigArray (/Users/RMathews/Documents/GitHub/salesforce-bedrock/node_modules/eslint/lib/shared/config-validator.js:337:9)
at CascadingConfigArrayFactory._finalizeConfigArray (/Users/RMathews/Documents/GitHub/salesforce-bedrock/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:417:13)
at CascadingConfigArrayFactory.getConfigArrayForFile (/Users/RMathews/Documents/GitHub/salesforce-bedrock/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:271:21)
at CLIEngine.isPathIgnored (/Users/RMathews/Documents/GitHub/salesforce-bedrock/node_modules/eslint/lib/cli-engine/cli-engine.js:951:18)
at k.isPathIgnored (/Users/RMathews/.vscode/extensions/dbaeumer.vscode-eslint-2.2.6/server/out/eslintServer.js:1:12207)
at /Users/RMathews/.vscode/extensions/dbaeumer.vscode-eslint-2.2.6/server/out/eslintServer.js:1:22172
pmdartus commented 1 year ago

I am not able to reproduce this issue. Could you please share detailed reproduction steps?

I stumbled upon this Stack Overflow question searching for similar error messages. Do you have ESLint globally installed on your machine? Also, which version of ESLint are you running within your project?