diff --git a/.gitignore b/.gitignore index f42d6fe..1ad46cd 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 02b37d7..57fa932 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 f3f80f8..ed36669 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 7e61871..fbd8a5f 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 63d6276..6ec3537 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 7e61871..fbd8a5f 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 42e65d0..66bd274 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 7e61871..fbd8a5f 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 6a1afc1..180bc03 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 7e61871..fbd8a5f 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 4b94530..e97c959 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 7e61871..fbd8a5f 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 d01d17f..1a2217a 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 7e61871..fbd8a5f 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 74e257f..39cf6f4 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 7e61871..fbd8a5f 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 c6073e7..f70123b 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 7e61871..fbd8a5f 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 358b5fb..e4818b8 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 7e61871..fbd8a5f 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 7db4365..5809e4c 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 7e61871..fbd8a5f 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 904ccdd..29e2453 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 7e61871..fbd8a5f 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 c38f1b6..b871ac8 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 7e61871..fbd8a5f 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 75cbc33..0de8195 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 7e61871..fbd8a5f 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 1bc1bb6..c5be3d8 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 7e61871..fbd8a5f 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 181e42c..7644c47 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 7e61871..fbd8a5f 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 c5a0e52..1e2e9d9 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 7e61871..fbd8a5f 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 dd186e9..3d964df 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 7e61871..fbd8a5f 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 b1affd3..ed47684 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 7e61871..fbd8a5f 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 e2aa04a..5ea1494 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 7e61871..fbd8a5f 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 43f4d4a..8d443b4 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 7e61871..fbd8a5f 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 a820a31..1d62f3b 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 7e61871..fbd8a5f 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 87602ae..0a778e4 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 7e61871..fbd8a5f 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 5b4f469..77d16a8 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 7e61871..fbd8a5f 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 b926974..66a53eb 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 7e61871..fbd8a5f 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 b45e6e9..c4e8f46 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 7e61871..fbd8a5f 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 fcf7f5d..ca42172 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 7e61871..fbd8a5f 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 24e1a16..c27bf91 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 7e61871..fbd8a5f 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 2f912a2..f741a8a 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 7e61871..fbd8a5f 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 b09ebe1..c930fd9 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 7e61871..fbd8a5f 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 09d7e3b..3aacd22 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 7e61871..fbd8a5f 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 f921e08..6155e8a 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 7e61871..fbd8a5f 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 aef7ec5..08ba9da 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 7e61871..fbd8a5f 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 7c96020..10216cc 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 7e61871..fbd8a5f 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 455d424..2135326 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 7e61871..fbd8a5f 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 3299596..d13027b 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 7e61871..fbd8a5f 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 48fff03..255d796 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 7e61871..fbd8a5f 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 9798615..2a2b42b 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 7e61871..fbd8a5f 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 9b6a46a..cfa82de 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 7e61871..fbd8a5f 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 59270cd..70843bc 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 7e61871..fbd8a5f 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 97f9b8d..58eacfc 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 7e61871..fbd8a5f 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 6cc4909..e26bd45 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 7e61871..fbd8a5f 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 f256c95..e96849e 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 7e61871..fbd8a5f 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 e8afad4..17e5177 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 7e61871..fbd8a5f 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 49a8ce9..8a9a767 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 7e61871..fbd8a5f 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 ca242d4..aa67b27 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 7e61871..fbd8a5f 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 d96c942..e2e5b9f 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 7e61871..fbd8a5f 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 8aff4ba..42fec56 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 7e61871..fbd8a5f 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 d1ccf8a..f4fe405 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 7e61871..fbd8a5f 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 20c7e03..bd5a3c0 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 7e61871..fbd8a5f 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 2e96a04..d8621d6 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 7e61871..fbd8a5f 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 911a586..45664ee 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 7e61871..fbd8a5f 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 69daf84..386b718 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 7e61871..fbd8a5f 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 4207a25..18eb72d 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 7e61871..fbd8a5f 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 de71d93..f22f249 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 7e61871..fbd8a5f 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 02a1e8f..01bc6d2 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 7e61871..fbd8a5f 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 fab5e3d..fcdc8c2 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 7e61871..fbd8a5f 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 08d3c52..ca4e063 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 7e61871..fbd8a5f 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 32f53fe..35acdfd 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 7e61871..fbd8a5f 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 a2f462d..ed59090 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 7e61871..fbd8a5f 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 3ae88a8..67dba6a 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 7e61871..fbd8a5f 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 4c8e387..53568de 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 7e61871..fbd8a5f 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 22044fc..87df7d9 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 7e61871..fbd8a5f 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 c309de3..d65227b 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 7e61871..fbd8a5f 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 f5b1c20..85474b9 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 7e61871..fbd8a5f 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 9ca812c..290a4a3 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 7e61871..fbd8a5f 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 94a506b..62e7d36 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 7e61871..fbd8a5f 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 c56a2fc..6905f7c 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 7e61871..fbd8a5f 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 0a6ff27..afd4fd1 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 7e61871..4082f16 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 e81497e..ad41ab6 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 7e61871..632195d 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 d95d2dc..fbe89a2 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 7e61871..63c4c6f 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 e8c98ca..840dbcf 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 7e61871..08d82c1 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 ffebd3b..0000000 --- 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 dc0efbd..bbaaa3a 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 013ad4f..5a696a6 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 3de1510..02e8682 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 4f4b4b0..4082f16 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 fc91192..77ca6cf 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 b473c3d..20c0e79 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 b8f9692..089d259 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 3c7623b..08cbdbb 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 } }