Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rmathewsbeyond opened this issue Dec 10, 2022 · 1 comment
Open

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

rmathewsbeyond opened this issue Dec 10, 2022 · 1 comment

Comments

@rmathewsbeyond
Copy link

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
Copy link
Member

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?

@pmdartus pmdartus reopened this Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants