@fimbul/mimir
Advanced tools
Comparing version 0.10.0-dev.20180515 to 0.10.0-dev.20180517
{ | ||
"name": "@fimbul/mimir", | ||
"version": "0.10.0-dev.20180515", | ||
"version": "0.10.0-dev.20180517", | ||
"description": "Core rules of the Fimbullinter project", | ||
@@ -5,0 +5,0 @@ "main": "recommended.yaml", |
@@ -50,2 +50,3 @@ # Mímir | ||
`no-useless-spread` | Detects redundant array and object spread which can safely be removed. | There's no similar TSLint rule. | ||
`parameter-properties` | Enforces or disallows the use of parameter properties. This rule is **not** enabled in `wotan:recommended`. | TSlint only has `no-parameter-properties` to disallow all parameter properties and has no autofixer. | ||
`prefer-const` | Prefer `const` for variables that are never reassigned. Use option `{destructuring: "any"}` if you want to see failures for each identifier of a destructuring, even if not all of them can be constants. The default is `{destructuring: "all"}`. | TSLint's `prefer-const` rule gives some false positives for merged declarations and variables used in before being declared which results in a compiler error after fixing. | ||
@@ -52,0 +53,0 @@ `prefer-dot-notation` | Prefer `obj.foo` over `obj['foo']` where possible. | Same as TSLint's `no-string-literal` rule, but more performant. |
@@ -10,3 +10,4 @@ "use strict"; | ||
for (const node of this.context.getFlatAst()) { | ||
if (tsutils_1.isElementAccessExpression(node) && node.argumentExpression !== undefined && | ||
if (tsutils_1.isElementAccessExpression(node) && | ||
node.argumentExpression !== undefined && | ||
tsutils_1.isTextualLiteral(node.argumentExpression) && tsutils_1.isValidPropertyAccess(node.argumentExpression.text)) { | ||
@@ -13,0 +14,0 @@ const property = ts.unescapeIdentifier(node.argumentExpression.text); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
333884
3555
76