Skip to content

Commit 72c932e

Browse files
committed
feature: @putout/eslint-flat: createESLintConfig: alias to defineConfig
1 parent b9799ba commit 72c932e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

packages/eslint-flat/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default [
123123
124124
### `createESLintConfig(configs)`
125125
126-
Gives ability to avoid lots of spreads:
126+
Gives ability to avoid lots of spreads (alias to [`defineConfig`](https://eslint.org/blog/2025/03/flat-config-extends-define-config-global-ignores/):
127127
128128
```js
129129
export default createESLintConfig([safeAlign, config]);
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
'use strict';
22

3-
module.exports.createESLintConfig = (a) => a.flat();
3+
const {defineConfig} = require('@eslint/config-helpers');
4+
5+
module.exports.createESLintConfig = defineConfig;

packages/eslint-flat/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"report": "madrun report"
2525
},
2626
"dependencies": {
27+
"@eslint/config-helpers": "^0.1.0",
2728
"@eslint/eslintrc": "^3.0.2",
2829
"try-catch": "^3.0.0",
2930
"try-to-catch": "^3.0.0"

0 commit comments

Comments
 (0)