-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: drop support for ESLint v6 (#5972)
BREAKING CHANGE: drop support for ESLint v6
- Loading branch information
Showing
13 changed files
with
60 additions
and
35 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
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tegration/fixtures/eslint-v6/package.json → ...tegration/fixtures/eslint-v7/package.json
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,5 +1,5 @@ | ||
{ | ||
"devDependencies": { | ||
"eslint": "6.0.0" | ||
"eslint": "7.0.0" | ||
} | ||
} |
File renamed without changes.
28 changes: 0 additions & 28 deletions
28
tests/integration/tests/__snapshots__/eslint-v6.test.ts.snap
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
tests/integration/tests/__snapshots__/eslint-v7.test.ts.snap
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,53 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`eslint-v7 should lint successfully 1`] = ` | ||
[ | ||
{ | ||
"errorCount": 1, | ||
"filePath": "<root>/index.ts", | ||
"fixableErrorCount": 0, | ||
"fixableWarningCount": 0, | ||
"messages": [ | ||
{ | ||
"column": 15, | ||
"endColumn": 18, | ||
"endLine": 1, | ||
"line": 1, | ||
"message": "Unexpected any. Specify a different type.", | ||
"messageId": "unexpectedAny", | ||
"nodeType": "TSAnyKeyword", | ||
"ruleId": "@typescript-eslint/no-explicit-any", | ||
"severity": 2, | ||
"suggestions": [ | ||
{ | ||
"desc": "Use \`unknown\` instead, this will force you to explicitly, and safely assert the type is correct.", | ||
"fix": { | ||
"range": [ | ||
14, | ||
17, | ||
], | ||
"text": "unknown", | ||
}, | ||
"messageId": "suggestUnknown", | ||
}, | ||
{ | ||
"desc": "Use \`never\` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.", | ||
"fix": { | ||
"range": [ | ||
14, | ||
17, | ||
], | ||
"text": "never", | ||
}, | ||
"messageId": "suggestNever", | ||
}, | ||
], | ||
}, | ||
], | ||
"source": "const noSemi: any = true; | ||
", | ||
"usedDeprecatedRules": [], | ||
"warningCount": 0, | ||
}, | ||
] | ||
`; |
File renamed without changes.