Adding Eslint
Installing bud.js dependencies
To get started with Eslint, install the @roots/bud-eslint extension to your project.
- npm
- Yarn
- pnpm
npm install @roots/bud-eslint --save-dev
yarn add @roots/bud-eslint --dev
pnpm add @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
- Yarn
- pnpm
npm install @roots/eslint-config --save-dev
yarn add @roots/eslint-config --dev
pnpm add @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.