#How to customize a rule with the new ESLint config file?

1 messages · Page 1 of 1 (latest)

late terrace
#

I want to change a rule (ember/no-controller-access-in-routes) defined in the recommended rule set of eslint-plugin-error from error to warn. How can I do that with the new ESLint config file (eslint.config.mjs). Likely a dump question. But I wasn't able to find any example how I can customize it without expanding the entire configuration pulled in from eslint-plugin-ember/configs/recommended.

safe storm
#

Do you remember overrides from prior eslints?

#

The config array now is only overrides

#

So your config object can go at the end of the array, add a files pattern, and customize rules, same as with overrides