@fimbul/mimir
Advanced tools
Comparing version 0.22.0-dev.20200101 to 0.22.0
{ | ||
"name": "@fimbul/mimir", | ||
"version": "0.22.0-dev.20200101", | ||
"version": "0.22.0", | ||
"description": "Core rules of the Fimbullinter project", | ||
@@ -29,11 +29,11 @@ "main": "recommended.yaml", | ||
"dependencies": { | ||
"@fimbul/ymir": "0.21.0", | ||
"chalk": "^3.0.0", | ||
"@fimbul/ymir": "^0.22.0", | ||
"chalk": "^4.0.0", | ||
"debug": "^4.0.0", | ||
"tslib": "^1.8.1", | ||
"tslib": "^2.0.0", | ||
"tsutils": "^3.16.0" | ||
}, | ||
"peerDependencies": { | ||
"typescript": ">= 3.3.0 || >= 3.6.0-dev || >= 3.7.0-dev" | ||
"typescript": ">= 4.0.0 || >= 4.2.0-dev" | ||
} | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Formatter = void 0; | ||
const ymir_1 = require("@fimbul/ymir"); | ||
@@ -4,0 +5,0 @@ class Formatter extends ymir_1.AbstractFormatter { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Formatter = void 0; | ||
const ymir_1 = require("@fimbul/ymir"); | ||
@@ -4,0 +5,0 @@ const chalk = require("chalk"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ts = require("typescript"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -63,3 +64,3 @@ const ymir_1 = require("@fimbul/ymir"); | ||
known: true, | ||
assignedNames: names.length !== 1 ? [] : names, | ||
assignedNames: names.length !== 1 ? [] : names, // if the computed name is a union, it's not sure which will be assigned | ||
}; | ||
@@ -66,0 +67,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -24,4 +25,2 @@ const ymir_1 = require("@fimbul/ymir"); | ||
const flags = getModifierFlagsOfSymbol(symbol); | ||
if (hasConflictingAccessModifiers(flags, symbol)) | ||
return this.addFindingAtNode(errorNode, `Property '${name}' has conflicting declarations and is inaccessible in type '${this.checker.typeToString(lhsType)}'.`); | ||
if (lhs !== undefined && lhs.kind === ts.SyntaxKind.ThisKeyword && | ||
@@ -121,9 +120,2 @@ flags & ts.ModifierFlags.Abstract && hasNonMethodDeclaration(symbol)) { | ||
} | ||
function hasConflictingAccessModifiers(flags, symbol) { | ||
return flags & ts.ModifierFlags.Private | ||
? symbol.declarations.length !== 1 | ||
: (flags & ts.ModifierFlags.Protected) !== 0 && | ||
symbol.declarations.length !== 1 && | ||
!symbol.declarations.every((d) => tsutils_1.hasModifier(d.modifiers, ts.SyntaxKind.ProtectedKeyword)); | ||
} | ||
function hasBase(type, needle, check) { | ||
@@ -130,0 +122,0 @@ return (function recur(t) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -121,3 +122,3 @@ const ymir_1 = require("@fimbul/ymir"); | ||
return; // nothing to do here if every type parameter as a default | ||
const typeArguments = this.checker.signatureToSignatureDeclaration(signature, ts.SyntaxKind.CallExpression, undefined, ts.NodeBuilderFlags.WriteTypeArgumentsOfSignature | ts.NodeBuilderFlags.IgnoreErrors).typeArguments; | ||
const typeArguments = this.checker.signatureToSignatureDeclaration(signature, ts.SyntaxKind.CallSignature, undefined, ts.NodeBuilderFlags.WriteTypeArgumentsOfSignature | ts.NodeBuilderFlags.IgnoreErrors).typeArguments; | ||
for (let i = 0; i < typeParameters.length; ++i) | ||
@@ -124,0 +125,0 @@ if (!typeParameters[i].hasDefault) |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const ymir_1 = require("@fimbul/ymir"); | ||
@@ -4,0 +5,0 @@ const tsutils_1 = require("tsutils"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ts = require("typescript"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ts = require("typescript"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = exports.Mode = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ts = require("typescript"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const ymir_1 = require("@fimbul/ymir"); | ||
@@ -4,0 +5,0 @@ const ts = require("typescript"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const ymir_1 = require("@fimbul/ymir"); | ||
@@ -4,0 +5,0 @@ class Rule extends ymir_1.AbstractRule { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ const ymir_1 = require("@fimbul/ymir"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Rule = void 0; | ||
const ymir_1 = require("@fimbul/ymir"); | ||
@@ -4,0 +5,0 @@ const ts = require("typescript"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.formatPseudoBigInt = exports.hasDirectivePrologue = exports.propertiesOfType = exports.elementAccessSymbols = exports.typesAreEqual = exports.objectLiteralNeedsParens = exports.expressionNeedsParensWhenReplacingNode = exports.childStatements = exports.isVariableReassignment = exports.isAsyncFunction = exports.tryStatements = exports.switchStatements = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const tsutils_1 = require("tsutils"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
415831
4924
+ Added@fimbul/ymir@0.22.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@fimbul/ymir@0.21.0(transitive)
- Removedchalk@3.0.0(transitive)
Updated@fimbul/ymir@^0.22.0
Updatedchalk@^4.0.0
Updatedtslib@^2.0.0