Skip to content

Commit db54cd9

Browse files
committed
chore: migrate to eslint flat config
1 parent 884338d commit db54cd9

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

eslint.config.mjs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
import eslint from '@eslint/js'
2-
import tsParser from '@typescript-eslint/parser'
32
import eslintConfigPrettier from 'eslint-config-prettier/flat'
43
import { defineConfig } from 'eslint/config'
54
import globals from 'globals'
65
import tseslint from 'typescript-eslint'
76

87
export default defineConfig(
8+
{ ignores: ['dist', 'apidocs', 'vitest.config.ts', 'eslint.config.mjs'] },
99
eslint.configs.recommended,
1010
tseslint.configs.recommended,
1111
eslintConfigPrettier,
12-
{ ignores: ['dist', 'apidocs', 'vitest.config.ts'] },
1312
{
1413
languageOptions: {
1514
globals: { ...globals.node },
16-
parser: tsParser,
17-
ecmaVersion: 9,
18-
parserOptions: {
19-
project: './tsconfig.json',
20-
},
15+
parserOptions: { project: './tsconfig.json' },
2116
},
2217
rules: {
2318
'@typescript-eslint/no-unused-vars': [

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"@eslint/js": "^9.39.2",
2020
"@solid/community-server": "^7.0.2",
2121
"@types/maildev": "^0.0.7",
22-
"@typescript-eslint/parser": "^8.54.0",
2322
"cheerio": "^1.0.0-rc.12",
2423
"cross-fetch": "^4.0.0",
2524
"eslint": "^9.39.2",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
"lib": ["ESNext"],
1919
"types": ["node"]
2020
},
21-
"include": ["./src", "eslint.config.mjs"]
21+
"include": ["./src"]
2222
}

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3402,7 +3402,7 @@
34023402
natural-compare "^1.4.0"
34033403
ts-api-utils "^2.4.0"
34043404

3405-
"@typescript-eslint/parser@8.54.0", "@typescript-eslint/parser@^8.54.0":
3405+
"@typescript-eslint/parser@8.54.0":
34063406
version "8.54.0"
34073407
resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.54.0.tgz#3d01a6f54ed247deb9982621f70e7abf1810bd97"
34083408
integrity sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==

0 commit comments

Comments
 (0)