npm install --save-dev eslint \
@agilebot/eslint-config
And create eslint.config.mjs
in your project root:
// eslint.config.mjs
import { agilebot } from '@agilebot/eslint-config';
export default agilebot(import.meta);
The agilebot
preset provides a streamlined way to configure your ESLint setup. Here’s how you can use it and customize it based on your needs.
To get started, import the agilebot
preset:
// eslint.config.mjs
import { agilebot } from '@agilebot/eslint-config';
export default agilebot(import.meta);
This will automatically apply the default configurations provided by agilebot
.
If you want more control, you can customize individual integrations using the FactoryOptions interface. For example:
// eslint.config.mjs
import { agilebot } from '@agilebot/eslint-config';
export default agilebot(import.meta, {
...
// Other options
});