Skip to main content

Adding Eslint

Installing bud.js dependencies

To get started with Eslint, install the @roots/bud-eslint extension to your project.

npm install @roots/bud-eslint --save-dev

If you want to extend one of our first party configurations, you'll also want to install @roots/eslint-config:

npm install @roots/eslint-config --save-dev

Configuring eslint

Once you've installed the extension you can configure it either in your bud.config file or in a separate .eslintrc.js file.

For more information on configuring eslint refer to the @roots/bud-eslint documentation.