Skip to content

Commit 3363e40

Browse files
committed
Add description about flat config
1 parent b2e220a commit 3363e40

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/eslint-config-airbnb-base/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ Our default export contains all of our ESLint rules, including ECMAScript 6+. It
6262

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

65+
If using flat config, you can import `"eslint-config-airbnb-base/flat"` on your `eslint.config.mjs` file like this:
66+
67+
```javascript
68+
import airbnbBase from "eslint-config-airbnb-base/flat";
69+
70+
export default [
71+
...airbnbBase,
72+
// Add your own configs
73+
];
74+
```
75+
76+
6577
### eslint-config-airbnb-base/legacy
6678

6779
Lints ES5 and below. Requires `eslint` and `eslint-plugin-import`.

0 commit comments

Comments
 (0)