diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index 6589ed1ca..9a8faad30 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,4 +1,5 @@ { + "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 .", 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" }, }),