typescript-strictly-typed
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -39,3 +39,2 @@ "use strict"; | ||
checkConfig(config); | ||
let configAdded = false; | ||
/* If there is an override, rules must be set inside it, or they won't be checked */ | ||
@@ -48,9 +47,6 @@ for (const override of (_b = config.overrides) !== null && _b !== void 0 ? _b : []) { | ||
addConfig(override); | ||
configAdded = true; | ||
} | ||
} | ||
/* Add rules at root level if there was no override */ | ||
if (!configAdded) { | ||
addConfig(config); | ||
} | ||
/* Add rules at root level */ | ||
addConfig(config); | ||
if (packageJSONConfig) { | ||
@@ -106,8 +102,4 @@ packageJSONConfig.eslintConfig = config; | ||
} | ||
if (!config.rules['@typescript-eslint/no-explicit-any']) { | ||
config.rules['@typescript-eslint/no-explicit-any'] = 'error'; | ||
} | ||
if (!config.rules['@typescript-eslint/explicit-function-return-type']) { | ||
config.rules['@typescript-eslint/explicit-function-return-type'] = 'error'; | ||
} | ||
config.rules['@typescript-eslint/no-explicit-any'] = 'error'; | ||
config.rules['@typescript-eslint/explicit-function-return-type'] = 'error'; | ||
} |
{ | ||
"name": "typescript-strictly-typed", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Enable configurations for strictly typed TypeScript, ESLint or TSLint, and optionally Angular.", | ||
@@ -5,0 +5,0 @@ "funding": { |
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
23133
428