feat(type-declaration-immutability): allow defining custom suggestion… #547
release.yml
on: push
Matrix: test_js / test_js
lint_js
/
lint_js
42s
lint_docs
/
lint_docs
27s
lint_knip_dev
/
lint_knip_dev
22s
lint_knip_prod
/
lint_knip_prod
16s
lint_markdown
/
lint_markdown
45s
lint_packages
/
lint_packages
20s
lint_spelling
/
lint_spelling
16s
lint_yaml
/
lint_yaml
27s
typecheck
/
typecheck
15s
release
0s
Annotations
12 errors and 23 warnings
tests/rules/prefer-tacit.test.ts > prefer-tacit > typescript > reports functions that can "safely" be changed:
tests/rules/prefer-tacit.test.ts#L25
Error: Snapshot `prefer-tacit > typescript > reports functions that can "safely" be changed 1` mismatched
- Expected
+ Received
@@ -9,18 +9,18 @@
"nodeType": "ArrowFunctionExpression",
"ruleId": "prefer-tacit",
"severity": 2,
"suggestions": [
{
- "desc": "Potentially unnecessary function wrapper.",
+ "desc": "Remove unnecessary function wrapper.",
"fix": {
"range": [
29,
38,
],
"text": "f",
},
- "messageId": "generic",
+ "messageId": "genericSuggestion",
},
],
},
]
❯ tests/rules/prefer-tacit.test.ts:25:39
|
tests/rules/prefer-tacit.test.ts > prefer-tacit > typescript > reports functions that are just instantiations:
tests/rules/prefer-tacit.test.ts#L44
Error: Snapshot `prefer-tacit > typescript > reports functions that are just instantiations 1` mismatched
- Expected
+ Received
@@ -9,18 +9,18 @@
"nodeType": "FunctionDeclaration",
"ruleId": "prefer-tacit",
"severity": 2,
"suggestions": [
{
- "desc": "Potentially unnecessary function wrapper.",
+ "desc": "Remove unnecessary function wrapper.",
"fix": {
"range": [
26,
66,
],
"text": "const foo = f<number>;",
},
- "messageId": "generic",
+ "messageId": "genericSuggestion",
},
],
},
]
❯ tests/rules/prefer-tacit.test.ts:44:38
|
tests/rules/prefer-tacit.test.ts > prefer-tacit > typescript > options > checkMemberExpressions > report member expressions when enabled:
tests/rules/prefer-tacit.test.ts#L128
Error: Snapshot `prefer-tacit > typescript > options > checkMemberExpressions > report member expressions when enabled 1` mismatched
- Expected
+ Received
@@ -9,18 +9,18 @@
"nodeType": "FunctionDeclaration",
"ruleId": "prefer-tacit",
"severity": 2,
"suggestions": [
{
- "desc": "Potentially unnecessary function wrapper.",
+ "desc": "Remove unnecessary function wrapper.",
"fix": {
"range": [
46,
80,
],
"text": "const foo = a.b.bind(a);",
},
- "messageId": "generic",
+ "messageId": "genericSuggestion",
},
],
},
]
❯ tests/rules/prefer-tacit.test.ts:128:43
|
test_js / Test - Node: 20 - TS: latest - OS: ubuntu-latest
Process completed with exit code 1.
|
tests/rules/prefer-tacit.test.ts > prefer-tacit > typescript > reports functions that can "safely" be changed:
tests/rules/prefer-tacit.test.ts#L25
Error: Snapshot `prefer-tacit > typescript > reports functions that can "safely" be changed 1` mismatched
- Expected
+ Received
@@ -9,18 +9,18 @@
"nodeType": "ArrowFunctionExpression",
"ruleId": "prefer-tacit",
"severity": 2,
"suggestions": [
{
- "desc": "Potentially unnecessary function wrapper.",
+ "desc": "Remove unnecessary function wrapper.",
"fix": {
"range": [
29,
38,
],
"text": "f",
},
- "messageId": "generic",
+ "messageId": "genericSuggestion",
},
],
},
]
❯ tests/rules/prefer-tacit.test.ts:25:39
|
tests/rules/prefer-tacit.test.ts > prefer-tacit > typescript > reports functions that are just instantiations:
tests/rules/prefer-tacit.test.ts#L44
Error: Snapshot `prefer-tacit > typescript > reports functions that are just instantiations 1` mismatched
- Expected
+ Received
@@ -9,18 +9,18 @@
"nodeType": "FunctionDeclaration",
"ruleId": "prefer-tacit",
"severity": 2,
"suggestions": [
{
- "desc": "Potentially unnecessary function wrapper.",
+ "desc": "Remove unnecessary function wrapper.",
"fix": {
"range": [
26,
66,
],
"text": "const foo = f<number>;",
},
- "messageId": "generic",
+ "messageId": "genericSuggestion",
},
],
},
]
❯ tests/rules/prefer-tacit.test.ts:44:38
|
tests/rules/prefer-tacit.test.ts > prefer-tacit > typescript > options > checkMemberExpressions > report member expressions when enabled:
tests/rules/prefer-tacit.test.ts#L128
Error: Snapshot `prefer-tacit > typescript > options > checkMemberExpressions > report member expressions when enabled 1` mismatched
- Expected
+ Received
@@ -9,18 +9,18 @@
"nodeType": "FunctionDeclaration",
"ruleId": "prefer-tacit",
"severity": 2,
"suggestions": [
{
- "desc": "Potentially unnecessary function wrapper.",
+ "desc": "Remove unnecessary function wrapper.",
"fix": {
"range": [
46,
80,
],
"text": "const foo = a.b.bind(a);",
},
- "messageId": "generic",
+ "messageId": "genericSuggestion",
},
],
},
]
❯ tests/rules/prefer-tacit.test.ts:128:43
|
test_js / Test - Node: 18.18 - TS: latest - OS: ubuntu-latest
Process completed with exit code 1.
|
tests/rules/prefer-tacit.test.ts > prefer-tacit > typescript > reports functions that can "safely" be changed:
tests/rules/prefer-tacit.test.ts#L25
Error: Snapshot `prefer-tacit > typescript > reports functions that can "safely" be changed 1` mismatched
- Expected
+ Received
@@ -9,18 +9,18 @@
"nodeType": "ArrowFunctionExpression",
"ruleId": "prefer-tacit",
"severity": 2,
"suggestions": [
{
- "desc": "Potentially unnecessary function wrapper.",
+ "desc": "Remove unnecessary function wrapper.",
"fix": {
"range": [
29,
38,
],
"text": "f",
},
- "messageId": "generic",
+ "messageId": "genericSuggestion",
},
],
},
]
❯ tests/rules/prefer-tacit.test.ts:25:39
|
tests/rules/prefer-tacit.test.ts > prefer-tacit > typescript > reports functions that are just instantiations:
tests/rules/prefer-tacit.test.ts#L44
Error: Snapshot `prefer-tacit > typescript > reports functions that are just instantiations 1` mismatched
- Expected
+ Received
@@ -9,18 +9,18 @@
"nodeType": "FunctionDeclaration",
"ruleId": "prefer-tacit",
"severity": 2,
"suggestions": [
{
- "desc": "Potentially unnecessary function wrapper.",
+ "desc": "Remove unnecessary function wrapper.",
"fix": {
"range": [
26,
66,
],
"text": "const foo = f<number>;",
},
- "messageId": "generic",
+ "messageId": "genericSuggestion",
},
],
},
]
❯ tests/rules/prefer-tacit.test.ts:44:38
|
tests/rules/prefer-tacit.test.ts > prefer-tacit > typescript > options > checkMemberExpressions > report member expressions when enabled:
tests/rules/prefer-tacit.test.ts#L128
Error: Snapshot `prefer-tacit > typescript > options > checkMemberExpressions > report member expressions when enabled 1` mismatched
- Expected
+ Received
@@ -9,18 +9,18 @@
"nodeType": "FunctionDeclaration",
"ruleId": "prefer-tacit",
"severity": 2,
"suggestions": [
{
- "desc": "Potentially unnecessary function wrapper.",
+ "desc": "Remove unnecessary function wrapper.",
"fix": {
"range": [
46,
80,
],
"text": "const foo = a.b.bind(a);",
},
- "messageId": "generic",
+ "messageId": "genericSuggestion",
},
],
},
]
❯ tests/rules/prefer-tacit.test.ts:128:43
|
test_js / Test - Node: latest - TS: latest - OS: ubuntu-latest
Process completed with exit code 1.
|
typecheck / typecheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint_knip_prod / lint_knip_prod
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint_spelling / lint_spelling
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint_packages / lint_packages
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint_knip_dev / lint_knip_dev
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint_docs / lint_docs
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint_yaml / lint_yaml
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint_js / lint_js
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint_js / lint_js:
src/options/overrides.ts#L32
Missing JSDoc comment
|
lint_js / lint_js:
src/options/overrides.ts#L41
Missing JSDoc comment
|
lint_js / lint_js:
src/options/overrides.ts#L101
Missing JSDoc comment
|
lint_js / lint_js:
src/rules/prefer-immutable-types.ts#L543
'fix' is already declared in the upper scope on line 529 column 15
|
lint_js / lint_js:
src/rules/prefer-immutable-types.ts#L646
'fix' is already declared in the upper scope on line 629 column 15
|
lint_js / lint_js:
src/rules/prefer-immutable-types.ts#L701
'fix' is already declared in the upper scope on line 686 column 11
|
lint_js / lint_js:
src/rules/prefer-immutable-types.ts#L882
'fix' is already declared in the upper scope on line 870 column 81
|
lint_js / lint_js:
src/utils/schemas.ts#L63
Missing JSDoc comment
|
lint_js / lint_js:
src/utils/schemas.ts#L77
Missing JSDoc comment
|
lint_js / lint_js:
src/utils/type-specifier.ts#L8
Missing JSDoc comment
|
lint_markdown / lint_markdown
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint_markdown / lint_markdown:
docs/rules/prefer-immutable-types.md#L451
Parameter should have an immutability of at least "ReadonlyShallow" (actual: "Mutable")
|
test_js / Test - Node: 20 - TS: latest - OS: ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test_js / Test - Node: 18.18 - TS: latest - OS: ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test_js / Test - Node: latest - TS: latest - OS: ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|