Skip to content

Commit

Permalink
Add description about flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
tamiroh committed Nov 12, 2024
1 parent b2e220a commit 3363e40
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/eslint-config-airbnb-base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ Our default export contains all of our ESLint rules, including ECMAScript 6+. It

2. Add `"extends": "airbnb-base"` to your .eslintrc.

If using flat config, you can import `"eslint-config-airbnb-base/flat"` on your `eslint.config.mjs` file like this:

```javascript
import airbnbBase from "eslint-config-airbnb-base/flat";

export default [
...airbnbBase,
// Add your own configs
];
```


### eslint-config-airbnb-base/legacy

Lints ES5 and below. Requires `eslint` and `eslint-plugin-import`.
Expand Down

0 comments on commit 3363e40

Please sign in to comment.