typescript-strictly-typed
Advanced tools
Comparing version 3.13.0 to 3.13.1
@@ -28,2 +28,11 @@ import { dump, load } from "js-yaml"; | ||
} | ||
export function getSource(cwd, file) { | ||
try { | ||
const filePath = join(cwd, file); | ||
return readFileSync(filePath, { encoding: "utf8" }); | ||
} | ||
catch { | ||
return ""; | ||
} | ||
} | ||
/** | ||
@@ -30,0 +39,0 @@ * Get the config of a tool |
import {} from "jsonc-parser"; | ||
import { dependencyExists, findConfig, getConfig, modifyJSON, saveConfig } from "./config-utils.js"; | ||
import { dependencyExists, findConfig, getConfig, getSource, modifyJSON, saveConfig } from "./config-utils.js"; | ||
import { logWarning } from "./log-utils.js"; | ||
@@ -38,3 +38,3 @@ /** | ||
config = { | ||
source: file, | ||
source: getSource(cwd, file), | ||
raw: JSON.stringify({ rules: {} }), | ||
@@ -50,3 +50,3 @@ json: { rules: {} }, | ||
config = { | ||
source: file, | ||
source: getSource(cwd, file), | ||
raw: JSON.stringify(packageJSONConfig.json.eslintConfig), | ||
@@ -53,0 +53,0 @@ json: packageJSONConfig.json.eslintConfig, |
{ | ||
"name": "typescript-strictly-typed", | ||
"version": "3.13.0", | ||
"version": "3.13.1", | ||
"description": "Enable configurations for strictly typed TypeScript, ESLint, 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
24933
529