Skip to content

Commit 065b435

Browse files
authored
chore: lint TypeScript declaration files d.ts (#280)
1 parent 006d74f commit 065b435

File tree

3 files changed

+328
-26
lines changed

3 files changed

+328
-26
lines changed

eslint.config.mjs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { defineConfig, globalIgnores } from 'eslint/config'
22
import globals from 'globals'
3-
import pluginJs from '@eslint/js'
3+
import js from '@eslint/js'
44
import eslintPlugin from 'eslint-plugin-eslint-plugin'
55
import mochaPlugin from 'eslint-plugin-mocha'
66
import stylistic from '@stylistic/eslint-plugin'
7+
import tseslint from 'typescript-eslint'
78

89
export default defineConfig([
910

@@ -12,7 +13,7 @@ export default defineConfig([
1213
{
1314
files: ['**/*.{,m}js'],
1415
extends: [
15-
pluginJs.configs.recommended,
16+
js.configs.recommended,
1617
eslintPlugin.configs.recommended,
1718
mochaPlugin.configs.recommended,
1819
stylistic.configs.recommended,
@@ -36,4 +37,13 @@ export default defineConfig([
3637
globals: globals.node,
3738
},
3839
},
40+
{
41+
files: ['**/*.d.ts'],
42+
extends: [
43+
js.configs.recommended,
44+
tseslint.configs.recommended,
45+
tseslint.configs.stylistic,
46+
stylistic.configs.recommended,
47+
],
48+
},
3949
])

0 commit comments

Comments
 (0)