An extract of eslint airbnb base rules (eslint-config-airbnb-base v15) for use with eslint 9.
- Add
@eslint/compat
andglobals
npm packages as dev dependencies to your project if you haven't yet:
npm install @eslint/compat globals -D --save
- Add the following to the top of your
eslint.config.mjs
import airbnbConfig from "eslint-config-airbnb-base-extract/airbnb-config.mjs";
- Add
airbnbConfig
to your default like:
export default [
...airbnbConfig,
{
npm install
npm run refreshMjs