Skip to content

Commit 3a66b61

Browse files
committed
Include some eslint recommended rules
Via tseslint.configs.recommendedTypeChecked This excludes some rules from js.configs.recommended that are known to be incompatible
1 parent b948539 commit 3a66b61

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

eslint.config.mjs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,13 @@ export default [
2222
".github/**/*",
2323
],
2424
},
25-
// eslint-plugin-github recommended config (includes eslint:recommended,
26-
// eslint-plugin-import, eslint-comments, i18n-text, and github rules).
25+
// eslint-plugin-github recommended config
2726
githubFlatConfigs.recommended,
28-
// eslint-plugin-github typescript config (includes
29-
// @typescript-eslint/recommended and escompat).
27+
// eslint-plugin-github typescript config
3028
...githubFlatConfigs.typescript,
31-
// Type-checked rules from typescript-eslint (the github plugin only
32-
// includes the base recommended rules, not the type-checked ones).
33-
...tseslint.configs.recommendedTypeCheckedOnly,
34-
// import-x TypeScript settings (parsers, extensions, external-module-folders).
29+
// Type-checked rules from typescript-eslint
30+
...tseslint.configs.recommendedTypeChecked,
31+
// import-x TypeScript settings
3532
// This is needed for import-x rules to properly parse TypeScript files.
3633
{
3734
settings: importX.flatConfigs.typescript.settings,

0 commit comments

Comments
 (0)