Skip to content

Commit d361d39

Browse files
committed
feat!: change the plugin into an ESM-only package
1 parent 4c130da commit d361d39

File tree

207 files changed

+835
-1095
lines changed

Some content is hidden

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

207 files changed

+835
-1095
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+
}

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+
}
File renamed without changes.

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-next.1"
@@ -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
},
File renamed without changes.

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.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Linter } from 'eslint';
2-
import { rules } from '../../utils/rules';
3-
import base from './base';
2+
import { rules } from '../../utils/rules.js';
3+
import base from './base.js';
44
const config: Linter.Config[] = [
55
...base,
66
{

0 commit comments

Comments
 (0)