Skip to content

Commit a1e0484

Browse files
committed
chore: clean up ts recommended configs into specific ts section
1 parent 1cd2701 commit a1e0484

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

eslint.config.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ export default defineConfig([
2424
'eslint.config.mjs',
2525
]),
2626

27-
tseslint.configs.recommendedTypeChecked,
27+
//tseslint.configs.recommendedTypeChecked,
2828
{
2929
files: [
3030
'src/**/*.ts',
3131
'scripts/*.ts',
3232
'test/*.ts',
3333
],
3434
...js.configs.recommended,
35+
...tseslint.configs.recommendedTypeChecked[0],
3536

3637
languageOptions: {
3738
sourceType: 'module',
@@ -71,6 +72,9 @@ export default defineConfig([
7172
],
7273
'curly': ['error', 'all'],
7374
'eqeqeq': 'error',
75+
'import/no-dynamic-require': 'error',
76+
'import/no-default-export': 'error',
77+
'import/no-self-import': 'error',
7478
'max-len': ['error', {
7579
'code': 120, // needs to be in sync w/ .prettierrc printWidth
7680
'ignoreUrls': true,
@@ -108,7 +112,7 @@ export default defineConfig([
108112
plugins: { json },
109113
language: 'json/json',
110114
...json.configs.recommended,
111-
extends: [ tseslint.configs.disableTypeChecked],
115+
//extends: [ tseslint.configs.disableTypeChecked],
112116
},
113117

114118
// Lint JSONC
@@ -124,7 +128,7 @@ export default defineConfig([
124128
files: ['**/*.md'],
125129
plugins: { markdown },
126130
language: 'markdown/commonmark',
127-
extends: [ 'markdown/recommended', tseslint.configs.disableTypeChecked ],
131+
extends: [ 'markdown/recommended' ],
128132
},
129133

130134
//prettier,

0 commit comments

Comments
 (0)