@typescript-eslint/rule-tester 8.45.1-alpha.2 → 8.45.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/RuleTester.js
CHANGED
|
@@ -754,9 +754,6 @@ class RuleTester extends TestFramework_1.TestFramework {
|
|
|
754
754
|
else {
|
|
755
755
|
node_assert_1.default.fail("Test error must specify either a 'messageId' or 'message'.");
|
|
756
756
|
}
|
|
757
|
-
if (error.type) {
|
|
758
|
-
node_assert_1.default.strictEqual(message.nodeType, error.type, `Error type should be ${error.type}, found ${message.nodeType}`);
|
|
759
|
-
}
|
|
760
757
|
if ((0, hasOwnProperty_1.hasOwnProperty)(error, 'line')) {
|
|
761
758
|
node_assert_1.default.strictEqual(message.line, error.line, `Error line should be ${error.line}`);
|
|
762
759
|
}
|
|
@@ -47,7 +47,7 @@ export interface TestCaseError<MessageIds extends string> {
|
|
|
47
47
|
*/
|
|
48
48
|
readonly suggestions?: readonly SuggestionOutput<MessageIds>[] | null;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* @deprecated `type` is deprecated and will be removed in the next major version.
|
|
51
51
|
*/
|
|
52
52
|
readonly type?: AST_NODE_TYPES | AST_TOKEN_TYPES;
|
|
53
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/rule-tester",
|
|
3
|
-
"version": "8.45.1-alpha.
|
|
3
|
+
"version": "8.45.1-alpha.4",
|
|
4
4
|
"description": "Tooling to test ESLint rules",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"//": "NOTE - AJV is out-of-date, but it's intentionally synced with ESLint - https://github.com/eslint/eslint/blob/ad9dd6a933fd098a0d99c6a9aa059850535c23ee/package.json#L70",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@typescript-eslint/parser": "8.45.1-alpha.
|
|
48
|
-
"@typescript-eslint/typescript-estree": "8.45.1-alpha.
|
|
49
|
-
"@typescript-eslint/utils": "8.45.1-alpha.
|
|
47
|
+
"@typescript-eslint/parser": "8.45.1-alpha.4",
|
|
48
|
+
"@typescript-eslint/typescript-estree": "8.45.1-alpha.4",
|
|
49
|
+
"@typescript-eslint/utils": "8.45.1-alpha.4",
|
|
50
50
|
"ajv": "^6.12.6",
|
|
51
51
|
"json-stable-stringify-without-jsonify": "^1.0.1",
|
|
52
52
|
"lodash.merge": "4.6.2",
|