-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch expect to using settings for versionsToTest (#970)
- Loading branch information
1 parent
465dbce
commit 5dae397
Showing
4 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@definitelytyped/eslint-plugin": patch | ||
"@definitelytyped/dtslint": patch | ||
--- | ||
|
||
Switch expect to using settings for versionsToTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 5 additions & 8 deletions
13
packages/eslint-plugin/test/fixtures/types/expect-diagnostics-versioned/.eslintrc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
module.exports = { | ||
overrides: [ | ||
{ | ||
files: ["*.ts", "*.cts", "*.mts", "*.tsx"], | ||
rules: { | ||
"@definitelytyped/expect": ["error", { versionsToTest: [{ versionName: "x.y", path: "typescript" }] }], | ||
}, | ||
}, | ||
] | ||
settings: { | ||
dt: { | ||
versionsToTest: [{ versionName: "x.y", path: "typescript" }] | ||
} | ||
}, | ||
}; |