@lobehub/lint 1.26.3 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -154
- package/dist/index.cjs +93 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -8
- package/dist/index.js +9 -59
- package/package.json +34 -78
- package/dist/changelog/index.d.ts +0 -23
- package/dist/changelog/index.js +0 -46
- package/dist/commitlint/index.d.ts +0 -9
- package/dist/commitlint/index.js +0 -32
- package/dist/eslint/index.d.ts +0 -63
- package/dist/eslint/index.js +0 -108
- package/dist/prettier/index.d.ts +0 -27
- package/dist/prettier/index.js +0 -68
- package/dist/remarklint/index.d.ts +0 -21
- package/dist/remarklint/index.js +0 -77
- package/dist/remarklint/remarkGfmHighlight.d.ts +0 -1
- package/dist/remarklint/remarkGfmHighlight.js +0 -67
- package/dist/remarklint/remarkTextrPlugins.d.ts +0 -1
- package/dist/remarklint/remarkTextrPlugins.js +0 -31
- package/dist/semantic-release/index.d.ts +0 -14
- package/dist/semantic-release/index.js +0 -101
- package/dist/semantic-release/monorepo.d.ts +0 -12
- package/dist/semantic-release/monorepo.js +0 -30
- package/dist/stylelint/index.d.ts +0 -44
- package/dist/stylelint/index.js +0 -70
package/dist/changelog/index.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/changelog/index.ts
|
|
20
|
-
var changelog_exports = {};
|
|
21
|
-
__export(changelog_exports, {
|
|
22
|
-
default: () => changelog_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(changelog_exports);
|
|
25
|
-
var changelog_default = {
|
|
26
|
-
addBackToTop: true,
|
|
27
|
-
customTypeMap: {
|
|
28
|
-
build: {
|
|
29
|
-
emoji: "📦"
|
|
30
|
-
},
|
|
31
|
-
chore: {
|
|
32
|
-
emoji: "🔧"
|
|
33
|
-
},
|
|
34
|
-
ci: {
|
|
35
|
-
emoji: "👷"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
displayTypes: ["feat", "fix", "style", "pref", "refactor"],
|
|
39
|
-
newlineTimestamp: true,
|
|
40
|
-
reduceHeadingLevel: true,
|
|
41
|
-
scopeDisplayName: {
|
|
42
|
-
"*": "misc"
|
|
43
|
-
},
|
|
44
|
-
showAuthor: true,
|
|
45
|
-
showSummary: true
|
|
46
|
-
};
|
package/dist/commitlint/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/commitlint/index.ts
|
|
20
|
-
var commitlint_exports = {};
|
|
21
|
-
__export(commitlint_exports, {
|
|
22
|
-
default: () => commitlint_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(commitlint_exports);
|
|
25
|
-
var commitlint_default = {
|
|
26
|
-
$schema: "https://json.schemastore.org/commitlintrc",
|
|
27
|
-
extends: ["gitmoji"],
|
|
28
|
-
rules: {
|
|
29
|
-
"footer-leading-blank": [0, "never"],
|
|
30
|
-
"header-max-length": [0, "never"]
|
|
31
|
-
}
|
|
32
|
-
};
|
package/dist/eslint/index.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
$schema: string;
|
|
3
|
-
extends: string[];
|
|
4
|
-
plugins: string[];
|
|
5
|
-
rules: {
|
|
6
|
-
'@typescript-eslint/ban-ts-comment': number;
|
|
7
|
-
'@typescript-eslint/no-explicit-any': number;
|
|
8
|
-
'import/first': string;
|
|
9
|
-
'import/newline-after-import': string;
|
|
10
|
-
'import/no-duplicates': string;
|
|
11
|
-
'no-empty': string;
|
|
12
|
-
'no-extra-boolean-cast': number;
|
|
13
|
-
'no-unused-vars': number;
|
|
14
|
-
'react/display-name': number;
|
|
15
|
-
'react/jsx-no-useless-fragment': string;
|
|
16
|
-
'react/jsx-sort-props': string;
|
|
17
|
-
'react/no-unknown-property': string;
|
|
18
|
-
'react/prop-types': number;
|
|
19
|
-
'react/react-in-jsx-scope': number;
|
|
20
|
-
'react/self-closing-comp': (string | {
|
|
21
|
-
component: boolean;
|
|
22
|
-
html: boolean;
|
|
23
|
-
})[];
|
|
24
|
-
'simple-import-sort/exports': string;
|
|
25
|
-
'sort-keys-fix/sort-keys-fix': string;
|
|
26
|
-
'typescript-sort-keys/interface': string;
|
|
27
|
-
'typescript-sort-keys/string-enum': string;
|
|
28
|
-
'unicorn/catch-error-name': string;
|
|
29
|
-
'unicorn/explicit-length-check': number;
|
|
30
|
-
'unicorn/filename-case': number;
|
|
31
|
-
'unicorn/import-style': number;
|
|
32
|
-
'unicorn/no-anonymous-default-export': number;
|
|
33
|
-
'unicorn/no-array-callback-reference': number;
|
|
34
|
-
'unicorn/no-array-for-each': number;
|
|
35
|
-
'unicorn/no-array-reduce': number;
|
|
36
|
-
'unicorn/no-empty-file': string;
|
|
37
|
-
'unicorn/no-negated-condition': number;
|
|
38
|
-
'unicorn/no-nested-ternary': number;
|
|
39
|
-
'unicorn/no-null': number;
|
|
40
|
-
'unicorn/no-typeof-undefined': string;
|
|
41
|
-
'unicorn/no-useless-undefined': number;
|
|
42
|
-
'unicorn/prefer-code-point': number;
|
|
43
|
-
'unicorn/prefer-logical-operator-over-ternary': number;
|
|
44
|
-
'unicorn/prefer-module': number;
|
|
45
|
-
'unicorn/prefer-number-properties': number;
|
|
46
|
-
'unicorn/prefer-query-selector': number;
|
|
47
|
-
'unicorn/prefer-spread': number;
|
|
48
|
-
'unicorn/prefer-string-raw': number;
|
|
49
|
-
'unicorn/prefer-string-replace-all': string;
|
|
50
|
-
'unicorn/prefer-ternary': number;
|
|
51
|
-
'unicorn/prefer-type-error': number;
|
|
52
|
-
'unicorn/prevent-abbreviations': number;
|
|
53
|
-
'unicorn/switch-case-braces': string;
|
|
54
|
-
'unused-imports/no-unused-imports': string;
|
|
55
|
-
'unused-imports/no-unused-vars': (string | {
|
|
56
|
-
args: string;
|
|
57
|
-
argsIgnorePattern: string;
|
|
58
|
-
vars: string;
|
|
59
|
-
varsIgnorePattern: string;
|
|
60
|
-
})[];
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export default _default;
|
package/dist/eslint/index.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/eslint/index.ts
|
|
30
|
-
var eslint_exports = {};
|
|
31
|
-
__export(eslint_exports, {
|
|
32
|
-
default: () => eslint_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(eslint_exports);
|
|
35
|
-
var eslint_default = {
|
|
36
|
-
$schema: "https://json.schemastore.org/eslintrc",
|
|
37
|
-
extends: [
|
|
38
|
-
"eslint:recommended",
|
|
39
|
-
require.resolve("@umijs/lint/dist/config/eslint"),
|
|
40
|
-
"plugin:unicorn/recommended"
|
|
41
|
-
],
|
|
42
|
-
plugins: [
|
|
43
|
-
"unicorn",
|
|
44
|
-
"import",
|
|
45
|
-
"unused-imports",
|
|
46
|
-
"simple-import-sort",
|
|
47
|
-
"sort-keys-fix",
|
|
48
|
-
"typescript-sort-keys"
|
|
49
|
-
],
|
|
50
|
-
rules: {
|
|
51
|
-
"@typescript-eslint/ban-ts-comment": 0,
|
|
52
|
-
"@typescript-eslint/no-explicit-any": 0,
|
|
53
|
-
"import/first": "error",
|
|
54
|
-
"import/newline-after-import": "error",
|
|
55
|
-
"import/no-duplicates": "error",
|
|
56
|
-
"no-empty": "warn",
|
|
57
|
-
"no-extra-boolean-cast": 0,
|
|
58
|
-
"no-unused-vars": 0,
|
|
59
|
-
"react/display-name": 0,
|
|
60
|
-
"react/jsx-no-useless-fragment": "error",
|
|
61
|
-
"react/jsx-sort-props": "error",
|
|
62
|
-
"react/no-unknown-property": "warn",
|
|
63
|
-
"react/prop-types": 0,
|
|
64
|
-
"react/react-in-jsx-scope": 0,
|
|
65
|
-
"react/self-closing-comp": [
|
|
66
|
-
"warn",
|
|
67
|
-
{
|
|
68
|
-
component: true,
|
|
69
|
-
html: true
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"simple-import-sort/exports": "error",
|
|
73
|
-
"sort-keys-fix/sort-keys-fix": "error",
|
|
74
|
-
"typescript-sort-keys/interface": "error",
|
|
75
|
-
"typescript-sort-keys/string-enum": "error",
|
|
76
|
-
"unicorn/catch-error-name": "warn",
|
|
77
|
-
"unicorn/explicit-length-check": 0,
|
|
78
|
-
"unicorn/filename-case": 0,
|
|
79
|
-
"unicorn/import-style": 0,
|
|
80
|
-
"unicorn/no-anonymous-default-export": 0,
|
|
81
|
-
"unicorn/no-array-callback-reference": 0,
|
|
82
|
-
"unicorn/no-array-for-each": 0,
|
|
83
|
-
"unicorn/no-array-reduce": 0,
|
|
84
|
-
"unicorn/no-empty-file": "warn",
|
|
85
|
-
"unicorn/no-negated-condition": 0,
|
|
86
|
-
"unicorn/no-nested-ternary": 0,
|
|
87
|
-
"unicorn/no-null": 0,
|
|
88
|
-
"unicorn/no-typeof-undefined": "warn",
|
|
89
|
-
"unicorn/no-useless-undefined": 0,
|
|
90
|
-
"unicorn/prefer-code-point": 0,
|
|
91
|
-
"unicorn/prefer-logical-operator-over-ternary": 0,
|
|
92
|
-
"unicorn/prefer-module": 0,
|
|
93
|
-
"unicorn/prefer-number-properties": 0,
|
|
94
|
-
"unicorn/prefer-query-selector": 0,
|
|
95
|
-
"unicorn/prefer-spread": 0,
|
|
96
|
-
"unicorn/prefer-string-raw": 0,
|
|
97
|
-
"unicorn/prefer-string-replace-all": "warn",
|
|
98
|
-
"unicorn/prefer-ternary": 0,
|
|
99
|
-
"unicorn/prefer-type-error": 0,
|
|
100
|
-
"unicorn/prevent-abbreviations": 0,
|
|
101
|
-
"unicorn/switch-case-braces": "warn",
|
|
102
|
-
"unused-imports/no-unused-imports": "error",
|
|
103
|
-
"unused-imports/no-unused-vars": [
|
|
104
|
-
"warn",
|
|
105
|
-
{ args: "after-used", argsIgnorePattern: "^_", vars: "all", varsIgnorePattern: "^_" }
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
};
|
package/dist/prettier/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
$schema: string;
|
|
3
|
-
arrowParens: string;
|
|
4
|
-
bracketSpacing: boolean;
|
|
5
|
-
endOfLine: string;
|
|
6
|
-
importOrder: string[];
|
|
7
|
-
importOrderParserPlugins: string[];
|
|
8
|
-
importOrderSeparation: boolean;
|
|
9
|
-
importOrderSortSpecifiers: boolean;
|
|
10
|
-
jsonRecursiveSort: boolean;
|
|
11
|
-
jsonSortOrder: string;
|
|
12
|
-
overrides: {
|
|
13
|
-
files: string;
|
|
14
|
-
options: {
|
|
15
|
-
proseWrap: string;
|
|
16
|
-
};
|
|
17
|
-
}[];
|
|
18
|
-
plugins: string[];
|
|
19
|
-
printWidth: number;
|
|
20
|
-
proseWrap: string;
|
|
21
|
-
quoteProps: string;
|
|
22
|
-
singleQuote: boolean;
|
|
23
|
-
tabWidth: number;
|
|
24
|
-
trailingComma: string;
|
|
25
|
-
useTabs: boolean;
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
package/dist/prettier/index.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/prettier/index.ts
|
|
30
|
-
var prettier_exports = {};
|
|
31
|
-
__export(prettier_exports, {
|
|
32
|
-
default: () => prettier_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(prettier_exports);
|
|
35
|
-
var prettier_default = {
|
|
36
|
-
$schema: "https://json.schemastore.org/prettierrc",
|
|
37
|
-
arrowParens: "always",
|
|
38
|
-
bracketSpacing: true,
|
|
39
|
-
endOfLine: "lf",
|
|
40
|
-
importOrder: ["<THIRD_PARTY_MODULES>", "^@/(.*)$", "^[./]"],
|
|
41
|
-
importOrderParserPlugins: ["typescript", "jsx", "decorators"],
|
|
42
|
-
importOrderSeparation: true,
|
|
43
|
-
importOrderSortSpecifiers: true,
|
|
44
|
-
jsonRecursiveSort: false,
|
|
45
|
-
jsonSortOrder: '{"*": "lexical"}',
|
|
46
|
-
overrides: [
|
|
47
|
-
{
|
|
48
|
-
files: "*.md",
|
|
49
|
-
options: {
|
|
50
|
-
proseWrap: "preserve"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
plugins: [
|
|
55
|
-
require.resolve("prettier-plugin-sh"),
|
|
56
|
-
require.resolve("prettier-plugin-organize-imports"),
|
|
57
|
-
require.resolve("prettier-plugin-packagejson"),
|
|
58
|
-
require.resolve("prettier-plugin-sort-json"),
|
|
59
|
-
require.resolve("@trivago/prettier-plugin-sort-imports")
|
|
60
|
-
],
|
|
61
|
-
printWidth: 100,
|
|
62
|
-
proseWrap: "never",
|
|
63
|
-
quoteProps: "consistent",
|
|
64
|
-
singleQuote: true,
|
|
65
|
-
tabWidth: 2,
|
|
66
|
-
trailingComma: "all",
|
|
67
|
-
useTabs: false
|
|
68
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { remarkGfmHighlight } from './remarkGfmHighlight';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
$schema: string;
|
|
4
|
-
plugins: (string | typeof remarkGfmHighlight | (string | boolean)[] | (string | {
|
|
5
|
-
plugins: ((str: string) => string)[];
|
|
6
|
-
})[] | (string | {
|
|
7
|
-
heading: string;
|
|
8
|
-
maxDepth: number;
|
|
9
|
-
})[] | (string | {
|
|
10
|
-
checkBlanks: boolean;
|
|
11
|
-
})[])[];
|
|
12
|
-
settings: {
|
|
13
|
-
bullet: string;
|
|
14
|
-
emphasis: string;
|
|
15
|
-
fences: boolean;
|
|
16
|
-
rule: string;
|
|
17
|
-
strong: string;
|
|
18
|
-
tightDefinitions: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
package/dist/remarklint/index.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/remarklint/index.ts
|
|
20
|
-
var remarklint_exports = {};
|
|
21
|
-
__export(remarklint_exports, {
|
|
22
|
-
default: () => remarklint_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(remarklint_exports);
|
|
25
|
-
var import_remarkGfmHighlight = require("./remarkGfmHighlight");
|
|
26
|
-
var import_remarkTextrPlugins = require("./remarkTextrPlugins");
|
|
27
|
-
var remarklint_default = {
|
|
28
|
-
$schema: "https://json.schemastore.org/remarkrc",
|
|
29
|
-
plugins: [
|
|
30
|
-
"remark-gfm",
|
|
31
|
-
"remark-frontmatter",
|
|
32
|
-
"remark-pangu",
|
|
33
|
-
["remark-textr", { plugins: [import_remarkTextrPlugins.replaceNBSP] }],
|
|
34
|
-
import_remarkGfmHighlight.remarkGfmHighlight,
|
|
35
|
-
// ----- Plugin -----------------------------------------------------------
|
|
36
|
-
"remark-sort-definitions",
|
|
37
|
-
["remark-toc", { heading: "TOC", maxDepth: 3 }],
|
|
38
|
-
"remark-remove-unused-definitions",
|
|
39
|
-
// ----- Presets -----------------------------------------------------------
|
|
40
|
-
"remark-preset-lint-markdown-style-guide",
|
|
41
|
-
"remark-preset-lint-recommended",
|
|
42
|
-
"remark-preset-lint-consistent",
|
|
43
|
-
// ----- Built-In ----------------------------------------------------------
|
|
44
|
-
"remark-lint-checkbox-content-indent",
|
|
45
|
-
"remark-lint-linebreak-style",
|
|
46
|
-
"remark-lint-no-duplicate-headings-in-section",
|
|
47
|
-
"remark-lint-no-empty-url",
|
|
48
|
-
"remark-lint-no-heading-indent",
|
|
49
|
-
"remark-lint-no-heading-like-paragraph",
|
|
50
|
-
"remark-lint-no-paragraph-content-indent",
|
|
51
|
-
"remark-lint-no-reference-like-url",
|
|
52
|
-
"remark-lint-no-tabs",
|
|
53
|
-
"remark-lint-no-unneeded-full-reference-image",
|
|
54
|
-
"remark-lint-no-unneeded-full-reference-link",
|
|
55
|
-
// ----- External ----------------------------------------------------------
|
|
56
|
-
"remark-lint-no-empty-sections",
|
|
57
|
-
"remark-lint-write-good",
|
|
58
|
-
"remark-lint-frontmatter-schema",
|
|
59
|
-
// ----- Overrides ---------------------------------------------------------
|
|
60
|
-
["remark-lint-list-item-indent", "space"],
|
|
61
|
-
["remark-lint-list-item-spacing", { checkBlanks: true }],
|
|
62
|
-
["remark-lint-no-duplicate-headings", false],
|
|
63
|
-
["remark-lint-no-file-name-irregular-characters", String.raw`\.a-zA-Z0-9-_`],
|
|
64
|
-
["remark-lint-no-file-name-mixed-case", false],
|
|
65
|
-
["remark-lint-no-literal-urls", false],
|
|
66
|
-
["remark-lint-no-shell-dollars", false],
|
|
67
|
-
["remark-lint-ordered-list-marker-value", false]
|
|
68
|
-
],
|
|
69
|
-
settings: {
|
|
70
|
-
bullet: "-",
|
|
71
|
-
emphasis: "*",
|
|
72
|
-
fences: true,
|
|
73
|
-
rule: "-",
|
|
74
|
-
strong: "*",
|
|
75
|
-
tightDefinitions: true
|
|
76
|
-
}
|
|
77
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function remarkGfmHighlight(): (tree: any) => Promise<void>;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/remarklint/remarkGfmHighlight.ts
|
|
30
|
-
var remarkGfmHighlight_exports = {};
|
|
31
|
-
__export(remarkGfmHighlight_exports, {
|
|
32
|
-
remarkGfmHighlight: () => remarkGfmHighlight
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(remarkGfmHighlight_exports);
|
|
35
|
-
var gfmHighlight = [
|
|
36
|
-
{ from: "Note", to: "[!NOTE]" },
|
|
37
|
-
{ from: "Tip", to: "[!TIP]" },
|
|
38
|
-
{ from: "Important", to: "[!IMPORTANT]" },
|
|
39
|
-
{ from: "Warning", to: "[!WARNING]" },
|
|
40
|
-
{ from: "Caution", to: "[!CAUTION]" }
|
|
41
|
-
];
|
|
42
|
-
function remarkGfmHighlight() {
|
|
43
|
-
return async (tree) => {
|
|
44
|
-
const { visit } = await import("unist-util-visit");
|
|
45
|
-
visit(tree, "blockquote", (node) => {
|
|
46
|
-
visit(node.children[0], "strong", (subnode) => {
|
|
47
|
-
if (subnode.position.start.column !== 3)
|
|
48
|
-
return;
|
|
49
|
-
visit(subnode, "text", (textnode) => {
|
|
50
|
-
if (!["Note", "Tip", "Important", "Warning", "Caution"].includes(textnode.value))
|
|
51
|
-
return;
|
|
52
|
-
for (const item of gfmHighlight) {
|
|
53
|
-
if (item.from !== textnode.value)
|
|
54
|
-
continue;
|
|
55
|
-
subnode.type = "text";
|
|
56
|
-
subnode.value = item.to;
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
-
0 && (module.exports = {
|
|
66
|
-
remarkGfmHighlight
|
|
67
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const replaceNBSP: (str: string) => string;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/remarklint/remarkTextrPlugins.ts
|
|
20
|
-
var remarkTextrPlugins_exports = {};
|
|
21
|
-
__export(remarkTextrPlugins_exports, {
|
|
22
|
-
replaceNBSP: () => replaceNBSP
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(remarkTextrPlugins_exports);
|
|
25
|
-
var replaceNBSP = (str) => {
|
|
26
|
-
return str.replaceAll(" ", " ");
|
|
27
|
-
};
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
replaceNBSP
|
|
31
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="semantic-release" />
|
|
2
|
-
import { type Options } from 'semantic-release-config-gitmoji/lib/createConfig';
|
|
3
|
-
export declare const options: Options;
|
|
4
|
-
declare const _default: {
|
|
5
|
-
extends?: string | readonly string[] | undefined;
|
|
6
|
-
branches?: import("semantic-release").BranchSpec | readonly import("semantic-release").BranchSpec[] | undefined;
|
|
7
|
-
repositoryUrl?: string | undefined;
|
|
8
|
-
tagFormat?: string | undefined;
|
|
9
|
-
plugins?: readonly import("semantic-release").PluginSpec<any>[] | undefined;
|
|
10
|
-
dryRun?: boolean | undefined;
|
|
11
|
-
ci?: boolean | undefined;
|
|
12
|
-
$schema: string;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/semantic-release/index.ts
|
|
20
|
-
var semantic_release_exports = {};
|
|
21
|
-
__export(semantic_release_exports, {
|
|
22
|
-
default: () => semantic_release_default,
|
|
23
|
-
options: () => options
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(semantic_release_exports);
|
|
26
|
-
var import_createConfig = require("semantic-release-config-gitmoji/lib/createConfig");
|
|
27
|
-
var options = {
|
|
28
|
-
changelogTitle: `<a name="readme-top"></a>
|
|
29
|
-
|
|
30
|
-
# Changelog`,
|
|
31
|
-
releaseRules: [
|
|
32
|
-
{
|
|
33
|
-
release: "minor",
|
|
34
|
-
type: "feat"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
release: "patch",
|
|
38
|
-
type: "fix"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
release: "patch",
|
|
42
|
-
type: "perf"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
release: "patch",
|
|
46
|
-
type: "style"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
release: "patch",
|
|
50
|
-
type: "refactor"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
release: "patch",
|
|
54
|
-
type: "build"
|
|
55
|
-
},
|
|
56
|
-
{ release: "patch", scope: "README", type: "docs" },
|
|
57
|
-
{ release: "patch", scope: "README.md", type: "docs" },
|
|
58
|
-
{ release: false, type: "docs" },
|
|
59
|
-
{
|
|
60
|
-
release: false,
|
|
61
|
-
type: "test"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
release: false,
|
|
65
|
-
type: "ci"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
release: false,
|
|
69
|
-
type: "chore"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
release: false,
|
|
73
|
-
type: "wip"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
release: "major",
|
|
77
|
-
type: "BREAKING CHANGE"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
release: "major",
|
|
81
|
-
scope: "BREAKING CHANGE"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
release: "major",
|
|
85
|
-
subject: "*BREAKING CHANGE*"
|
|
86
|
-
},
|
|
87
|
-
{ release: "patch", subject: "*force release*" },
|
|
88
|
-
{ release: "patch", subject: "*force patch*" },
|
|
89
|
-
{ release: "minor", subject: "*force minor*" },
|
|
90
|
-
{ release: "major", subject: "*force major*" },
|
|
91
|
-
{ release: false, subject: "*skip release*" }
|
|
92
|
-
]
|
|
93
|
-
};
|
|
94
|
-
var semantic_release_default = {
|
|
95
|
-
$schema: "https://json.schemastore.org/semantic-release",
|
|
96
|
-
...(0, import_createConfig.createConfig)(options)
|
|
97
|
-
};
|
|
98
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
99
|
-
0 && (module.exports = {
|
|
100
|
-
options
|
|
101
|
-
});
|