The base configuration for ESLint used by AdonisJS applications and packages.
Install the package as a development dependency from the npm packages registry.
npm i -D @adonisjs/eslint-config
# For yarn lovers
yarn add -D @adonisjs/eslint-config
# For pnpm believers
pnpm add -D @adonisjs/eslint-config
Add the following rule to your eslint config file.
{
"extends": "@adonisjs/eslint-config/app"
}
If you are creating a package, then make sure to extend from the package
config.
{
"extends": "@adonisjs/eslint-config/package"
}