Skip to content

test: ignore indent test for decorators with ts4.8 #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"installCommand": "install-with-ignore-engines",
"node": "16",
"sandboxes": []
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down
9 changes: 9 additions & 0 deletions tests/src/rules/indent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
}),
Expand Down