Skip to content

Commit 0438c97

Browse files
committed
feat!: change the plugin into an ESM-only package
1 parent e34dfdf commit 0438c97

File tree

208 files changed

+837
-1096
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+837
-1096
lines changed

.env-cmdrc.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

.env-cmdrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": {
3+
"IN_VERSION_SCRIPT": "true"
4+
},
5+
"version-ci": {
6+
"IN_VERSION_CI_SCRIPT": "true"
7+
},
8+
"debug": {
9+
"DEBUG": "eslint-plugin-svelte*"
10+
},
11+
"update-fixtures": {
12+
"UPDATE_FIXTURES": "true"
13+
}
14+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"license": "MIT",
66
"funding": "https://github.com/sponsors/ota-meshi",
77
"packageManager": "[email protected]",
8+
"type": "module",
89
"scripts": {
910
"prerelease": "cd packages/eslint-plugin-svelte && pnpm clean && pnpm run build && cd ../.. && cp README.md packages/eslint-plugin-svelte",
1011
"release": "changeset publish",
@@ -23,7 +24,7 @@
2324
"@typescript-eslint/eslint-plugin": "^8.16.0",
2425
"@typescript-eslint/parser": "^8.16.0",
2526
"env-cmd": "^10.1.0",
26-
"eslint": "~9.15.0",
27+
"eslint": "~9.14.0",
2728
"eslint-config-prettier": "^9.1.0",
2829
"eslint-formatter-friendly": "^7.0.0",
2930
"eslint-plugin-eslint-plugin": "^6.3.2",

packages/eslint-plugin-svelte/.env-cmdrc.js

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": {
3+
"IN_VERSION_SCRIPT": "true"
4+
},
5+
"version-ci": {
6+
"IN_VERSION_CI_SCRIPT": "true"
7+
},
8+
"debug": {
9+
"DEBUG": "eslint-plugin-svelte*"
10+
},
11+
"update-fixtures": {
12+
"UPDATE_FIXTURES": "true"
13+
}
14+
}

packages/eslint-plugin-svelte/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"engines": {
1111
"node": "^18.20.4 || ^20.18.0 || >=22.10.0"
1212
},
13-
"type": "commonjs",
13+
"type": "module",
1414
"main": "lib/index.js",
1515
"files": [
1616
"lib"
@@ -40,7 +40,7 @@
4040
"test": "pnpm run mocha \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
4141
"test:debug": "env-cmd -e debug pnpm run test",
4242
"test:update-fixtures": "env-cmd -e update-fixtures pnpm run test",
43-
"ts": "node -r esbuild-register",
43+
"ts": "node --import tsx/esm",
4444
"typecov": "type-coverage",
4545
"update": "pnpm run ts ./tools/update.ts",
4646
"version": "env-cmd -e version pnpm run update",
@@ -63,7 +63,7 @@
6363
"known-css-properties": "^0.35.0",
6464
"postcss": "^8.4.49",
6565
"postcss-load-config": "^3.1.4",
66-
"postcss-safe-parser": "^7.0.0",
66+
"postcss-safe-parser": "^6.0.0",
6767
"postcss-selector-parser": "^7.0.0",
6868
"semver": "^7.6.3",
6969
"svelte-eslint-parser": "^1.0.0-0"
@@ -86,7 +86,6 @@
8686
"acorn": "^8.14.0",
8787
"assert": "^2.1.0",
8888
"esbuild": "^0.24.0",
89-
"esbuild-register": "^3.6.0",
9089
"eslint-scope": "^8.2.0",
9190
"eslint-typegen": "^0.3.2",
9291
"eslint-visitor-keys": "^4.2.0",
@@ -100,6 +99,7 @@
10099
"stylus": "^0.64.0",
101100
"svelte": "^5.2.9",
102101
"svelte-i18n": "^4.0.1",
102+
"tsx": "^4.19.2",
103103
"type-coverage": "^2.29.7",
104104
"yaml": "^2.6.1"
105105
},

packages/eslint-plugin-svelte/src/configs/all.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/eslint-plugin-svelte/src/configs/base.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)