@fimbul/mimir
Advanced tools
Comparing version 0.24.0-dev.20210121 to 0.24.0-dev.20210122
{ | ||
"name": "@fimbul/mimir", | ||
"version": "0.24.0-dev.20210121", | ||
"version": "0.24.0-dev.20210122", | ||
"description": "Core rules of the Fimbullinter project", | ||
@@ -5,0 +5,0 @@ "main": "recommended.yaml", |
@@ -41,3 +41,4 @@ # Mímir | ||
[`no-fallthrough`](docs/no-fallthrough.md) | :mag_right: Prevents unintentional fallthough in `switch` statements from one case to another. | Allows more comment variants such as `fallthrough` or `fall through`. | ||
[`no-invalid-assertion`](docs/no-invalid-assertion.md) | :mag: Disallows asserting a literal type to a different literal type of the same widened type, e.g. `'foo' as 'bar'`.| TSLint has no similar rule. | ||
[`no-implicit-tostring`](docs/no-implicit-tostring.md) | :mag: :nut_and_bolt: Disallows implicit conversion of non-string values to string. | | ||
[`no-invalid-assertion`](docs/no-invalid-assertion.md) | :mag: Disallows asserting a literal type to a different literal type of the same widened type, e.g. `'foo' as 'bar'`. | TSLint has no similar rule. | ||
[`no-misused-generics`](docs/no-misused-generics.md) | Detects generic type parameters that cannot be inferred from the functions parameters. It also detects generics that don't enforce any constraint between types. | There's no similar TSLint rule. | ||
@@ -44,0 +45,0 @@ [`no-nan-compare`](docs/no-nan-compare.md) | Disallows comparing with `NaN`, use `isNaN(number)` or `Number.isNaN(number)` instead. | Performance! |
@@ -49,3 +49,3 @@ "use strict"; | ||
if (literals.boolean !== undefined) | ||
result.push(`${literals.boolean}`); | ||
result.push(literals.boolean ? 'true' : 'false'); | ||
return result.join(' | '); | ||
@@ -52,0 +52,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
452025
168
5352
93