Here"s a refined version of your README:
ariesclark/eslint-config
Note: This package requires ESLint v9 or higher and is not compatible with earlier versions. If you"re using an older version of ESLint, please upgrade to the latest release or use version 1.x of this package.
Key Features
- Zero Configuration: Ready to use immediately without setup.
- Highly Customizable: Easily extendable to fit specific project needs.
Installation
To add this configuration to your project, run:
pnpm install -D eslint@9 @ariesclark/eslint-config
Copy the example configuration file into your project’s root directory:
cp node_modules/@ariesclark/eslint-config/eslint.config.mjs .
Customize eslint.config.mjs
as needed for your project.
Presets
Next.js with Tailwind.css
import { configure } from "@ariesclark/eslint-config";
export default configure({
next: true,
tailwind: true,
typescript: {
tsconfigPath: "./tsconfig.json",
}
});
Examples
Normally you only need to import the configure preset:
import { configure } from "@ariesclark/eslint-config";
export default configure({
});
And that's it! Or you can configure each integration individually, for example:
import { configure } from "@ariesclark/eslint-config";
export default configure({
type: "app",
stylistic: {
indent: "tab",
quotes: "double",
},
typescript: true,
vue: true,
jsonc: false,
yaml: false,
ignores: [
"**/fixtures",
]
});
Running ESLint
To run ESLint with this configuration:
- You may need to install ESLint globally to use the
eslint
command directly, or use pnpx eslint
for a project-local setup. - When prompted to install any required plugins or parsers, follow the instructions. It’s best to complete this setup before starting your language server.
eslint .
Advanced Usage
For complex documentation, see the @antfu/eslint-config, which this package is based on.