A simple and modern way to make your code clean
npm install --save-dev eslint eslint-config-purify
From v8.21.0
, eslint announced a new config system.
In the new system, .eslintrc*
is no longer used. eslint.config.js
would be the default config file name.
More details: the new config system.
So, you can just extend this config in your eslint.config.js
:
import eslintConfigPurify from "eslint-config-purify";
export default [
...eslintConfigPurify,
{
// ... your awesome config (plugins, rules, etc.)
}
];
eslint-config-purify
is licensed under the MIT License.