typescript-strictly-typed
Advanced tools
Comparing version 3.13.2 to 3.14.0
@@ -52,5 +52,5 @@ import { dump, load } from "js-yaml"; | ||
switch (fileType) { | ||
case ".json": { | ||
case ".json": | ||
case ".jsonc": { | ||
config = { | ||
source: file, | ||
raw, | ||
@@ -65,4 +65,3 @@ json: parse(raw), | ||
config = { | ||
source: file, | ||
raw: JSON.stringify(json), | ||
raw: JSON.stringify(json) ?? "", | ||
json, | ||
@@ -77,4 +76,3 @@ }; | ||
config = { | ||
source: file, | ||
raw: JSON.stringify(json), | ||
raw: JSON.stringify(json) ?? "", | ||
json, | ||
@@ -107,2 +105,3 @@ }; | ||
case ".json": | ||
case ".jsonc": | ||
configStringified = config.raw; | ||
@@ -109,0 +108,0 @@ break; |
@@ -49,3 +49,2 @@ import {} from "jsonc-parser"; | ||
config = { | ||
source: JSON.stringify(packageJSONConfig.json.eslintConfig), | ||
raw: JSON.stringify(packageJSONConfig.json.eslintConfig), | ||
@@ -105,3 +104,3 @@ json: packageJSONConfig.json.eslintConfig, | ||
function addTSConfig(config, path, rules) { | ||
const typeCheckedEnabled = isTypeCheckedEnabled(config.source); | ||
const typeCheckedEnabled = isTypeCheckedEnabled(config.source ?? config.raw); | ||
config.raw = modifyJSON(config.raw, [...path, "rules", "eqeqeq"], "error"); | ||
@@ -108,0 +107,0 @@ config.raw = modifyJSON(config.raw, [...path, "rules", "prefer-arrow-callback"], "error"); |
import { enableAngularStrict } from "./angular-strict.js"; | ||
import { enableBiomeStrict } from "./biome-strict.js"; | ||
import { isGitStatusDirty } from "./check-git-status.js"; | ||
@@ -11,2 +12,3 @@ import { findConfig } from "./config-utils.js"; | ||
* - ESLint rules | ||
* - Biome rules | ||
* - Angular compiler (if `angular.json` is detected) | ||
@@ -27,2 +29,5 @@ * | ||
} | ||
if (await enableBiomeStrict(cwd)) { | ||
success.push("Biome"); | ||
} | ||
if (findConfig(cwd, ["angular.json", ".angular.json", "angular-cli.json", ".angular-cli.json"]) !== null | ||
@@ -29,0 +34,0 @@ && await enableAngularStrict(cwd)) { |
{ | ||
"name": "typescript-strictly-typed", | ||
"version": "3.13.2", | ||
"version": "3.14.0", | ||
"description": "Enable configurations for strictly typed TypeScript, ESLint, and optionally Angular.", | ||
@@ -20,3 +20,3 @@ "funding": { | ||
"build": "rimraf dist && tsc && copyfiles package.json LICENSE bin/cli.js dist && copyfiles -f src/README.md dist", | ||
"lint": "eslint src/**/*.ts", | ||
"lint": "eslint src/", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
@@ -49,2 +49,3 @@ "release:major": "VERSION=major npm run release", | ||
"@types/semver": "^7.5.8", | ||
"better-typescript-lib": "^2.7.0", | ||
"copyfiles": "^2.4.1", | ||
@@ -51,0 +52,0 @@ "eslint": "^9.4.0", |
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
27481
13
612
9