forked from palantir/tslint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix non-no-unused-variable tests * Fix no-unused-variables tests and modify logic in noUnusedVariableRule for TS2.8 support Logic had to be modified because starting from TS2.8, when all imports in an import node are not used, TS emits only 1 diagnostic object for the whole line as opposed to the previous behavior of outputting a diagnostic with kind == 6192 (UnusedKind.VARIABLE_OR_PARAMETER) for every unused import. * fix lint issue * hack/fix check-parameters test for 2.9-dev * add builds for ts 2.7 and 2.8 * fix tests that broke from diagnosis codes changing in 2.9
- Loading branch information
Showing
15 changed files
with
173 additions
and
49 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 |
---|---|---|
|
@@ -63,6 +63,28 @@ jobs: | |
key: dependency-cache-{{ checksum "yarn.lock" }} | ||
- run: yarn add [email protected] | ||
- run: yarn test | ||
test2.7: | ||
docker: | ||
- image: circleci/node:6 | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: '.' | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "yarn.lock" }} | ||
- run: yarn add [email protected] | ||
- run: yarn test | ||
test2.8: | ||
docker: | ||
- image: circleci/node:6 | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: '.' | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "yarn.lock" }} | ||
- run: yarn add [email protected] | ||
- run: yarn test | ||
testNext: | ||
docker: | ||
- image: circleci/node:latest | ||
|
@@ -92,6 +114,12 @@ workflows: | |
- test2.4: | ||
requires: | ||
- build | ||
- test2.7: | ||
requires: | ||
- build | ||
- test2.8: | ||
requires: | ||
- build | ||
- testNext: | ||
requires: | ||
- build |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,4 @@ import abc = require('a'); | |
import def = abc.someVar; | ||
console.log(def); | ||
|
||
|
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
Oops, something went wrong.