Skip to content

Commit 41bd764

Browse files
committed
ci(lint): add eslint typescript config to eslint.config.js
1 parent 78e1f45 commit 41bd764

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

bun.lockb

376 Bytes
Binary file not shown.

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import tseslint from "typescript-eslint"
55
export default tseslint.config(
66
// add more generic rule sets here, such as:
77
js.configs.recommended,
8+
tseslint.configs.recommended,
89
eslintPluginAstro.configs.recommended,
910
{
11+
files: ["**/*.astro, **/*.tsx, **/*.jsx, **/*.ts, **/*.js"],
1012
rules: {
1113
// override/add rules settings here, such as:
1214
// "astro/no-set-html-directive": "error"

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
},
1616
"devDependencies": {
1717
"@eslint/eslintrc": "^3.2.0",
18-
"@typescript-eslint/eslint-plugin": "^8.18.2",
19-
"@typescript-eslint/parser": "^8.18.2",
2018
"eslint": "^9.17.0",
2119
"eslint-plugin-astro": "^1.3.1",
2220
"prettier": "^3.4.2",
2321
"prettier-plugin-astro": "^0.14.1",
22+
"typescript": "^5.7.2",
2423
"typescript-eslint": "^8.18.2"
2524
}
2625
}

src/components/Welcome.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import astroLogo from "@/assets/astro.svg"
33
import background from "@/assets/background.svg"
4-
const a = ""
54
---
65

76
<div id="container">

0 commit comments

Comments
 (0)