Can you pattern match with eslint – lean-imports/import
I have a resource that is a folder of images. When a user imports an image using the pattern below, it pulls in the whole package.
Disable eslint rules for recommended rules without ignorefile
I have a eslint.config.js file like this:
ESLint Configuration Error: ‘parserOptions’ Detected in ES6 Config Format Instead of Flat Config Format
I’m trying to set up config eslint.
The problem is that ESLint complains about using parserOptions in the configuration, indicating that it is the eslintrc format, not the flat configuration format. I would like the configuration to work without errors and to comply with the new ESLint flat configuration format.
eslint 9 | flatConfig | configError
I’m trying to set up config eslint.
The problem is that ESLint complains about using parserOptions in the configuration, indicating that it is the eslintrc format, not the flat configuration format. I would like the configuration to work without errors and to comply with the new ESLint flat configuration format.
eslint to write console always in one line
for personal reasons I want console.(log|error|…) always to be written in one line.
[ERR_MODULE_NOT_FOUND]: Cannot find package ‘eslint-plugin-react’ imported
I am trying to create a pre-commit hook Git for ESlint
and I get an error when using console with npx lint-staged.
How do I incorporate airbnb-base into ESLint’s eslint.config.mjs file?
In previous applications, I have used .eslintrc
as the depository for my instructions to ESLint. But now I have to use eslint.config.mjs
instead.
installing eslint 9 fails
I created new project and installed the following deps
ES Lint import/order rule not respecting charset order
My ESLint import/order
rule is behaving abnormally. It used to work fine before but I have recently run some package upgrades on my application and the alphabetize property is arranging my import statements in the wrong order.
Flat config and extends
I am aware flat config with eslint removed extends
.