From 884eef3662f822953d075359d698c3f3c47cbd78 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Tue, 30 Aug 2022 01:50:59 +0000 Subject: [PATCH 1/4] test: ignore indent test for decorators with ts4.8 --- tests/src/rules/indent.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/src/rules/indent.ts b/tests/src/rules/indent.ts index 0c04d94c5..6ab47fa13 100644 --- a/tests/src/rules/indent.ts +++ b/tests/src/rules/indent.ts @@ -33,6 +33,15 @@ describe("use @typescript-eslint/parser@4", () => { rule as any, loadTestCases("indent", { filter(filename) { + if ( + filename.endsWith("ts-class03-input.svelte") || + filename.endsWith("ts-decorator01-input.svelte") || + filename.endsWith("ts-decorator02-input.svelte") + ) { + // Decorator nodes in ts4.8 are incompatible. + return false + } + return path.basename(path.dirname(filename)) === "ts" }, }), From 7c4e0c0f6a84138956b108c6be1d1c7a5cecebfb Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Tue, 30 Aug 2022 11:21:30 +0900 Subject: [PATCH 2/4] Update ci.json --- .codesandbox/ci.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index 6589ed1ca..2e9d8dca4 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,4 +1,5 @@ { + "installCommand": "yarn --ignore-engines", "node": "16", "sandboxes": [] } From bd22d02858c840140c4abf7f13bd03c2900643cf Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Tue, 30 Aug 2022 11:22:46 +0900 Subject: [PATCH 3/4] Update ci.json --- .codesandbox/ci.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index 2e9d8dca4..9ae6eb1fd 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,5 +1,5 @@ { - "installCommand": "yarn --ignore-engines", + "installCommand": "install --ignore-engines", "node": "16", "sandboxes": [] } From edaeba502218c5ecfb0be323dd92ed883c68b92b Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Tue, 30 Aug 2022 02:28:36 +0000 Subject: [PATCH 4/4] chore: update codesandbox config --- .codesandbox/ci.json | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index 9ae6eb1fd..9a8faad30 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,5 +1,5 @@ { - "installCommand": "install --ignore-engines", + "installCommand": "install-with-ignore-engines", "node": "16", "sandboxes": [] } diff --git a/package.json b/package.json index b97aafa0a..407d773ac 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "docs:preview": "yarn svelte-kit preview", "docs:watch": "yarn svelte-kit dev", "format-for-gen-file": "eslint src/types-for-node.ts src/utils/rules.ts src/configs --fix", + "install-with-ignore-engines": "yarn --ignore-engines", "lint": "run-p lint:*", "lint-fix": "yarn lint:es --fix && yarn lint:style --fix", "lint:es": "eslint --cache -f friendly .",