Skip to content

Commit 22b1700

Browse files
fix(deps): update dependency synckit to ^0.6.2 || ^0.7.3 || ^0.11.5 (#404)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: JounQin <[email protected]>
1 parent daab78e commit 22b1700

File tree

11 files changed

+25
-22
lines changed

11 files changed

+25
-22
lines changed

.changeset/giant-dragons-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-jsonc": patch
3+
---
4+
5+
fix(deps): update dependency synckit to `^0.6.2 || ^0.7.3 || ^0.11.5`

.env-cmdrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
2+
"test": {
3+
"SYNCKIT_TS_RUNNER": "swc"
4+
},
25
"version": {
3-
"IN_VERSION_SCRIPT": "true"
6+
"IN_VERSION_SCRIPT": "true",
7+
"SYNCKIT_TS_RUNNER": "swc"
48
},
59
"version-ci": {
610
"IN_VERSION_CI_SCRIPT": "true"

.github/workflows/NodeCI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Install Packages
8383
run: npm install
8484
- name: Test
85-
run: npm run test:transpile-only
85+
run: npm run test
8686
test-with-eslint6:
8787
runs-on: ubuntu-latest
8888
strategy:
@@ -100,7 +100,7 @@ jobs:
100100
npx rimraf node_modules
101101
npm install
102102
- name: Test
103-
run: npm run test:transpile-only
103+
run: npm run test
104104
test-with-eslint7:
105105
runs-on: ubuntu-latest
106106
strategy:
@@ -118,7 +118,7 @@ jobs:
118118
npx rimraf node_modules
119119
npm install
120120
- name: Test
121-
run: npm run test:transpile-only
121+
run: npm run test
122122
test-and-coverage:
123123
runs-on: ubuntu-latest
124124
steps:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ dist
103103
# TernJS port file
104104
.tern-port
105105

106+
/yarn.lock
106107
/typings/eslint/lib
107108
/dist-ts
108109
/index.d.ts

lib/meta.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// IMPORTANT!
22
// This file has been automatically generated,
33
// in order to update its content execute "npm run update"
4-
export const name = "eslint-plugin-jsonc";
5-
export const version = "2.20.0";
4+
export const name = "eslint-plugin-jsonc" as const;
5+
export const version = "2.20.0" as const;

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,22 @@
1818
"scripts": {
1919
"prebuild": "npm run -s clean",
2020
"build": "npm run build:meta && npm run build:ts && npm run build:dts",
21-
"build:meta": "ts-node --transpile-only ./tools/update-meta.ts",
21+
"build:meta": "node -r @swc-node/register ./tools/update-meta.ts",
2222
"build:ts": "tsc --project ./tsconfig.build.json",
2323
"build:dts": "npm run build:dts-step1 && npm run build:dts-step2",
2424
"build:dts-step1": "tsc --declaration --outDir dist-ts --project ./tsconfig.build.json",
2525
"build:dts-step2": "dts-bundle --name eslint-plugin-jsonc --main ./dist-ts/index.d.ts --out ../index.d.ts",
2626
"clean": "rimraf .nyc_output dist coverage",
2727
"lint": "eslint .",
2828
"eslint-fix": "eslint . --fix",
29-
"test:base": "mocha --require ts-node/register \"tests/lib/**/*.ts\" --reporter dot --timeout 60000",
29+
"test:base": "env-cmd -e test mocha --require @swc-node/register \"tests/lib/**/*.ts\" --reporter dot --timeout 60000",
3030
"test": "npm run test:base",
3131
"test:nyc": "nyc --reporter=lcov npm run test:base",
32-
"test:transpile-only": "mocha --require ts-node/register/transpile-only \"tests/lib/**/*.ts\" --reporter dot --timeout 60000",
3332
"pretest:integrations": "npm run build:ts && npm pack",
34-
"test:integrations": "mocha --require ts-node/register \"tests-integrations/lib/**/*.ts\" --reporter dot --timeout 120000",
35-
"update": "ts-node --transpile-only ./tools/update.ts && npm run eslint-fix && npm run test:nyc",
36-
"update-only": "ts-node --transpile-only ./tools/update.ts",
37-
"new": "ts-node ./tools/new-rule.ts",
33+
"test:integrations": "mocha --require @swc-node/register \"tests-integrations/lib/**/*.ts\" --reporter dot --timeout 120000",
34+
"update": "node -r @swc-node/register ./tools/update.ts && npm run eslint-fix && npm run test:nyc",
35+
"update-only": "node -r @swc-node/register ./tools/update.ts",
36+
"new": "node -r @swc-node/register ./tools/new-rule.ts",
3837
"predocs:watch": "npm run build:ts",
3938
"docs:watch": "vitepress dev docs",
4039
"docs:build": "npm run build:ts && vitepress build docs",
@@ -73,7 +72,7 @@
7372
"graphemer": "^1.4.0",
7473
"jsonc-eslint-parser": "^2.4.0",
7574
"natural-compare": "^1.4.0",
76-
"synckit": "^0.6.2 || ^0.7.3 || ^0.10.3"
75+
"synckit": "^0.6.2 || ^0.7.3 || ^0.11.5"
7776
},
7877
"peerDependencies": {
7978
"eslint": ">=6.0.0"
@@ -86,6 +85,8 @@
8685
"@eslint/json": "^0.11.0",
8786
"@ota-meshi/eslint-plugin": "^0.17.6",
8887
"@ota-meshi/site-kit-eslint-editor-vue": "^0.2.4",
88+
"@swc-node/register": "^1.10.10",
89+
"@swc/core": "^1.11.24",
8990
"@types/eslint-scope": "^3.7.7",
9091
"@types/mocha": "^10.0.10",
9192
"@types/natural-compare": "^1.4.3",
@@ -122,7 +123,6 @@
122123
"stylelint-config-standard": "^37.0.0",
123124
"stylelint-config-standard-vue": "^1.0.0",
124125
"stylelint-stylus": "^1.0.0",
125-
"ts-node": "^10.9.2",
126126
"typescript": "^5.8.2",
127127
"typescript-eslint": "^8.28.0",
128128
"vite-plugin-eslint4b": "^0.5.1",

tests/lib/as-parser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ describe("eslint-plugin-jsonc as parser", () => {
1414
it("should parse '.json6'", async () => {
1515
const engine = new ESLint({
1616
cwd: TEST_CWD,
17-
// @ts-expect-error -- old ESLint
1817
extensions: [".js", ".json6"],
1918
plugins: {
2019
"eslint-plugin-jsonc": plugin as never,

tests/lib/auto-rule.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@ describe("auto rule", () => {
2929

3030
const engine = new ESLint({
3131
cwd: TEST_CWD,
32-
// @ts-expect-error -- old ESLint
3332
extensions: [".js", ".json"],
3433
plugins: {
3534
"eslint-plugin-jsonc": plugin as never,
3635
},
3736
});
3837
const fixEngine = new ESLint({
3938
cwd: TEST_CWD,
40-
// @ts-expect-error -- old ESLint
4139
extensions: [".js", ".json"],
4240
plugins: {
4341
"eslint-plugin-jsonc": plugin as never,

tests/lib/configs/recommended-with-json.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ describe("`recommended-with-json` config", () => {
1010
svelte: plugin as never,
1111
},
1212
baseConfig: {
13-
// @ts-expect-error -- old ESLint
1413
parserOptions: {
1514
ecmaVersion: 2020,
1615
},

tests/lib/eslint-plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ describe("Integration with eslint-plugin-jsonc", () => {
1414
it("should lint without errors", async () => {
1515
const engine = new ESLint({
1616
cwd: TEST_CWD,
17-
// @ts-expect-error -- old ESLint
1817
extensions: [".js", ".json"],
1918
plugins: {
2019
"eslint-plugin-jsonc": plugin as never,

0 commit comments

Comments
 (0)