From 0beb67b739604e0d67563bdcb1f8b3234ae6b3a4 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 16 May 2023 10:54:35 +0200 Subject: [PATCH] Refactor tsconfigs to improve build perf --- .gitignore | 75 +------------------ package.json | 7 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-code-block-style/package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-definition-case/package.json | 4 +- .../remark-lint-definition-case/tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-emphasis-marker/package.json | 4 +- .../remark-lint-emphasis-marker/tsconfig.json | 2 +- .../remark-lint-fenced-code-flag/package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-file-extension/package.json | 4 +- .../remark-lint-file-extension/tsconfig.json | 2 +- .../remark-lint-final-definition/package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-final-newline/package.json | 4 +- .../remark-lint-final-newline/tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-heading-style/package.json | 4 +- .../remark-lint-heading-style/tsconfig.json | 2 +- .../remark-lint-linebreak-style/package.json | 4 +- .../remark-lint-linebreak-style/tsconfig.json | 2 +- .../remark-lint-link-title-style/package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-list-item-indent/package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-no-empty-url/package.json | 4 +- .../remark-lint-no-empty-url/tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- packages/remark-lint-no-html/package.json | 4 +- packages/remark-lint-no-html/tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-no-literal-urls/package.json | 4 +- .../remark-lint-no-literal-urls/tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-no-shell-dollars/package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- packages/remark-lint-no-tabs/package.json | 4 +- packages/remark-lint-no-tabs/tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- packages/remark-lint-rule-style/package.json | 4 +- packages/remark-lint-rule-style/tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../remark-lint-strong-marker/package.json | 4 +- .../remark-lint-strong-marker/tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- packages/remark-lint-table-pipes/package.json | 4 +- .../remark-lint-table-pipes/tsconfig.json | 2 +- .../package.json | 4 +- .../tsconfig.json | 2 +- packages/remark-lint/package.json | 4 +- packages/remark-lint/tsconfig.json | 3 +- .../package.json | 4 +- .../tsconfig.json | 16 +++- .../package.json | 4 +- .../tsconfig.json | 47 +++++++++++- .../package.json | 4 +- .../tsconfig.json | 18 ++++- packages/unified-lint-rule/index.d.ts | 32 -------- packages/unified-lint-rule/index.js | 14 ++++ packages/unified-lint-rule/lib/index.js | 20 +++-- packages/unified-lint-rule/package.json | 4 +- packages/unified-lint-rule/tsconfig.json | 3 +- script/build-presets.js | 2 + script/util/rule.js | 2 + test.js | 4 +- tsconfig.json | 21 +++--- 153 files changed, 268 insertions(+), 418 deletions(-) delete mode 100644 packages/unified-lint-rule/index.d.ts diff --git a/.gitignore b/.gitignore index f42d6fe9..1ad46cd9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,80 +1,7 @@ coverage/ node_modules/ .DS_Store -/packages/remark-lint/*.d.ts -/packages/remark-lint-blockquote-indentation/*.d.ts -/packages/remark-lint-checkbox-character-style/*.d.ts -/packages/remark-lint-checkbox-content-indent/*.d.ts -/packages/remark-lint-code-block-style/*.d.ts -/packages/remark-lint-definition-case/*.d.ts -/packages/remark-lint-definition-spacing/*.d.ts -/packages/remark-lint-emphasis-marker/*.d.ts -/packages/remark-lint-fenced-code-flag/*.d.ts -/packages/remark-lint-fenced-code-marker/*.d.ts -/packages/remark-lint-file-extension/*.d.ts -/packages/remark-lint-final-definition/*.d.ts -/packages/remark-lint-final-newline/*.d.ts -/packages/remark-lint-first-heading-level/*.d.ts -/packages/remark-lint-hard-break-spaces/*.d.ts -/packages/remark-lint-heading-increment/*.d.ts -/packages/remark-lint-heading-style/*.d.ts -/packages/remark-lint-linebreak-style/*.d.ts -/packages/remark-lint-link-title-style/*.d.ts -/packages/remark-lint-list-item-bullet-indent/*.d.ts -/packages/remark-lint-list-item-content-indent/*.d.ts -/packages/remark-lint-list-item-indent/*.d.ts -/packages/remark-lint-list-item-spacing/*.d.ts -/packages/remark-lint-maximum-heading-length/*.d.ts -/packages/remark-lint-maximum-line-length/*.d.ts -/packages/remark-lint-no-auto-link-without-protocol/*.d.ts -/packages/remark-lint-no-blockquote-without-marker/*.d.ts -/packages/remark-lint-no-consecutive-blank-lines/*.d.ts -/packages/remark-lint-no-duplicate-defined-urls/*.d.ts -/packages/remark-lint-no-duplicate-definitions/*.d.ts -/packages/remark-lint-no-duplicate-headings/*.d.ts -/packages/remark-lint-no-duplicate-headings-in-section/*.d.ts -/packages/remark-lint-no-emphasis-as-heading/*.d.ts -/packages/remark-lint-no-empty-url/*.d.ts -/packages/remark-lint-no-file-name-articles/*.d.ts -/packages/remark-lint-no-file-name-consecutive-dashes/*.d.ts -/packages/remark-lint-no-file-name-irregular-characters/*.d.ts -/packages/remark-lint-no-file-name-mixed-case/*.d.ts -/packages/remark-lint-no-file-name-outer-dashes/*.d.ts -/packages/remark-lint-no-heading-content-indent/*.d.ts -/packages/remark-lint-no-heading-indent/*.d.ts -/packages/remark-lint-no-heading-like-paragraph/*.d.ts -/packages/remark-lint-no-heading-punctuation/*.d.ts -/packages/remark-lint-no-html/*.d.ts -/packages/remark-lint-no-inline-padding/*.d.ts -/packages/remark-lint-no-literal-urls/*.d.ts -/packages/remark-lint-no-missing-blank-lines/*.d.ts -/packages/remark-lint-no-multiple-toplevel-headings/*.d.ts -/packages/remark-lint-no-paragraph-content-indent/*.d.ts -/packages/remark-lint-no-reference-like-url/*.d.ts -/packages/remark-lint-no-shell-dollars/*.d.ts -/packages/remark-lint-no-shortcut-reference-image/*.d.ts -/packages/remark-lint-no-shortcut-reference-link/*.d.ts -/packages/remark-lint-no-table-indentation/*.d.ts -/packages/remark-lint-no-tabs/*.d.ts -/packages/remark-lint-no-undefined-references/*.d.ts -/packages/remark-lint-no-unneeded-full-reference-image/*.d.ts -/packages/remark-lint-no-unneeded-full-reference-link/*.d.ts -/packages/remark-lint-no-unused-definitions/*.d.ts -/packages/remark-lint-ordered-list-marker-style/*.d.ts -/packages/remark-lint-ordered-list-marker-value/*.d.ts -/packages/remark-lint-rule-style/*.d.ts -/packages/remark-lint-strikethrough-marker/*.d.ts -/packages/remark-lint-strong-marker/*.d.ts -/packages/remark-lint-table-cell-padding/*.d.ts -/packages/remark-lint-table-pipe-alignment/*.d.ts -/packages/remark-lint-table-pipes/*.d.ts -/packages/remark-lint-unordered-list-marker-style/*.d.ts -/packages/remark-preset-lint-consistent/*.d.ts -/packages/remark-preset-lint-markdown-style-guide/*.d.ts -/packages/remark-preset-lint-recommended/*.d.ts -/packages/unified-lint-rule/lib/*.d.ts -/script/**/*.d.ts -/*.d.ts +*.d.ts *.log package-lock.json yarn.lock diff --git a/package.json b/package.json index 02b37d71..57fa9324 100644 --- a/package.json +++ b/package.json @@ -127,7 +127,6 @@ "remark-github": "^11.0.0", "remark-toc": "^8.0.0", "remark-validate-links": "^12.0.0", - "rimraf": "^3.0.0", "strip-indent": "^4.0.0", "tape": "^5.0.0", "to-vfile": "^7.0.0", @@ -139,10 +138,10 @@ "xo": "^0.54.0" }, "scripts": { + "prepack": "npm run build && npm run format", "build-packages": "node script/build-presets && node script/build-rules", - "build-workspace": "npm run build --workspaces", - "build-monorepo": "rimraf \"test.d.ts\" \"script/**/*.d.ts\" && tsc && type-coverage", - "build": "npm run build-packages && npm run build-workspace && npm run build-monorepo", + "build-monorepo": "tsc --build --clean && tsc --build && type-coverage", + "build": "npm run build-packages && npm run build-monorepo", "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", "test-api": "node --conditions development test.js", "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api", diff --git a/packages/remark-lint-blockquote-indentation/package.json b/packages/remark-lint-blockquote-indentation/package.json index f3f80f83..ed366690 100644 --- a/packages/remark-lint-blockquote-indentation/package.json +++ b/packages/remark-lint-blockquote-indentation/package.json @@ -43,9 +43,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-blockquote-indentation/tsconfig.json b/packages/remark-lint-blockquote-indentation/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-blockquote-indentation/tsconfig.json +++ b/packages/remark-lint-blockquote-indentation/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-checkbox-character-style/package.json b/packages/remark-lint-checkbox-character-style/package.json index 63d6276c..6ec3537f 100644 --- a/packages/remark-lint-checkbox-character-style/package.json +++ b/packages/remark-lint-checkbox-character-style/package.json @@ -42,9 +42,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-checkbox-character-style/tsconfig.json b/packages/remark-lint-checkbox-character-style/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-checkbox-character-style/tsconfig.json +++ b/packages/remark-lint-checkbox-character-style/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-checkbox-content-indent/package.json b/packages/remark-lint-checkbox-content-indent/package.json index 42e65d04..66bd2743 100644 --- a/packages/remark-lint-checkbox-content-indent/package.json +++ b/packages/remark-lint-checkbox-content-indent/package.json @@ -43,9 +43,7 @@ "unist-util-visit": "^4.0.0", "vfile-location": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-checkbox-content-indent/tsconfig.json b/packages/remark-lint-checkbox-content-indent/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-checkbox-content-indent/tsconfig.json +++ b/packages/remark-lint-checkbox-content-indent/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-code-block-style/package.json b/packages/remark-lint-code-block-style/package.json index 6a1afc15..180bc03b 100644 --- a/packages/remark-lint-code-block-style/package.json +++ b/packages/remark-lint-code-block-style/package.json @@ -41,9 +41,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-code-block-style/tsconfig.json b/packages/remark-lint-code-block-style/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-code-block-style/tsconfig.json +++ b/packages/remark-lint-code-block-style/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-definition-case/package.json b/packages/remark-lint-definition-case/package.json index 4b945305..e97c959c 100644 --- a/packages/remark-lint-definition-case/package.json +++ b/packages/remark-lint-definition-case/package.json @@ -40,9 +40,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-definition-case/tsconfig.json b/packages/remark-lint-definition-case/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-definition-case/tsconfig.json +++ b/packages/remark-lint-definition-case/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-definition-spacing/package.json b/packages/remark-lint-definition-spacing/package.json index d01d17f1..1a2217a8 100644 --- a/packages/remark-lint-definition-spacing/package.json +++ b/packages/remark-lint-definition-spacing/package.json @@ -40,9 +40,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-definition-spacing/tsconfig.json b/packages/remark-lint-definition-spacing/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-definition-spacing/tsconfig.json +++ b/packages/remark-lint-definition-spacing/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-emphasis-marker/package.json b/packages/remark-lint-emphasis-marker/package.json index 74e257fb..39cf6f46 100644 --- a/packages/remark-lint-emphasis-marker/package.json +++ b/packages/remark-lint-emphasis-marker/package.json @@ -40,9 +40,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-emphasis-marker/tsconfig.json b/packages/remark-lint-emphasis-marker/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-emphasis-marker/tsconfig.json +++ b/packages/remark-lint-emphasis-marker/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-fenced-code-flag/package.json b/packages/remark-lint-fenced-code-flag/package.json index c6073e74..f70123b9 100644 --- a/packages/remark-lint-fenced-code-flag/package.json +++ b/packages/remark-lint-fenced-code-flag/package.json @@ -43,9 +43,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-fenced-code-flag/tsconfig.json b/packages/remark-lint-fenced-code-flag/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-fenced-code-flag/tsconfig.json +++ b/packages/remark-lint-fenced-code-flag/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-fenced-code-marker/package.json b/packages/remark-lint-fenced-code-marker/package.json index 358b5fb4..e4818b8d 100644 --- a/packages/remark-lint-fenced-code-marker/package.json +++ b/packages/remark-lint-fenced-code-marker/package.json @@ -41,9 +41,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-fenced-code-marker/tsconfig.json b/packages/remark-lint-fenced-code-marker/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-fenced-code-marker/tsconfig.json +++ b/packages/remark-lint-fenced-code-marker/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-file-extension/package.json b/packages/remark-lint-file-extension/package.json index 7db4365c..5809e4cf 100644 --- a/packages/remark-lint-file-extension/package.json +++ b/packages/remark-lint-file-extension/package.json @@ -39,9 +39,7 @@ "unified": "^10.0.0", "unified-lint-rule": "^2.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-file-extension/tsconfig.json b/packages/remark-lint-file-extension/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-file-extension/tsconfig.json +++ b/packages/remark-lint-file-extension/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-final-definition/package.json b/packages/remark-lint-final-definition/package.json index 904ccdd9..29e24536 100644 --- a/packages/remark-lint-final-definition/package.json +++ b/packages/remark-lint-final-definition/package.json @@ -42,9 +42,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-final-definition/tsconfig.json b/packages/remark-lint-final-definition/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-final-definition/tsconfig.json +++ b/packages/remark-lint-final-definition/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-final-newline/package.json b/packages/remark-lint-final-newline/package.json index c38f1b68..b871ac8c 100644 --- a/packages/remark-lint-final-newline/package.json +++ b/packages/remark-lint-final-newline/package.json @@ -39,9 +39,7 @@ "unified": "^10.0.0", "unified-lint-rule": "^2.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-final-newline/tsconfig.json b/packages/remark-lint-final-newline/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-final-newline/tsconfig.json +++ b/packages/remark-lint-final-newline/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-first-heading-level/package.json b/packages/remark-lint-first-heading-level/package.json index 75cbc332..0de81959 100644 --- a/packages/remark-lint-first-heading-level/package.json +++ b/packages/remark-lint-first-heading-level/package.json @@ -42,9 +42,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-first-heading-level/tsconfig.json b/packages/remark-lint-first-heading-level/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-first-heading-level/tsconfig.json +++ b/packages/remark-lint-first-heading-level/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-hard-break-spaces/package.json b/packages/remark-lint-hard-break-spaces/package.json index 1bc1bb66..c5be3d87 100644 --- a/packages/remark-lint-hard-break-spaces/package.json +++ b/packages/remark-lint-hard-break-spaces/package.json @@ -43,9 +43,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-hard-break-spaces/tsconfig.json b/packages/remark-lint-hard-break-spaces/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-hard-break-spaces/tsconfig.json +++ b/packages/remark-lint-hard-break-spaces/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-heading-increment/package.json b/packages/remark-lint-heading-increment/package.json index 181e42c8..7644c47d 100644 --- a/packages/remark-lint-heading-increment/package.json +++ b/packages/remark-lint-heading-increment/package.json @@ -41,9 +41,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-heading-increment/tsconfig.json b/packages/remark-lint-heading-increment/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-heading-increment/tsconfig.json +++ b/packages/remark-lint-heading-increment/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-heading-style/package.json b/packages/remark-lint-heading-style/package.json index c5a0e521..1e2e9d96 100644 --- a/packages/remark-lint-heading-style/package.json +++ b/packages/remark-lint-heading-style/package.json @@ -43,9 +43,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-heading-style/tsconfig.json b/packages/remark-lint-heading-style/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-heading-style/tsconfig.json +++ b/packages/remark-lint-heading-style/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-linebreak-style/package.json b/packages/remark-lint-linebreak-style/package.json index dd186e9c..3d964dff 100644 --- a/packages/remark-lint-linebreak-style/package.json +++ b/packages/remark-lint-linebreak-style/package.json @@ -44,9 +44,7 @@ "unified-lint-rule": "^2.0.0", "vfile-location": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-linebreak-style/tsconfig.json b/packages/remark-lint-linebreak-style/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-linebreak-style/tsconfig.json +++ b/packages/remark-lint-linebreak-style/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-link-title-style/package.json b/packages/remark-lint-link-title-style/package.json index b1affd33..ed47684b 100644 --- a/packages/remark-lint-link-title-style/package.json +++ b/packages/remark-lint-link-title-style/package.json @@ -43,9 +43,7 @@ "unist-util-visit": "^4.0.0", "vfile-location": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-link-title-style/tsconfig.json b/packages/remark-lint-link-title-style/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-link-title-style/tsconfig.json +++ b/packages/remark-lint-link-title-style/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-list-item-bullet-indent/package.json b/packages/remark-lint-list-item-bullet-indent/package.json index e2aa04a9..5ea1494b 100644 --- a/packages/remark-lint-list-item-bullet-indent/package.json +++ b/packages/remark-lint-list-item-bullet-indent/package.json @@ -41,9 +41,7 @@ "unified-lint-rule": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-list-item-bullet-indent/tsconfig.json b/packages/remark-lint-list-item-bullet-indent/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-list-item-bullet-indent/tsconfig.json +++ b/packages/remark-lint-list-item-bullet-indent/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-list-item-content-indent/package.json b/packages/remark-lint-list-item-content-indent/package.json index 43f4d4a5..8d443b46 100644 --- a/packages/remark-lint-list-item-content-indent/package.json +++ b/packages/remark-lint-list-item-content-indent/package.json @@ -43,9 +43,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-list-item-content-indent/tsconfig.json b/packages/remark-lint-list-item-content-indent/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-list-item-content-indent/tsconfig.json +++ b/packages/remark-lint-list-item-content-indent/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-list-item-indent/package.json b/packages/remark-lint-list-item-indent/package.json index a820a31c..1d62f3bb 100644 --- a/packages/remark-lint-list-item-indent/package.json +++ b/packages/remark-lint-list-item-indent/package.json @@ -43,9 +43,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-list-item-indent/tsconfig.json b/packages/remark-lint-list-item-indent/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-list-item-indent/tsconfig.json +++ b/packages/remark-lint-list-item-indent/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-list-item-spacing/package.json b/packages/remark-lint-list-item-spacing/package.json index 87602ae4..0a778e46 100644 --- a/packages/remark-lint-list-item-spacing/package.json +++ b/packages/remark-lint-list-item-spacing/package.json @@ -43,9 +43,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-list-item-spacing/tsconfig.json b/packages/remark-lint-list-item-spacing/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-list-item-spacing/tsconfig.json +++ b/packages/remark-lint-list-item-spacing/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-maximum-heading-length/package.json b/packages/remark-lint-maximum-heading-length/package.json index 5b4f4694..77d16a89 100644 --- a/packages/remark-lint-maximum-heading-length/package.json +++ b/packages/remark-lint-maximum-heading-length/package.json @@ -41,9 +41,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-maximum-heading-length/tsconfig.json b/packages/remark-lint-maximum-heading-length/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-maximum-heading-length/tsconfig.json +++ b/packages/remark-lint-maximum-heading-length/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-maximum-line-length/package.json b/packages/remark-lint-maximum-line-length/package.json index b9269749..66a53ebf 100644 --- a/packages/remark-lint-maximum-line-length/package.json +++ b/packages/remark-lint-maximum-line-length/package.json @@ -41,9 +41,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-maximum-line-length/tsconfig.json b/packages/remark-lint-maximum-line-length/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-maximum-line-length/tsconfig.json +++ b/packages/remark-lint-maximum-line-length/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-auto-link-without-protocol/package.json b/packages/remark-lint-no-auto-link-without-protocol/package.json index b45e6e96..c4e8f460 100644 --- a/packages/remark-lint-no-auto-link-without-protocol/package.json +++ b/packages/remark-lint-no-auto-link-without-protocol/package.json @@ -43,9 +43,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-auto-link-without-protocol/tsconfig.json b/packages/remark-lint-no-auto-link-without-protocol/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-auto-link-without-protocol/tsconfig.json +++ b/packages/remark-lint-no-auto-link-without-protocol/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-blockquote-without-marker/package.json b/packages/remark-lint-no-blockquote-without-marker/package.json index fcf7f5df..ca421727 100644 --- a/packages/remark-lint-no-blockquote-without-marker/package.json +++ b/packages/remark-lint-no-blockquote-without-marker/package.json @@ -43,9 +43,7 @@ "unist-util-visit": "^4.0.0", "vfile-location": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-blockquote-without-marker/tsconfig.json b/packages/remark-lint-no-blockquote-without-marker/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-blockquote-without-marker/tsconfig.json +++ b/packages/remark-lint-no-blockquote-without-marker/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-consecutive-blank-lines/package.json b/packages/remark-lint-no-consecutive-blank-lines/package.json index 24e1a165..c27bf915 100644 --- a/packages/remark-lint-no-consecutive-blank-lines/package.json +++ b/packages/remark-lint-no-consecutive-blank-lines/package.json @@ -43,9 +43,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-consecutive-blank-lines/tsconfig.json b/packages/remark-lint-no-consecutive-blank-lines/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-consecutive-blank-lines/tsconfig.json +++ b/packages/remark-lint-no-consecutive-blank-lines/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-duplicate-defined-urls/package.json b/packages/remark-lint-no-duplicate-defined-urls/package.json index 2f912a24..f741a8a7 100644 --- a/packages/remark-lint-no-duplicate-defined-urls/package.json +++ b/packages/remark-lint-no-duplicate-defined-urls/package.json @@ -43,9 +43,7 @@ "unist-util-stringify-position": "^3.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-duplicate-defined-urls/tsconfig.json b/packages/remark-lint-no-duplicate-defined-urls/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-duplicate-defined-urls/tsconfig.json +++ b/packages/remark-lint-no-duplicate-defined-urls/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-duplicate-definitions/package.json b/packages/remark-lint-no-duplicate-definitions/package.json index b09ebe13..c930fd94 100644 --- a/packages/remark-lint-no-duplicate-definitions/package.json +++ b/packages/remark-lint-no-duplicate-definitions/package.json @@ -42,9 +42,7 @@ "unist-util-stringify-position": "^3.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-duplicate-definitions/tsconfig.json b/packages/remark-lint-no-duplicate-definitions/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-duplicate-definitions/tsconfig.json +++ b/packages/remark-lint-no-duplicate-definitions/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-duplicate-headings-in-section/package.json b/packages/remark-lint-no-duplicate-headings-in-section/package.json index 09d7e3b7..3aacd225 100644 --- a/packages/remark-lint-no-duplicate-headings-in-section/package.json +++ b/packages/remark-lint-no-duplicate-headings-in-section/package.json @@ -44,9 +44,7 @@ "unist-util-stringify-position": "^3.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-duplicate-headings-in-section/tsconfig.json b/packages/remark-lint-no-duplicate-headings-in-section/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-duplicate-headings-in-section/tsconfig.json +++ b/packages/remark-lint-no-duplicate-headings-in-section/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-duplicate-headings/package.json b/packages/remark-lint-no-duplicate-headings/package.json index f921e08a..6155e8a2 100644 --- a/packages/remark-lint-no-duplicate-headings/package.json +++ b/packages/remark-lint-no-duplicate-headings/package.json @@ -43,9 +43,7 @@ "unist-util-stringify-position": "^3.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-duplicate-headings/tsconfig.json b/packages/remark-lint-no-duplicate-headings/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-duplicate-headings/tsconfig.json +++ b/packages/remark-lint-no-duplicate-headings/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-emphasis-as-heading/package.json b/packages/remark-lint-no-emphasis-as-heading/package.json index aef7ec5b..08ba9da5 100644 --- a/packages/remark-lint-no-emphasis-as-heading/package.json +++ b/packages/remark-lint-no-emphasis-as-heading/package.json @@ -40,9 +40,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-emphasis-as-heading/tsconfig.json b/packages/remark-lint-no-emphasis-as-heading/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-emphasis-as-heading/tsconfig.json +++ b/packages/remark-lint-no-emphasis-as-heading/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-empty-url/package.json b/packages/remark-lint-no-empty-url/package.json index 7c96020a..10216cc6 100644 --- a/packages/remark-lint-no-empty-url/package.json +++ b/packages/remark-lint-no-empty-url/package.json @@ -42,9 +42,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-empty-url/tsconfig.json b/packages/remark-lint-no-empty-url/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-empty-url/tsconfig.json +++ b/packages/remark-lint-no-empty-url/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-file-name-articles/package.json b/packages/remark-lint-no-file-name-articles/package.json index 455d4241..21353267 100644 --- a/packages/remark-lint-no-file-name-articles/package.json +++ b/packages/remark-lint-no-file-name-articles/package.json @@ -40,9 +40,7 @@ "unified": "^10.0.0", "unified-lint-rule": "^2.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-file-name-articles/tsconfig.json b/packages/remark-lint-no-file-name-articles/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-file-name-articles/tsconfig.json +++ b/packages/remark-lint-no-file-name-articles/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-file-name-consecutive-dashes/package.json b/packages/remark-lint-no-file-name-consecutive-dashes/package.json index 3299596c..d13027b4 100644 --- a/packages/remark-lint-no-file-name-consecutive-dashes/package.json +++ b/packages/remark-lint-no-file-name-consecutive-dashes/package.json @@ -41,9 +41,7 @@ "unified": "^10.0.0", "unified-lint-rule": "^2.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-file-name-consecutive-dashes/tsconfig.json b/packages/remark-lint-no-file-name-consecutive-dashes/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-file-name-consecutive-dashes/tsconfig.json +++ b/packages/remark-lint-no-file-name-consecutive-dashes/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-file-name-irregular-characters/package.json b/packages/remark-lint-no-file-name-irregular-characters/package.json index 48fff039..255d7965 100644 --- a/packages/remark-lint-no-file-name-irregular-characters/package.json +++ b/packages/remark-lint-no-file-name-irregular-characters/package.json @@ -40,9 +40,7 @@ "unified": "^10.0.0", "unified-lint-rule": "^2.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-file-name-irregular-characters/tsconfig.json b/packages/remark-lint-no-file-name-irregular-characters/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-file-name-irregular-characters/tsconfig.json +++ b/packages/remark-lint-no-file-name-irregular-characters/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-file-name-mixed-case/package.json b/packages/remark-lint-no-file-name-mixed-case/package.json index 97986151..2a2b42be 100644 --- a/packages/remark-lint-no-file-name-mixed-case/package.json +++ b/packages/remark-lint-no-file-name-mixed-case/package.json @@ -39,9 +39,7 @@ "unified": "^10.0.0", "unified-lint-rule": "^2.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-file-name-mixed-case/tsconfig.json b/packages/remark-lint-no-file-name-mixed-case/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-file-name-mixed-case/tsconfig.json +++ b/packages/remark-lint-no-file-name-mixed-case/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-file-name-outer-dashes/package.json b/packages/remark-lint-no-file-name-outer-dashes/package.json index 9b6a46a6..cfa82de0 100644 --- a/packages/remark-lint-no-file-name-outer-dashes/package.json +++ b/packages/remark-lint-no-file-name-outer-dashes/package.json @@ -40,9 +40,7 @@ "unified": "^10.0.0", "unified-lint-rule": "^2.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-file-name-outer-dashes/tsconfig.json b/packages/remark-lint-no-file-name-outer-dashes/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-file-name-outer-dashes/tsconfig.json +++ b/packages/remark-lint-no-file-name-outer-dashes/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-heading-content-indent/package.json b/packages/remark-lint-no-heading-content-indent/package.json index 59270cdf..70843bc8 100644 --- a/packages/remark-lint-no-heading-content-indent/package.json +++ b/packages/remark-lint-no-heading-content-indent/package.json @@ -44,9 +44,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-heading-content-indent/tsconfig.json b/packages/remark-lint-no-heading-content-indent/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-heading-content-indent/tsconfig.json +++ b/packages/remark-lint-no-heading-content-indent/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-heading-indent/package.json b/packages/remark-lint-no-heading-indent/package.json index 97f9b8dc..58eacfca 100644 --- a/packages/remark-lint-no-heading-indent/package.json +++ b/packages/remark-lint-no-heading-indent/package.json @@ -42,9 +42,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-heading-indent/tsconfig.json b/packages/remark-lint-no-heading-indent/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-heading-indent/tsconfig.json +++ b/packages/remark-lint-no-heading-indent/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-heading-like-paragraph/package.json b/packages/remark-lint-no-heading-like-paragraph/package.json index 6cc49093..e26bd45b 100644 --- a/packages/remark-lint-no-heading-like-paragraph/package.json +++ b/packages/remark-lint-no-heading-like-paragraph/package.json @@ -40,9 +40,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-heading-like-paragraph/tsconfig.json b/packages/remark-lint-no-heading-like-paragraph/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-heading-like-paragraph/tsconfig.json +++ b/packages/remark-lint-no-heading-like-paragraph/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-heading-punctuation/package.json b/packages/remark-lint-no-heading-punctuation/package.json index f256c951..e96849e8 100644 --- a/packages/remark-lint-no-heading-punctuation/package.json +++ b/packages/remark-lint-no-heading-punctuation/package.json @@ -41,9 +41,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-heading-punctuation/tsconfig.json b/packages/remark-lint-no-heading-punctuation/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-heading-punctuation/tsconfig.json +++ b/packages/remark-lint-no-heading-punctuation/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-html/package.json b/packages/remark-lint-no-html/package.json index e8afad4f..17e5177b 100644 --- a/packages/remark-lint-no-html/package.json +++ b/packages/remark-lint-no-html/package.json @@ -39,9 +39,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-html/tsconfig.json b/packages/remark-lint-no-html/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-html/tsconfig.json +++ b/packages/remark-lint-no-html/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-inline-padding/package.json b/packages/remark-lint-no-inline-padding/package.json index 49a8ce96..8a9a7676 100644 --- a/packages/remark-lint-no-inline-padding/package.json +++ b/packages/remark-lint-no-inline-padding/package.json @@ -41,9 +41,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-inline-padding/tsconfig.json b/packages/remark-lint-no-inline-padding/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-inline-padding/tsconfig.json +++ b/packages/remark-lint-no-inline-padding/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-literal-urls/package.json b/packages/remark-lint-no-literal-urls/package.json index ca242d4b..aa67b27d 100644 --- a/packages/remark-lint-no-literal-urls/package.json +++ b/packages/remark-lint-no-literal-urls/package.json @@ -42,9 +42,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-literal-urls/tsconfig.json b/packages/remark-lint-no-literal-urls/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-literal-urls/tsconfig.json +++ b/packages/remark-lint-no-literal-urls/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-missing-blank-lines/package.json b/packages/remark-lint-no-missing-blank-lines/package.json index d96c9423..e2e5b9f9 100644 --- a/packages/remark-lint-no-missing-blank-lines/package.json +++ b/packages/remark-lint-no-missing-blank-lines/package.json @@ -41,9 +41,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-missing-blank-lines/tsconfig.json b/packages/remark-lint-no-missing-blank-lines/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-missing-blank-lines/tsconfig.json +++ b/packages/remark-lint-no-missing-blank-lines/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-multiple-toplevel-headings/package.json b/packages/remark-lint-no-multiple-toplevel-headings/package.json index 8aff4ba5..42fec56d 100644 --- a/packages/remark-lint-no-multiple-toplevel-headings/package.json +++ b/packages/remark-lint-no-multiple-toplevel-headings/package.json @@ -42,9 +42,7 @@ "unist-util-stringify-position": "^3.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-multiple-toplevel-headings/tsconfig.json b/packages/remark-lint-no-multiple-toplevel-headings/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-multiple-toplevel-headings/tsconfig.json +++ b/packages/remark-lint-no-multiple-toplevel-headings/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-paragraph-content-indent/package.json b/packages/remark-lint-no-paragraph-content-indent/package.json index d1ccf8ac..f4fe405c 100644 --- a/packages/remark-lint-no-paragraph-content-indent/package.json +++ b/packages/remark-lint-no-paragraph-content-indent/package.json @@ -42,9 +42,7 @@ "unist-util-visit": "^4.0.0", "vfile-location": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-paragraph-content-indent/tsconfig.json b/packages/remark-lint-no-paragraph-content-indent/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-paragraph-content-indent/tsconfig.json +++ b/packages/remark-lint-no-paragraph-content-indent/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-reference-like-url/package.json b/packages/remark-lint-no-reference-like-url/package.json index 20c7e03b..bd5a3c04 100644 --- a/packages/remark-lint-no-reference-like-url/package.json +++ b/packages/remark-lint-no-reference-like-url/package.json @@ -41,9 +41,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-reference-like-url/tsconfig.json b/packages/remark-lint-no-reference-like-url/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-reference-like-url/tsconfig.json +++ b/packages/remark-lint-no-reference-like-url/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-shell-dollars/package.json b/packages/remark-lint-no-shell-dollars/package.json index 2e96a04d..d8621d66 100644 --- a/packages/remark-lint-no-shell-dollars/package.json +++ b/packages/remark-lint-no-shell-dollars/package.json @@ -40,9 +40,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-shell-dollars/tsconfig.json b/packages/remark-lint-no-shell-dollars/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-shell-dollars/tsconfig.json +++ b/packages/remark-lint-no-shell-dollars/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-shortcut-reference-image/package.json b/packages/remark-lint-no-shortcut-reference-image/package.json index 911a5863..45664eeb 100644 --- a/packages/remark-lint-no-shortcut-reference-image/package.json +++ b/packages/remark-lint-no-shortcut-reference-image/package.json @@ -41,9 +41,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-shortcut-reference-image/tsconfig.json b/packages/remark-lint-no-shortcut-reference-image/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-shortcut-reference-image/tsconfig.json +++ b/packages/remark-lint-no-shortcut-reference-image/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-shortcut-reference-link/package.json b/packages/remark-lint-no-shortcut-reference-link/package.json index 69daf846..386b7184 100644 --- a/packages/remark-lint-no-shortcut-reference-link/package.json +++ b/packages/remark-lint-no-shortcut-reference-link/package.json @@ -41,9 +41,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-shortcut-reference-link/tsconfig.json b/packages/remark-lint-no-shortcut-reference-link/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-shortcut-reference-link/tsconfig.json +++ b/packages/remark-lint-no-shortcut-reference-link/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-table-indentation/package.json b/packages/remark-lint-no-table-indentation/package.json index 4207a255..18eb72db 100644 --- a/packages/remark-lint-no-table-indentation/package.json +++ b/packages/remark-lint-no-table-indentation/package.json @@ -41,9 +41,7 @@ "unist-util-visit": "^4.0.0", "vfile-location": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-table-indentation/tsconfig.json b/packages/remark-lint-no-table-indentation/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-table-indentation/tsconfig.json +++ b/packages/remark-lint-no-table-indentation/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-tabs/package.json b/packages/remark-lint-no-tabs/package.json index de71d93a..f22f2495 100644 --- a/packages/remark-lint-no-tabs/package.json +++ b/packages/remark-lint-no-tabs/package.json @@ -38,9 +38,7 @@ "unified-lint-rule": "^2.0.0", "vfile-location": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-tabs/tsconfig.json b/packages/remark-lint-no-tabs/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-tabs/tsconfig.json +++ b/packages/remark-lint-no-tabs/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-undefined-references/package.json b/packages/remark-lint-no-undefined-references/package.json index 02a1e8f7..01bc6d2a 100644 --- a/packages/remark-lint-no-undefined-references/package.json +++ b/packages/remark-lint-no-undefined-references/package.json @@ -43,9 +43,7 @@ "unist-util-visit": "^4.0.0", "vfile-location": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-undefined-references/tsconfig.json b/packages/remark-lint-no-undefined-references/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-undefined-references/tsconfig.json +++ b/packages/remark-lint-no-undefined-references/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-unneeded-full-reference-image/package.json b/packages/remark-lint-no-unneeded-full-reference-image/package.json index fab5e3dc..fcdc8c27 100644 --- a/packages/remark-lint-no-unneeded-full-reference-image/package.json +++ b/packages/remark-lint-no-unneeded-full-reference-image/package.json @@ -43,9 +43,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-unneeded-full-reference-image/tsconfig.json b/packages/remark-lint-no-unneeded-full-reference-image/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-unneeded-full-reference-image/tsconfig.json +++ b/packages/remark-lint-no-unneeded-full-reference-image/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-unneeded-full-reference-link/package.json b/packages/remark-lint-no-unneeded-full-reference-link/package.json index 08d3c52b..ca4e063e 100644 --- a/packages/remark-lint-no-unneeded-full-reference-link/package.json +++ b/packages/remark-lint-no-unneeded-full-reference-link/package.json @@ -43,9 +43,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-unneeded-full-reference-link/tsconfig.json b/packages/remark-lint-no-unneeded-full-reference-link/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-unneeded-full-reference-link/tsconfig.json +++ b/packages/remark-lint-no-unneeded-full-reference-link/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-no-unused-definitions/package.json b/packages/remark-lint-no-unused-definitions/package.json index 32f53fe7..35acdfdf 100644 --- a/packages/remark-lint-no-unused-definitions/package.json +++ b/packages/remark-lint-no-unused-definitions/package.json @@ -39,9 +39,7 @@ "unist-util-generated": "^2.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-no-unused-definitions/tsconfig.json b/packages/remark-lint-no-unused-definitions/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-no-unused-definitions/tsconfig.json +++ b/packages/remark-lint-no-unused-definitions/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-ordered-list-marker-style/package.json b/packages/remark-lint-ordered-list-marker-style/package.json index a2f462d8..ed590908 100644 --- a/packages/remark-lint-ordered-list-marker-style/package.json +++ b/packages/remark-lint-ordered-list-marker-style/package.json @@ -42,9 +42,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-ordered-list-marker-style/tsconfig.json b/packages/remark-lint-ordered-list-marker-style/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-ordered-list-marker-style/tsconfig.json +++ b/packages/remark-lint-ordered-list-marker-style/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-ordered-list-marker-value/package.json b/packages/remark-lint-ordered-list-marker-value/package.json index 3ae88a8d..67dba6a5 100644 --- a/packages/remark-lint-ordered-list-marker-value/package.json +++ b/packages/remark-lint-ordered-list-marker-value/package.json @@ -42,9 +42,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-ordered-list-marker-value/tsconfig.json b/packages/remark-lint-ordered-list-marker-value/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-ordered-list-marker-value/tsconfig.json +++ b/packages/remark-lint-ordered-list-marker-value/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-rule-style/package.json b/packages/remark-lint-rule-style/package.json index 4c8e387d..53568dec 100644 --- a/packages/remark-lint-rule-style/package.json +++ b/packages/remark-lint-rule-style/package.json @@ -41,9 +41,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-rule-style/tsconfig.json b/packages/remark-lint-rule-style/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-rule-style/tsconfig.json +++ b/packages/remark-lint-rule-style/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-strikethrough-marker/package.json b/packages/remark-lint-strikethrough-marker/package.json index 22044fcf..87df7d90 100644 --- a/packages/remark-lint-strikethrough-marker/package.json +++ b/packages/remark-lint-strikethrough-marker/package.json @@ -41,9 +41,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-strikethrough-marker/tsconfig.json b/packages/remark-lint-strikethrough-marker/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-strikethrough-marker/tsconfig.json +++ b/packages/remark-lint-strikethrough-marker/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-strong-marker/package.json b/packages/remark-lint-strong-marker/package.json index c309de35..d65227bf 100644 --- a/packages/remark-lint-strong-marker/package.json +++ b/packages/remark-lint-strong-marker/package.json @@ -41,9 +41,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-strong-marker/tsconfig.json b/packages/remark-lint-strong-marker/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-strong-marker/tsconfig.json +++ b/packages/remark-lint-strong-marker/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-table-cell-padding/package.json b/packages/remark-lint-table-cell-padding/package.json index f5b1c207..85474b9a 100644 --- a/packages/remark-lint-table-cell-padding/package.json +++ b/packages/remark-lint-table-cell-padding/package.json @@ -42,9 +42,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-table-cell-padding/tsconfig.json b/packages/remark-lint-table-cell-padding/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-table-cell-padding/tsconfig.json +++ b/packages/remark-lint-table-cell-padding/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-table-pipe-alignment/package.json b/packages/remark-lint-table-pipe-alignment/package.json index 9ca812c3..290a4a37 100644 --- a/packages/remark-lint-table-pipe-alignment/package.json +++ b/packages/remark-lint-table-pipe-alignment/package.json @@ -42,9 +42,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-table-pipe-alignment/tsconfig.json b/packages/remark-lint-table-pipe-alignment/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-table-pipe-alignment/tsconfig.json +++ b/packages/remark-lint-table-pipe-alignment/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-table-pipes/package.json b/packages/remark-lint-table-pipes/package.json index 94a506bd..62e7d36b 100644 --- a/packages/remark-lint-table-pipes/package.json +++ b/packages/remark-lint-table-pipes/package.json @@ -41,9 +41,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-table-pipes/tsconfig.json b/packages/remark-lint-table-pipes/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-table-pipes/tsconfig.json +++ b/packages/remark-lint-table-pipes/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint-unordered-list-marker-style/package.json b/packages/remark-lint-unordered-list-marker-style/package.json index c56a2fc5..6905f7c6 100644 --- a/packages/remark-lint-unordered-list-marker-style/package.json +++ b/packages/remark-lint-unordered-list-marker-style/package.json @@ -42,9 +42,7 @@ "unist-util-position": "^4.0.0", "unist-util-visit": "^4.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint-unordered-list-marker-style/tsconfig.json b/packages/remark-lint-unordered-list-marker-style/tsconfig.json index 7e61871a..fbd8a5f5 100644 --- a/packages/remark-lint-unordered-list-marker-style/tsconfig.json +++ b/packages/remark-lint-unordered-list-marker-style/tsconfig.json @@ -1,4 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [{"path": "../unified-lint-rule"}] } diff --git a/packages/remark-lint/package.json b/packages/remark-lint/package.json index 0a6ff27d..afd4fd1b 100644 --- a/packages/remark-lint/package.json +++ b/packages/remark-lint/package.json @@ -40,9 +40,7 @@ "remark-message-control": "^7.0.0", "unified": "^10.1.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-lint/tsconfig.json b/packages/remark-lint/tsconfig.json index 7e61871a..4082f16a 100644 --- a/packages/remark-lint/tsconfig.json +++ b/packages/remark-lint/tsconfig.json @@ -1,4 +1,3 @@ { - "extends": "../../tsconfig.json", - "include": ["*.js"] + "extends": "../../tsconfig.json" } diff --git a/packages/remark-preset-lint-consistent/package.json b/packages/remark-preset-lint-consistent/package.json index e81497ec..ad41ab6c 100644 --- a/packages/remark-preset-lint-consistent/package.json +++ b/packages/remark-preset-lint-consistent/package.json @@ -49,9 +49,7 @@ "remark-lint-table-cell-padding": "^4.0.0", "unified": "^10.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-preset-lint-consistent/tsconfig.json b/packages/remark-preset-lint-consistent/tsconfig.json index 7e61871a..632195da 100644 --- a/packages/remark-preset-lint-consistent/tsconfig.json +++ b/packages/remark-preset-lint-consistent/tsconfig.json @@ -1,4 +1,18 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [ + {"path": "../remark-lint"}, + {"path": "../remark-lint-blockquote-indentation"}, + {"path": "../remark-lint-checkbox-character-style"}, + {"path": "../remark-lint-code-block-style"}, + {"path": "../remark-lint-emphasis-marker"}, + {"path": "../remark-lint-fenced-code-marker"}, + {"path": "../remark-lint-heading-style"}, + {"path": "../remark-lint-link-title-style"}, + {"path": "../remark-lint-list-item-content-indent"}, + {"path": "../remark-lint-ordered-list-marker-style"}, + {"path": "../remark-lint-rule-style"}, + {"path": "../remark-lint-strong-marker"}, + {"path": "../remark-lint-table-cell-padding"} + ] } diff --git a/packages/remark-preset-lint-markdown-style-guide/package.json b/packages/remark-preset-lint-markdown-style-guide/package.json index d95d2dca..fbe89a25 100644 --- a/packages/remark-preset-lint-markdown-style-guide/package.json +++ b/packages/remark-preset-lint-markdown-style-guide/package.json @@ -81,9 +81,7 @@ "remark-lint-unordered-list-marker-style": "^3.0.0", "unified": "^10.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-preset-lint-markdown-style-guide/tsconfig.json b/packages/remark-preset-lint-markdown-style-guide/tsconfig.json index 7e61871a..63c4c6f2 100644 --- a/packages/remark-preset-lint-markdown-style-guide/tsconfig.json +++ b/packages/remark-preset-lint-markdown-style-guide/tsconfig.json @@ -1,4 +1,49 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [ + {"path": "../remark-lint"}, + {"path": "../remark-lint-blockquote-indentation"}, + {"path": "../remark-lint-code-block-style"}, + {"path": "../remark-lint-definition-case"}, + {"path": "../remark-lint-definition-spacing"}, + {"path": "../remark-lint-emphasis-marker"}, + {"path": "../remark-lint-fenced-code-flag"}, + {"path": "../remark-lint-fenced-code-marker"}, + {"path": "../remark-lint-file-extension"}, + {"path": "../remark-lint-final-definition"}, + {"path": "../remark-lint-hard-break-spaces"}, + {"path": "../remark-lint-heading-increment"}, + {"path": "../remark-lint-heading-style"}, + {"path": "../remark-lint-link-title-style"}, + {"path": "../remark-lint-list-item-content-indent"}, + {"path": "../remark-lint-list-item-indent"}, + {"path": "../remark-lint-list-item-spacing"}, + {"path": "../remark-lint-maximum-heading-length"}, + {"path": "../remark-lint-maximum-line-length"}, + {"path": "../remark-lint-no-blockquote-without-marker"}, + {"path": "../remark-lint-no-consecutive-blank-lines"}, + {"path": "../remark-lint-no-duplicate-headings"}, + {"path": "../remark-lint-no-emphasis-as-heading"}, + {"path": "../remark-lint-no-file-name-articles"}, + {"path": "../remark-lint-no-file-name-consecutive-dashes"}, + {"path": "../remark-lint-no-file-name-irregular-characters"}, + {"path": "../remark-lint-no-file-name-mixed-case"}, + {"path": "../remark-lint-no-file-name-outer-dashes"}, + {"path": "../remark-lint-no-heading-punctuation"}, + {"path": "../remark-lint-no-inline-padding"}, + {"path": "../remark-lint-no-literal-urls"}, + {"path": "../remark-lint-no-multiple-toplevel-headings"}, + {"path": "../remark-lint-no-shell-dollars"}, + {"path": "../remark-lint-no-shortcut-reference-image"}, + {"path": "../remark-lint-no-shortcut-reference-link"}, + {"path": "../remark-lint-no-table-indentation"}, + {"path": "../remark-lint-ordered-list-marker-style"}, + {"path": "../remark-lint-ordered-list-marker-value"}, + {"path": "../remark-lint-rule-style"}, + {"path": "../remark-lint-strong-marker"}, + {"path": "../remark-lint-table-cell-padding"}, + {"path": "../remark-lint-table-pipe-alignment"}, + {"path": "../remark-lint-table-pipes"}, + {"path": "../remark-lint-unordered-list-marker-style"} + ] } diff --git a/packages/remark-preset-lint-recommended/package.json b/packages/remark-preset-lint-recommended/package.json index e8c98ca2..840dbcfe 100644 --- a/packages/remark-preset-lint-recommended/package.json +++ b/packages/remark-preset-lint-recommended/package.json @@ -50,9 +50,7 @@ "remark-lint-ordered-list-marker-style": "^3.0.0", "unified": "^10.0.0" }, - "scripts": { - "build": "rimraf \"*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/remark-preset-lint-recommended/tsconfig.json b/packages/remark-preset-lint-recommended/tsconfig.json index 7e61871a..08d82c18 100644 --- a/packages/remark-preset-lint-recommended/tsconfig.json +++ b/packages/remark-preset-lint-recommended/tsconfig.json @@ -1,4 +1,20 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "references": [ + {"path": "../remark-lint"}, + {"path": "../remark-lint-final-newline"}, + {"path": "../remark-lint-hard-break-spaces"}, + {"path": "../remark-lint-list-item-bullet-indent"}, + {"path": "../remark-lint-list-item-indent"}, + {"path": "../remark-lint-no-blockquote-without-marker"}, + {"path": "../remark-lint-no-duplicate-definitions"}, + {"path": "../remark-lint-no-heading-content-indent"}, + {"path": "../remark-lint-no-inline-padding"}, + {"path": "../remark-lint-no-literal-urls"}, + {"path": "../remark-lint-no-shortcut-reference-image"}, + {"path": "../remark-lint-no-shortcut-reference-link"}, + {"path": "../remark-lint-no-undefined-references"}, + {"path": "../remark-lint-no-unused-definitions"}, + {"path": "../remark-lint-ordered-list-marker-style"} + ] } diff --git a/packages/unified-lint-rule/index.d.ts b/packages/unified-lint-rule/index.d.ts deleted file mode 100644 index ffebd3b3..00000000 --- a/packages/unified-lint-rule/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type {Node} from 'unist' -import type {VFile} from 'vfile' -import type {Plugin} from 'unified' -import type {Label, Severity} from './lib/index.js' - -export type RuleMeta = { - /** - * Name of the lint rule - */ - origin: string - - /** - * Link to documentation - */ - url?: string | undefined -} - -export function lintRule( - name: string | RuleMeta, - rule: Rule -): Plugin< - void[] | [Options | [boolean | Label | Severity, (Options | undefined)?]], - Tree -> - -export type Rule = ( - node: Tree, - file: VFile, - options: Options -) => Promise | Tree | undefined | void - -export type {Severity, Label} from './lib/index.js' diff --git a/packages/unified-lint-rule/index.js b/packages/unified-lint-rule/index.js index dc0efbd8..bbaaa3a1 100644 --- a/packages/unified-lint-rule/index.js +++ b/packages/unified-lint-rule/index.js @@ -1 +1,15 @@ +/** + * @typedef {import('unist').Node} Node + */ + +/** + * @typedef {import('./lib/index.js').RuleMeta} RuleMeta + */ + +/** + * @template {Node} [Tree=Node] + * @template {any} [Options=unknown] + * @typedef {import('./lib/index.js').Rule} Rule + */ + export {lintRule} from './lib/index.js' diff --git a/packages/unified-lint-rule/lib/index.js b/packages/unified-lint-rule/lib/index.js index 013ad4f1..5a696a69 100644 --- a/packages/unified-lint-rule/lib/index.js +++ b/packages/unified-lint-rule/lib/index.js @@ -9,19 +9,26 @@ * @typedef RuleMeta * @property {string} origin name of the lint rule * @property {string} [url] link to documentation - * + */ + +/** + * @template {Node} [Tree=Node] + * @template {any} [Options=unknown] * @callback Rule - * @param {Node} tree + * @param {Tree} tree * @param {VFile} file - * @param {unknown} options - * @returns {void} + * @param {Options} options + * @returns {Promise | Tree | undefined | void} */ import {wrap} from 'trough' /** - * @param {string|RuleMeta} meta - * @param {Rule} rule + * @template {Node} [Tree=Node] + * @template {any} [Options=unknown] + * @param {string | RuleMeta} meta + * @param {Rule} rule + * @returns {import('unified').Plugin} */ export function lintRule(meta, rule) { const id = typeof meta === 'string' ? meta : meta.origin @@ -34,6 +41,7 @@ export function lintRule(meta, rule) { Object.defineProperty(plugin, 'name', {value: id}) + // @ts-expect-error: to do: fix. return plugin /** @type {import('unified').Plugin<[unknown]|Array>} */ diff --git a/packages/unified-lint-rule/package.json b/packages/unified-lint-rule/package.json index 3de1510e..02e86823 100644 --- a/packages/unified-lint-rule/package.json +++ b/packages/unified-lint-rule/package.json @@ -39,9 +39,7 @@ "unified": "^10.0.0", "vfile": "^5.0.0" }, - "scripts": { - "build": "rimraf \"lib/**/*.d.ts\" && tsc && type-coverage" - }, + "scripts": {}, "xo": false, "typeCoverage": { "atLeast": 100, diff --git a/packages/unified-lint-rule/tsconfig.json b/packages/unified-lint-rule/tsconfig.json index 4f4b4b06..4082f16a 100644 --- a/packages/unified-lint-rule/tsconfig.json +++ b/packages/unified-lint-rule/tsconfig.json @@ -1,4 +1,3 @@ { - "extends": "../../tsconfig.json", - "include": ["lib/**/*.js"] + "extends": "../../tsconfig.json" } diff --git a/script/build-presets.js b/script/build-presets.js index fc911928..77ca6cf9 100644 --- a/script/build-presets.js +++ b/script/build-presets.js @@ -38,6 +38,8 @@ presets(root).then((presetObjects) => { ) const version = (pack.version || '0').split('.')[0] const doc = fs.readFileSync(path.join(base, 'index.js'), 'utf8') + // Note: To do: `comment-parser` types are wrong. + /** @type {import('comment-parser/primitives').Block} */ const fileInfo = parse(doc, {spacing: 'preserve'})[0] const tags = fileInfo.tags const summaryTag = tags.find((d) => d.tag === 'summary') diff --git a/script/util/rule.js b/script/util/rule.js index b473c3db..20c0e796 100755 --- a/script/util/rule.js +++ b/script/util/rule.js @@ -32,6 +32,8 @@ export function rule(filePath) { /** @type {Record} */ const tests = {} const code = fs.readFileSync(path.join(filePath, 'index.js'), 'utf8') + // Note: To do: `comment-parser` types are wrong. + /** @type {import('comment-parser/primitives').Block} */ const fileInfo = parse(code, {spacing: 'preserve'})[0] const tags = fileInfo.tags const moduleTag = tags.find((d) => d.tag === 'module') diff --git a/test.js b/test.js index b8f9692f..089d259f 100644 --- a/test.js +++ b/test.js @@ -2,8 +2,8 @@ * @typedef {import('unified').Plugin} Plugin * @typedef {import('vfile-message').VFileMessage} VFileMessage * @typedef {import('tape').Test} Test - * @typedef {import('./script/util/rule').Rule} Rule - * @typedef {import('./script/util/rule').Check} Check + * @typedef {import('./script/util/rule.js').Rule} Rule + * @typedef {import('./script/util/rule.js').Check} Check */ import url from 'node:url' diff --git a/tsconfig.json b/tsconfig.json index 3c7623ba..08cbdbbf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,18 @@ { - "include": ["script/**/*.js", "test.js"], + "include": ["**/*.js"], + "exclude": ["**/coverage/", "**/node_modules/"], "compilerOptions": { - "target": "ES2020", - "lib": ["ES2020"], - "module": "ES2020", - "moduleResolution": "node", - "resolveJsonModule": true, - "allowJs": true, + "customConditions": ["development"], "checkJs": true, "declaration": true, "emitDeclarationOnly": true, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "strict": true + "exactOptionalPropertyTypes": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es2020"], + "module": "node16", + "newLine": "lf", + "strict": true, + "target": "es2020", + "skipLibCheck": true } }