- More than 500 errored rules.
- Over 100 vanilla ESLint rules.
- Over 100 rules from @typescript/eslint
- Over 100 rules from sindresorhus/eslint-plugin-unicorn
- Nearly 100 rules from eslint-plugin-react
- Includes eslint-plugin-react-hooks
- Includes jsx-a11y
- Includes eslint-plugin-astro
- Includes eslint-plugin-sonarjs
- Import sorting with eslint-plugin-simple-import-sort
- Includes Prettier built in (do NOT use this with a separate Prettier config.)
- And more...
{your package manager install} @ethang/eslint-config
Requires TypesScript and tsconfig.json at root directory.
In eslint.config.js
import config from "@ethang/eslint-config/eslint.config.js";
import tseslint from "typescript-eslint";
export default tseslint.config(...config, {
ignores: ["dist/"], // Your ignores directories
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: "./tsconfig.json",
},
},
rules: {
// your custom rules here
},
});
Scripts:
"scripts": {
"lint": "eslint",
"lint:fix": "eslint . --fix",
}