@lobehub/lint 1.3.0 → 1.4.0
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 +14 -28
- package/dist/changelog/index.d.ts +21 -0
- package/dist/changelog/index.js +35 -4
- package/dist/commitlint/index.d.ts +8 -0
- package/dist/commitlint/index.js +29 -2
- package/dist/eslint/index.d.ts +23 -0
- package/dist/eslint/index.js +11 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +57 -0
- package/dist/prettier/index.d.ts +17 -0
- package/dist/prettier/index.js +11 -1
- package/dist/remarklint/index.d.ts +16 -0
- package/dist/remarklint/index.js +24 -1
- package/dist/semantic-release/index.d.ts +2 -0
- package/dist/semantic-release/index.js +72 -3
- package/dist/stylelint/index.d.ts +36 -0
- package/dist/stylelint/index.js +11 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -92,72 +92,58 @@ public-hoist-pattern[]=*stylelint*
|
|
|
92
92
|
|
|
93
93
|
### ESlint
|
|
94
94
|
|
|
95
|
-
config can be found at
|
|
95
|
+
config can be found at [`.eslintrc.js`](/src/eslint/index.ts)
|
|
96
96
|
|
|
97
97
|
```js
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
module.exports = require('@lobehub/lint/dist/eslint');
|
|
98
|
+
module.exports = require('@lobehub/lint').eslint;
|
|
101
99
|
```
|
|
102
100
|
|
|
103
101
|
### Stylelint
|
|
104
102
|
|
|
105
|
-
config can be found at
|
|
103
|
+
config can be found at [`.stylelintrc.js`](/src/stylelint/index.ts)
|
|
106
104
|
|
|
107
105
|
```js
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
module.exports = require('@lobehub/lint/dist/stylelint');
|
|
106
|
+
module.exports = require('@lobehub/lint').stylelint;
|
|
111
107
|
```
|
|
112
108
|
|
|
113
109
|
### Commitlint
|
|
114
110
|
|
|
115
|
-
config can be found at
|
|
111
|
+
config can be found at [`.commitlintrc.js`](/src/commitlint/index.ts)
|
|
116
112
|
|
|
117
113
|
```js
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
module.exports = require('@lobehub/lint/dist/commitlint');
|
|
114
|
+
module.exports = require('@lobehub/lint').commitlint;
|
|
121
115
|
```
|
|
122
116
|
|
|
123
117
|
### Changelog
|
|
124
118
|
|
|
125
|
-
config can be found at
|
|
119
|
+
config can be found at [`.changelogrc.js`](/src/changelog/index.ts)
|
|
126
120
|
|
|
127
121
|
```js
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
module.exports = require('@lobehub/lint/dist/changelog');
|
|
122
|
+
module.exports = require('@lobehub/lint').changelog;
|
|
131
123
|
```
|
|
132
124
|
|
|
133
125
|
### Remark
|
|
134
126
|
|
|
135
|
-
config can be found at
|
|
127
|
+
config can be found at [`.remarkrc.js`](/src/remarklint/index.ts)
|
|
136
128
|
|
|
137
129
|
```js
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
module.exports = require('@lobehub/lint/dist/remarklint');
|
|
130
|
+
module.exports = require('@lobehub/lint').remarklint;
|
|
141
131
|
```
|
|
142
132
|
|
|
143
133
|
### Prettier
|
|
144
134
|
|
|
145
|
-
config can be found at
|
|
135
|
+
config can be found at [`.prettierrc.js`](/src/prettier/index.ts)
|
|
146
136
|
|
|
147
137
|
```js
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
module.exports = require('@lobehub/lint/dist/prettier');
|
|
138
|
+
module.exports = require('@lobehub/lint').prettier;
|
|
151
139
|
```
|
|
152
140
|
|
|
153
141
|
### Semantic Release
|
|
154
142
|
|
|
155
|
-
config can be found at
|
|
143
|
+
config can be found at [`.releaserc.js`](/src/semantic-release/index.ts)
|
|
156
144
|
|
|
157
145
|
```js
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
module.exports = require('@lobehub/lint/dist/semantic-release');
|
|
146
|
+
module.exports = require('@lobehub/lint').semanticRelease;
|
|
161
147
|
```
|
|
162
148
|
|
|
163
149
|
<div align="right">
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
newlineTimestamp: boolean;
|
|
3
|
+
reduceHeadingLevel: boolean;
|
|
4
|
+
addBackToTop: boolean;
|
|
5
|
+
showSummary: boolean;
|
|
6
|
+
scopeDisplayName: {
|
|
7
|
+
'*': string;
|
|
8
|
+
};
|
|
9
|
+
customTypeMap: {
|
|
10
|
+
build: {
|
|
11
|
+
emojj: string;
|
|
12
|
+
};
|
|
13
|
+
chore: {
|
|
14
|
+
emojj: string;
|
|
15
|
+
};
|
|
16
|
+
ci: {
|
|
17
|
+
emojj: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
package/dist/changelog/index.js
CHANGED
|
@@ -1,13 +1,44 @@
|
|
|
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
|
+
|
|
1
19
|
// src/changelog/index.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
20
|
+
var changelog_exports = {};
|
|
21
|
+
__export(changelog_exports, {
|
|
22
|
+
default: () => changelog_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(changelog_exports);
|
|
25
|
+
var changelog_default = {
|
|
6
26
|
newlineTimestamp: true,
|
|
7
27
|
reduceHeadingLevel: true,
|
|
8
28
|
addBackToTop: true,
|
|
9
29
|
showSummary: true,
|
|
10
30
|
scopeDisplayName: {
|
|
11
31
|
"*": "misc"
|
|
32
|
+
},
|
|
33
|
+
customTypeMap: {
|
|
34
|
+
build: {
|
|
35
|
+
emojj: "📦"
|
|
36
|
+
},
|
|
37
|
+
chore: {
|
|
38
|
+
emojj: "🔧"
|
|
39
|
+
},
|
|
40
|
+
ci: {
|
|
41
|
+
emojj: "👷"
|
|
42
|
+
}
|
|
12
43
|
}
|
|
13
44
|
};
|
package/dist/commitlint/index.js
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
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
|
+
|
|
1
19
|
// src/commitlint/index.ts
|
|
2
|
-
|
|
3
|
-
|
|
20
|
+
var commitlint_exports = {};
|
|
21
|
+
__export(commitlint_exports, {
|
|
22
|
+
default: () => commitlint_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(commitlint_exports);
|
|
25
|
+
var commitlint_default = {
|
|
26
|
+
extends: ["gitmoji"],
|
|
27
|
+
rules: {
|
|
28
|
+
"footer-leading-blank": [0, "never"],
|
|
29
|
+
"header-max-length": [0, "never"]
|
|
30
|
+
}
|
|
4
31
|
};
|
package/dist/eslint/index.d.ts
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
extends: string[];
|
|
3
|
+
plugins: string[];
|
|
4
|
+
rules: {
|
|
5
|
+
'simple-import-sort/exports': string;
|
|
6
|
+
'import/first': string;
|
|
7
|
+
'import/newline-after-import': string;
|
|
8
|
+
'import/no-duplicates': string;
|
|
9
|
+
'typescript-sort-keys/interface': string;
|
|
10
|
+
'typescript-sort-keys/string-enum': string;
|
|
11
|
+
'react/jsx-sort-props': string;
|
|
12
|
+
'react/jsx-no-useless-fragment': string;
|
|
13
|
+
'no-unused-vars': string;
|
|
14
|
+
'unused-imports/no-unused-imports': string;
|
|
15
|
+
'unused-imports/no-unused-vars': (string | {
|
|
16
|
+
vars: string;
|
|
17
|
+
varsIgnorePattern: string;
|
|
18
|
+
args: string;
|
|
19
|
+
argsIgnorePattern: string;
|
|
20
|
+
})[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
package/dist/eslint/index.js
CHANGED
|
@@ -4,6 +4,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
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
|
+
};
|
|
7
11
|
var __copyProps = (to, from, except, desc) => {
|
|
8
12
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
13
|
for (let key of __getOwnPropNames(from))
|
|
@@ -20,9 +24,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
28
|
|
|
24
29
|
// src/eslint/index.ts
|
|
25
|
-
|
|
30
|
+
var eslint_exports = {};
|
|
31
|
+
__export(eslint_exports, {
|
|
32
|
+
default: () => eslint_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(eslint_exports);
|
|
35
|
+
var eslint_default = {
|
|
26
36
|
extends: [require.resolve("@umijs/lint/dist/config/eslint")],
|
|
27
37
|
plugins: ["simple-import-sort", "import", "typescript-sort-keys", "unused-imports"],
|
|
28
38
|
rules: {
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as changelog } from './changelog';
|
|
2
|
+
export { default as commitlint } from './commitlint';
|
|
3
|
+
export { default as eslint } from './eslint';
|
|
4
|
+
export { default as prettier } from './prettier';
|
|
5
|
+
export { default as remarklint } from './remarklint';
|
|
6
|
+
export { default as semanticRelease } from './semantic-release';
|
|
7
|
+
export { default as stylelint } from './stylelint';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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/index.ts
|
|
30
|
+
var src_exports = {};
|
|
31
|
+
__export(src_exports, {
|
|
32
|
+
changelog: () => import_changelog.default,
|
|
33
|
+
commitlint: () => import_commitlint.default,
|
|
34
|
+
eslint: () => import_eslint.default,
|
|
35
|
+
prettier: () => import_prettier.default,
|
|
36
|
+
remarklint: () => import_remarklint.default,
|
|
37
|
+
semanticRelease: () => import_semantic_release.default,
|
|
38
|
+
stylelint: () => import_stylelint.default
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(src_exports);
|
|
41
|
+
var import_changelog = __toESM(require("./changelog"));
|
|
42
|
+
var import_commitlint = __toESM(require("./commitlint"));
|
|
43
|
+
var import_eslint = __toESM(require("./eslint"));
|
|
44
|
+
var import_prettier = __toESM(require("./prettier"));
|
|
45
|
+
var import_remarklint = __toESM(require("./remarklint"));
|
|
46
|
+
var import_semantic_release = __toESM(require("./semantic-release"));
|
|
47
|
+
var import_stylelint = __toESM(require("./stylelint"));
|
|
48
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
+
0 && (module.exports = {
|
|
50
|
+
changelog,
|
|
51
|
+
commitlint,
|
|
52
|
+
eslint,
|
|
53
|
+
prettier,
|
|
54
|
+
remarklint,
|
|
55
|
+
semanticRelease,
|
|
56
|
+
stylelint
|
|
57
|
+
});
|
package/dist/prettier/index.d.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
plugins: string[];
|
|
3
|
+
printWidth: number;
|
|
4
|
+
proseWrap: string;
|
|
5
|
+
singleQuote: boolean;
|
|
6
|
+
trailingComma: string;
|
|
7
|
+
importOrderSeparation: boolean;
|
|
8
|
+
importOrderSortSpecifiers: boolean;
|
|
9
|
+
importOrder: string[];
|
|
10
|
+
overrides: {
|
|
11
|
+
files: string;
|
|
12
|
+
options: {
|
|
13
|
+
proseWrap: string;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
package/dist/prettier/index.js
CHANGED
|
@@ -4,6 +4,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
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
|
+
};
|
|
7
11
|
var __copyProps = (to, from, except, desc) => {
|
|
8
12
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
13
|
for (let key of __getOwnPropNames(from))
|
|
@@ -20,9 +24,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
28
|
|
|
24
29
|
// src/prettier/index.ts
|
|
25
|
-
|
|
30
|
+
var prettier_exports = {};
|
|
31
|
+
__export(prettier_exports, {
|
|
32
|
+
default: () => prettier_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(prettier_exports);
|
|
35
|
+
var prettier_default = {
|
|
26
36
|
plugins: [
|
|
27
37
|
require.resolve("prettier-plugin-organize-imports"),
|
|
28
38
|
require.resolve("prettier-plugin-packagejson"),
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
plugins: (string | (string | boolean)[] | (string | {
|
|
3
|
+
heading: string;
|
|
4
|
+
maxDepth: number;
|
|
5
|
+
})[] | (string | {
|
|
6
|
+
checkBlanks: boolean;
|
|
7
|
+
})[])[];
|
|
8
|
+
settings: {
|
|
9
|
+
bullet: string;
|
|
10
|
+
fences: boolean;
|
|
11
|
+
listItemIndent: number;
|
|
12
|
+
rule: string;
|
|
13
|
+
tightDefinitions: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
package/dist/remarklint/index.js
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
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
|
+
|
|
1
19
|
// src/remarklint/index.ts
|
|
2
|
-
|
|
20
|
+
var remarklint_exports = {};
|
|
21
|
+
__export(remarklint_exports, {
|
|
22
|
+
default: () => remarklint_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(remarklint_exports);
|
|
25
|
+
var remarklint_default = {
|
|
3
26
|
plugins: [
|
|
4
27
|
"remark-gfm",
|
|
5
28
|
"remark-frontmatter",
|
|
@@ -1,4 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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;
|
|
4
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
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(semantic_release_exports);
|
|
25
|
+
var { createConfig } = require("semantic-release-config-gitmoji/lib/createConfig");
|
|
26
|
+
var semantic_release_default = createConfig({
|
|
27
|
+
changelogTitle: `<a name="readme-top"></a>
|
|
28
|
+
|
|
29
|
+
# Changelog`,
|
|
30
|
+
releaseRules: [
|
|
31
|
+
{
|
|
32
|
+
type: "feat",
|
|
33
|
+
release: "minor"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: "fix",
|
|
37
|
+
release: "patch"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: "perf",
|
|
41
|
+
release: "patch"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: "style",
|
|
45
|
+
release: "patch"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "refactor",
|
|
49
|
+
release: "patch"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: "build",
|
|
53
|
+
release: "patch"
|
|
54
|
+
},
|
|
55
|
+
{ type: "docs", scope: "README", release: "patch" },
|
|
56
|
+
{ type: "docs", scope: "README.md", release: "patch" },
|
|
57
|
+
{ type: "docs", release: false },
|
|
58
|
+
{
|
|
59
|
+
type: "BREAKING CHANGE",
|
|
60
|
+
release: "major"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
scope: "BREAKING CHANGE",
|
|
64
|
+
release: "major"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
subject: "*BREAKING CHANGE*",
|
|
68
|
+
release: "major"
|
|
69
|
+
},
|
|
70
|
+
{ subject: "*force release*", release: "patch" },
|
|
71
|
+
{ subject: "*skip release*", release: false }
|
|
72
|
+
]
|
|
73
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
extends: string[];
|
|
3
|
+
plugins: string[];
|
|
4
|
+
overrides: ({
|
|
5
|
+
files: string[];
|
|
6
|
+
plugins: string[];
|
|
7
|
+
customSyntax: string;
|
|
8
|
+
rules: {
|
|
9
|
+
'function-no-unknown': null;
|
|
10
|
+
'at-rule-no-unknown': null;
|
|
11
|
+
'color-no-invalid-hex': boolean;
|
|
12
|
+
'less/color-no-invalid-hex': boolean;
|
|
13
|
+
'value-no-vendor-prefix'?: undefined;
|
|
14
|
+
'property-no-vendor-prefix'?: undefined;
|
|
15
|
+
'no-empty-source'?: undefined;
|
|
16
|
+
'no-missing-end-of-source-newline'?: undefined;
|
|
17
|
+
'no-invalid-double-slash-comments'?: undefined;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
files: string[];
|
|
21
|
+
customSyntax: string;
|
|
22
|
+
rules: {
|
|
23
|
+
'value-no-vendor-prefix': boolean;
|
|
24
|
+
'property-no-vendor-prefix': boolean;
|
|
25
|
+
'no-empty-source': null;
|
|
26
|
+
'no-missing-end-of-source-newline': null;
|
|
27
|
+
'no-invalid-double-slash-comments': null;
|
|
28
|
+
'function-no-unknown'?: undefined;
|
|
29
|
+
'at-rule-no-unknown'?: undefined;
|
|
30
|
+
'color-no-invalid-hex'?: undefined;
|
|
31
|
+
'less/color-no-invalid-hex'?: undefined;
|
|
32
|
+
};
|
|
33
|
+
plugins?: undefined;
|
|
34
|
+
})[];
|
|
35
|
+
};
|
|
36
|
+
export default _default;
|
package/dist/stylelint/index.js
CHANGED
|
@@ -4,6 +4,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
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
|
+
};
|
|
7
11
|
var __copyProps = (to, from, except, desc) => {
|
|
8
12
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
13
|
for (let key of __getOwnPropNames(from))
|
|
@@ -20,9 +24,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
28
|
|
|
24
29
|
// src/stylelint/index.ts
|
|
25
|
-
|
|
30
|
+
var stylelint_exports = {};
|
|
31
|
+
__export(stylelint_exports, {
|
|
32
|
+
default: () => stylelint_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(stylelint_exports);
|
|
35
|
+
var stylelint_default = {
|
|
26
36
|
extends: [
|
|
27
37
|
"stylelint-config-recommended",
|
|
28
38
|
require.resolve("@umijs/lint/dist/config/stylelint"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"homepage": "https://github.com/lobehub/lobe-lint",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/lobehub/lobe-lint/issues/new"
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"types": "dist/index.d.ts",
|
|
17
17
|
"files": [
|
|
18
|
-
"compiled",
|
|
19
18
|
"dist"
|
|
20
19
|
],
|
|
21
20
|
"dependencies": {
|
|
@@ -35,6 +34,7 @@
|
|
|
35
34
|
"prettier-plugin-sort-json": "latest",
|
|
36
35
|
"remark-frontmatter": "latest",
|
|
37
36
|
"remark-gfm": "latest",
|
|
37
|
+
"remark-lint": "latest",
|
|
38
38
|
"remark-lint-checkbox-content-indent": "latest",
|
|
39
39
|
"remark-lint-frontmatter-schema": "latest",
|
|
40
40
|
"remark-lint-heading-whitespace": "latest",
|