@fimbul/ymir
Advanced tools
Comparing version 0.9.0 to 0.11.0
{ | ||
"name": "@fimbul/ymir", | ||
"version": "0.9.0", | ||
"version": "0.11.0", | ||
"description": "Core library for the Fimbullinter project", | ||
@@ -31,5 +31,5 @@ "publishConfig": { | ||
"peerDependencies": { | ||
"typescript": "*", | ||
"typescript": ">= 2.7.1 || >= 3.0.0-dev || >= 3.0.0-insiders || 3.0.0-rc || >= 3.1.0-dev", | ||
"tsutils": ">2.19.0" | ||
} | ||
} |
@@ -75,5 +75,6 @@ import 'reflect-metadata'; | ||
export declare function isTypescriptFile(sourceFile: ts.SourceFile): boolean; | ||
export declare function typescriptOnly<T extends typeof AbstractRule>(target: T): void; | ||
export declare function excludeDeclarationFiles<T extends typeof AbstractRule>(target: T): void; | ||
export declare function requireLibraryFile(fileName: string): <T extends typeof TypedRule>(target: T) => void; | ||
export declare function typescriptOnly(target: typeof AbstractRule): void; | ||
export declare function excludeDeclarationFiles(target: typeof AbstractRule): void; | ||
export declare function requireLibraryFile(fileName: string): (target: typeof TypedRule) => void; | ||
export declare function requiresStrictNullChecks(target: typeof TypedRule): void; | ||
export declare type RuleSupportsPredicate = (sourceFile: ts.SourceFile, context: RuleSupportsContext) => boolean; | ||
@@ -179,3 +180,3 @@ export declare abstract class AbstractRule { | ||
Json = "json", | ||
Json5 = "json5", | ||
Json5 = "json5" | ||
} | ||
@@ -227,3 +228,3 @@ export interface ProcessorConstructor { | ||
Processor = "processor", | ||
Formatter = "formatter", | ||
Formatter = "formatter" | ||
} | ||
@@ -230,0 +231,0 @@ export interface FileSystem { |
@@ -71,2 +71,9 @@ "use strict"; | ||
} | ||
function requiresStrictNullChecks(target) { | ||
target.supports = combinePredicates(target.supports, (_, context) => isStrictNullChecksEnabled(context.program.getCompilerOptions())); | ||
} | ||
exports.requiresStrictNullChecks = requiresStrictNullChecks; | ||
function isStrictNullChecksEnabled(options) { | ||
return options.strict ? options.strictNullChecks !== false : options.strictNullChecks === true; | ||
} | ||
class AbstractRule { | ||
@@ -73,0 +80,0 @@ constructor(context) { |
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
34340
487