Skip to content

Commit 3492fcf

Browse files
committed
feat: support Eslint 9
1 parent 190b2c3 commit 3492fcf

26 files changed

+4709
-3640
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

.eslintrc.json

-4
This file was deleted.

.vscode/settings.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"cSpell.words": [
3-
"astrojs",
4-
"Globified",
5-
"globify"
6-
],
2+
"cSpell.words": ["astrojs", "Globified", "globify"],
73
"explorer.fileNesting.patterns": {
84
"index.js": "*.js"
95
}

eslint.config.cjs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const config = require("./index.js")
2+
module.exports = config

package.json

+22-21
Original file line numberDiff line numberDiff line change
@@ -25,59 +25,60 @@
2525
"test.format": "prettier . --check",
2626
"test.lint": "eslint . --ignore-pattern spec/fixtures/**"
2727
},
28-
"prettier": "prettier-config-atomic",
2928
"dependencies": {
30-
"@babel/core": "^7.24.0",
31-
"@babel/eslint-parser": "^7.23.10",
32-
"@babel/plugin-syntax-flow": "^7.23.3",
33-
"@babel/plugin-syntax-jsx": "^7.23.3",
34-
"@typescript-eslint/eslint-plugin": "7.1.1",
35-
"@typescript-eslint/parser": "7.1.1",
29+
"@babel/core": "^7.24.6",
30+
"@babel/eslint-parser": "^7.24.6",
31+
"@babel/plugin-syntax-flow": "^7.24.6",
32+
"@babel/plugin-syntax-jsx": "^7.24.6",
33+
"@eslint/js": "^9.3.0",
34+
"@typescript-eslint/eslint-plugin": "7.10.0",
35+
"@typescript-eslint/parser": "7.10.0",
3636
"anymatch": "^3.1.3",
37-
"eslint": "^8.57.0",
37+
"eslint": "^9.3.0",
3838
"eslint-config-prettier": "^9.1.0",
39-
"eslint-plugin-astro": "^0.31.4",
40-
"eslint-plugin-html": "^8.0.0",
39+
"eslint-plugin-astro": "^1.2.0",
40+
"eslint-plugin-html": "^8.1.1",
4141
"eslint-plugin-import": "^2.29.1",
42-
"eslint-plugin-json": "^3.1.0",
42+
"eslint-plugin-json": "^4.0.0",
4343
"eslint-plugin-node": "^11.1.0",
4444
"eslint-plugin-only-warn": "npm:@aminya/eslint-plugin-only-warn@^1.2.2",
4545
"eslint-plugin-optimize-regex": "^1.2.1",
46-
"eslint-plugin-react": "^7.34.0",
47-
"eslint-plugin-solid": "^0.13.1",
46+
"eslint-plugin-react": "^7.34.1",
47+
"eslint-plugin-solid": "^0.14.0",
4848
"eslint-plugin-yaml": "^0.5.0",
4949
"globify-gitignore": "^1.0.3",
5050
"make-synchronous": "^0.1.1",
5151
"prettier": "3.2.5",
5252
"read-pkg-up": "^7.0.1",
53-
"semver": "^7.6.0",
54-
"typescript": "^5.3.3"
53+
"semver": "^7.6.2",
54+
"typescript": "^5.4.5"
5555
},
5656
"devDependencies": {
5757
"@types/babel__core": "^7.20.5",
5858
"@types/coffeescript": "^2.5.7",
59-
"@types/eslint": "^8.56.5",
59+
"@types/eslint": "^8.56.10",
6060
"@types/eslint-config-prettier": "^6.11.3",
61+
"@types/eslint__js": "~8.42.3",
6162
"@types/execa": "^2.0.0",
62-
"@types/node": "^20.11.24",
63+
"@types/node": "^20.12.12",
6364
"@types/read-pkg-up": "^6.0.0",
6465
"@types/semver": "^7.5.8",
6566
"@types/shelljs": "^0.8.15",
6667
"eslint-config-atomic": "link:",
6768
"execa": "^5.1.1",
68-
"gitly": "^2.5.2",
69-
"npm-check-updates": "16.14.15",
69+
"gitly": "^3.0.0",
70+
"npm-check-updates": "16.14.20",
7071
"prettier-config-atomic": "^4.0.0",
7172
"shelljs": "^0.8.5",
7273
"shx": "^0.3.4"
7374
},
7475
"peerDependencies": {
75-
"eslint": "^8 || ^7 || ^6"
76+
"eslint": "^9 || ^8 || ^7 || ^6"
7677
},
7778
"optionalDependencies": {
7879
"coffeescript": "^1.12.7",
7980
"eslint-plugin-coffee": "^0.1.15",
80-
"eslint-plugin-react-hooks": "^4.6.0"
81+
"eslint-plugin-react-hooks": "^4.6.2"
8182
},
8283
"keywords": [
8384
"eslint",

0 commit comments

Comments
 (0)