Skip to content

Commit 2a94a2b

Browse files
fix: mark type of flat config export to satisfy Linter.Config[] (#10128)
### Description Adds `satisfies Linter.Config[]` after the flat config definition. This allows importing the config into other typescirpt configs without having type unification issues. ### Testing Instructions N/A this is a pretty simple type fix Co-authored-by: Anthony Shew <[email protected]>
1 parent bc356fd commit 2a94a2b

File tree

1 file changed

+2
-1
lines changed
  • packages/eslint-config-turbo/src/flat

1 file changed

+2
-1
lines changed

packages/eslint-config-turbo/src/flat/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { Linter } from "eslint";
12
import plugin from "eslint-plugin-turbo";
23

34
// eslint-disable-next-line import/no-default-export -- Matching old module.exports
@@ -10,4 +11,4 @@ export default [
1011
"turbo/no-undeclared-env-vars": "error",
1112
},
1213
},
13-
];
14+
] satisfies Linter.Config[];

0 commit comments

Comments
 (0)