Using Eslint with Sage
Install the @roots/bud-eslint and the [@roots/eslint-config] preset package:
yarn add @roots/bud-eslint @roots/eslint-config --dev
Then, in your theme directory create a eslint.config.cjs
file and include the Sage default eslint config:
eslint.config.cjs
module.exports = {
root: true,
extends: ['@roots/eslint-config/sage'],
}