How do you run a subset of the LWC specific ESLint rules and the common ESLint rules ?
Here are the common ones: https://eslint.org/docs/latest/rules/
and here the LWC specific ones: https://github.com/salesforce/eslint-plugin-lwc
I am able to run the LWC specific ones by specifying the --eslintconfig with a json
How do I run a subset of the common ESLint in addition to the LWC specific ones ?
For example I want to exclude sort-imports rule which is rule in the ESLint rule set
If I run scanner with -category suggestion then the sort-imports is used but not with problem category
but the sort-imports is not even listed as a rule with sf scanner rule list, why is it used ?
But I am getting this with 2 ESLInt LWC rules
Error (1): Error while loading rule '@lwc/lwc/no-unexpected-wire-adapter-usages': Cannot read properties of undefined (reading 'adapters')
and
Error (1): Error while loading rule '@lwc/lwc/no-unknown-wire-adapters': Cannot read properties of undefined (reading 'adapters')
so I had to put them "off"
Any idea what is causing that ?