@lobehub/lint 1.17.0 → 1.18.1
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
CHANGED
|
@@ -10,19 +10,21 @@
|
|
|
10
10
|
|
|
11
11
|
ESlint config, Prettier config, Remark config for LobeHub
|
|
12
12
|
|
|
13
|
-
[Changelog](./CHANGELOG.md) · [Report Bug][issues-
|
|
13
|
+
[Changelog](./CHANGELOG.md) · [Report Bug][issues-link] · [Request Feature][issues-link]
|
|
14
14
|
|
|
15
15
|
<!-- SHIELD GROUP -->
|
|
16
16
|
|
|
17
|
-
[![
|
|
18
|
-
![][
|
|
19
|
-
[![
|
|
20
|
-
[![
|
|
21
|
-
[![
|
|
22
|
-
[![
|
|
23
|
-
[![
|
|
24
|
-
[![
|
|
25
|
-
[![
|
|
17
|
+
[![][npm-release-shield]][npm-release-link]
|
|
18
|
+
[![][discord-shield]][discord-link]
|
|
19
|
+
[![][npm-downloads-shield]][npm-downloads-link]
|
|
20
|
+
[![][github-releasedate-shield]][github-releasedate-link]
|
|
21
|
+
[![][github-action-test-shield]][github-action-test-link]
|
|
22
|
+
[![][github-action-release-shield]][github-action-release-link]<br/>
|
|
23
|
+
[![][github-contributors-shield]][github-contributors-link]
|
|
24
|
+
[![][github-forks-shield]][github-forks-link]
|
|
25
|
+
[![][github-stars-shield]][github-stars-link]
|
|
26
|
+
[![][github-issues-shield]][github-issues-link]
|
|
27
|
+
[![][github-license-shield]][github-license-link]
|
|
26
28
|
|
|
27
29
|
</div>
|
|
28
30
|
|
|
@@ -34,9 +36,7 @@ ESlint config, Prettier config, Remark config for LobeHub
|
|
|
34
36
|
#### TOC
|
|
35
37
|
|
|
36
38
|
- [📦 Installation](#-installation)
|
|
37
|
-
|
|
38
39
|
- [🤯 Usage](#-usage)
|
|
39
|
-
|
|
40
40
|
- [.npmrc](#npmrc)
|
|
41
41
|
- [ESlint](#eslint)
|
|
42
42
|
- [Stylelint](#stylelint)
|
|
@@ -45,9 +45,7 @@ ESlint config, Prettier config, Remark config for LobeHub
|
|
|
45
45
|
- [Remark](#remark)
|
|
46
46
|
- [Prettier](#prettier)
|
|
47
47
|
- [Semantic Release](#semantic-release)
|
|
48
|
-
|
|
49
48
|
- [⌨️ Local Development](#️-local-development)
|
|
50
|
-
|
|
51
49
|
- [🤝 Contributing](#-contributing)
|
|
52
50
|
|
|
53
51
|
####
|
|
@@ -58,16 +56,18 @@ ESlint config, Prettier config, Remark config for LobeHub
|
|
|
58
56
|
|
|
59
57
|
To install Lobe Lint, run the following command:
|
|
60
58
|
|
|
59
|
+
[![][bun-shield]][bun-link]
|
|
60
|
+
|
|
61
61
|
```bash
|
|
62
|
-
|
|
62
|
+
$ bun add @lobehub/lint -D
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
To use template ignore files, run the following command:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.eslintignore
|
|
69
|
-
curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.gitignore
|
|
70
|
-
curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.prettierignore
|
|
68
|
+
$ curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.eslintignore
|
|
69
|
+
$ curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.gitignore
|
|
70
|
+
$ curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.prettierignore
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
<div align="right">
|
|
@@ -156,17 +156,17 @@ module.exports = require('@lobehub/lint').semanticRelease;
|
|
|
156
156
|
|
|
157
157
|
## ⌨️ Local Development
|
|
158
158
|
|
|
159
|
-
You can use
|
|
159
|
+
You can use Github Codespaces for online development:
|
|
160
160
|
|
|
161
|
-
[![
|
|
161
|
+
[![][codespaces-shield]][codespaces-link]
|
|
162
162
|
|
|
163
163
|
Or clone it for local development:
|
|
164
164
|
|
|
165
165
|
```bash
|
|
166
166
|
$ git clone https://github.com/lobehub/lobe-lint.git
|
|
167
167
|
$ cd lobehub/lint
|
|
168
|
-
$
|
|
169
|
-
$
|
|
168
|
+
$ bun install
|
|
169
|
+
$ bun start
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
<div align="right">
|
|
@@ -177,24 +177,11 @@ $ npm start
|
|
|
177
177
|
|
|
178
178
|
## 🤝 Contributing
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
> 📊 Total: <kbd>**4**</kbd>
|
|
180
|
+
Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub [Issues][github-issues-link] to get stuck in to show us what you’re made of.
|
|
183
181
|
|
|
184
|
-
|
|
185
|
-
<img src="https://avatars.githubusercontent.com/u/17870709?v=4" width="50" />
|
|
186
|
-
</a>
|
|
187
|
-
<a href="https://github.com/actions-user" title="actions-user">
|
|
188
|
-
<img src="https://avatars.githubusercontent.com/u/65916846?v=4" width="50" />
|
|
189
|
-
</a>
|
|
190
|
-
<a href="https://github.com/arvinxx" title="arvinxx">
|
|
191
|
-
<img src="https://avatars.githubusercontent.com/u/28616219?v=4" width="50" />
|
|
192
|
-
</a>
|
|
193
|
-
<a href="https://github.com/apps/dependabot" title="dependabot[bot]">
|
|
194
|
-
<img src="https://avatars.githubusercontent.com/in/29110?v=4" width="50" />
|
|
195
|
-
</a>
|
|
182
|
+
[![][pr-welcome-shield]][pr-welcome-link]
|
|
196
183
|
|
|
197
|
-
|
|
184
|
+
[![][contributors-contrib]][contributors-url]
|
|
198
185
|
|
|
199
186
|
<div align="right">
|
|
200
187
|
|
|
@@ -206,28 +193,41 @@ $ npm start
|
|
|
206
193
|
|
|
207
194
|
#### 📝 License
|
|
208
195
|
|
|
209
|
-
Copyright © 2023
|
|
196
|
+
Copyright © 2023 [LobeHub][profile-link]. <br />
|
|
210
197
|
This project is [MIT](./LICENSE) licensed.
|
|
211
198
|
|
|
212
199
|
<!-- LINK GROUP -->
|
|
213
200
|
|
|
214
201
|
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
|
|
215
|
-
[
|
|
216
|
-
[
|
|
217
|
-
[
|
|
218
|
-
[
|
|
219
|
-
[contributors-
|
|
202
|
+
[bun-link]: https://bun.sh
|
|
203
|
+
[bun-shield]: https://img.shields.io/badge/-speedup%20with%20bun-black?logo=bun&style=for-the-badge
|
|
204
|
+
[codespaces-link]: https://codespaces.new/lobehub/lobe-lint
|
|
205
|
+
[codespaces-shield]: https://github.com/codespaces/badge.svg
|
|
206
|
+
[contributors-contrib]: https://contrib.rocks/image?repo=lobehub/lobe-lint
|
|
220
207
|
[contributors-url]: https://github.com/lobehub/lobe-lint/graphs/contributors
|
|
221
|
-
[
|
|
222
|
-
[
|
|
223
|
-
[
|
|
224
|
-
[
|
|
225
|
-
[
|
|
226
|
-
[
|
|
227
|
-
[
|
|
228
|
-
[
|
|
229
|
-
[
|
|
230
|
-
[
|
|
231
|
-
[
|
|
232
|
-
[
|
|
233
|
-
[
|
|
208
|
+
[discord-link]: https://discord.gg/AYFPHvv2jT
|
|
209
|
+
[discord-shield]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
|
|
210
|
+
[github-action-release-link]: https://github.com/lobehub/lobe-lint/actions/workflows/release.yml
|
|
211
|
+
[github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-lint/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
|
|
212
|
+
[github-action-test-link]: https://github.com/lobehub/lobe-lint/actions/workflows/test.yml
|
|
213
|
+
[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-lint/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
|
|
214
|
+
[github-contributors-link]: https://github.com/lobehub/lobe-lint/graphs/contributors
|
|
215
|
+
[github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-lint?color=c4f042&labelColor=black&style=flat-square
|
|
216
|
+
[github-forks-link]: https://github.com/lobehub/lobe-lint/network/members
|
|
217
|
+
[github-forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-lint?color=8ae8ff&labelColor=black&style=flat-square
|
|
218
|
+
[github-issues-link]: https://github.com/lobehub/lobe-lint/issues
|
|
219
|
+
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-lint?color=ff80eb&labelColor=black&style=flat-square
|
|
220
|
+
[github-license-link]: https://github.com/lobehub/lobe-lint/blob/master/LICENSE
|
|
221
|
+
[github-license-shield]: https://img.shields.io/github/license/lobehub/lobe-lint?color=white&labelColor=black&style=flat-square
|
|
222
|
+
[github-releasedate-link]: https://github.com/lobehub/lobe-lint/releases
|
|
223
|
+
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-lint?labelColor=black&style=flat-square
|
|
224
|
+
[github-stars-link]: https://github.com/lobehub/lobe-lint/network/stargazers
|
|
225
|
+
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-lint?color=ffcb47&labelColor=black&style=flat-square
|
|
226
|
+
[issues-link]: https://github.com/lobehub/lobe-lint/issues/new/choose
|
|
227
|
+
[npm-downloads-link]: https://www.npmjs.com/package/@lobehub/lint
|
|
228
|
+
[npm-downloads-shield]: https://img.shields.io/npm/dt/@lobehub/lint?labelColor=black&style=flat-square
|
|
229
|
+
[npm-release-link]: https://www.npmjs.com/package/@lobehub/lint
|
|
230
|
+
[npm-release-shield]: https://img.shields.io/npm/v/@lobehub/lint?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
|
|
231
|
+
[pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
|
|
232
|
+
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
|
|
233
|
+
[profile-link]: https://github.com/lobehub
|
package/dist/remarklint/index.js
CHANGED
|
@@ -22,11 +22,16 @@ __export(remarklint_exports, {
|
|
|
22
22
|
default: () => remarklint_default
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(remarklint_exports);
|
|
25
|
+
var replaceNBSP = (str) => {
|
|
26
|
+
return str.replaceAll(" ", " ");
|
|
27
|
+
};
|
|
25
28
|
var remarklint_default = {
|
|
26
29
|
$schema: "https://json.schemastore.org/remarkrc",
|
|
27
30
|
plugins: [
|
|
28
31
|
"remark-gfm",
|
|
29
32
|
"remark-frontmatter",
|
|
33
|
+
"remark-pangu",
|
|
34
|
+
["remark-textr", { plugins: [replaceNBSP] }],
|
|
30
35
|
// ----- Plugin -----------------------------------------------------------
|
|
31
36
|
"remark-sort-definitions",
|
|
32
37
|
["remark-toc", { heading: "TOC", maxDepth: 3 }],
|
|
@@ -6,7 +6,7 @@ declare const _default: {
|
|
|
6
6
|
branches?: import("semantic-release").BranchSpec | readonly import("semantic-release").BranchSpec[] | undefined;
|
|
7
7
|
repositoryUrl?: string | undefined;
|
|
8
8
|
tagFormat?: string | undefined;
|
|
9
|
-
plugins?: readonly import("semantic-release").PluginSpec[] | undefined;
|
|
9
|
+
plugins?: readonly import("semantic-release").PluginSpec<any>[] | undefined;
|
|
10
10
|
dryRun?: boolean | undefined;
|
|
11
11
|
ci?: boolean | undefined;
|
|
12
12
|
$schema: string;
|
|
@@ -4,7 +4,7 @@ declare const _default: {
|
|
|
4
4
|
branches?: import("semantic-release").BranchSpec | readonly import("semantic-release").BranchSpec[] | undefined;
|
|
5
5
|
repositoryUrl?: string | undefined;
|
|
6
6
|
tagFormat?: string | undefined;
|
|
7
|
-
plugins?: readonly import("semantic-release").PluginSpec[] | undefined;
|
|
7
|
+
plugins?: readonly import("semantic-release").PluginSpec<any>[] | undefined;
|
|
8
8
|
dryRun?: boolean | undefined;
|
|
9
9
|
ci?: boolean | undefined;
|
|
10
10
|
$schema: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.1",
|
|
4
4
|
"homepage": "https://github.com/lobehub/lobe-lint",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/lobehub/lobe-lint/issues/new"
|
|
@@ -18,64 +18,66 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@trivago/prettier-plugin-sort-imports": "
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "
|
|
23
|
-
"@typescript-eslint/parser": "
|
|
24
|
-
"@umijs/babel-preset-umi": "
|
|
25
|
-
"@umijs/lint": "
|
|
26
|
-
"commitlint-config-gitmoji": "
|
|
27
|
-
"eslint-config-prettier": "
|
|
28
|
-
"eslint-import-resolver-alias": "
|
|
29
|
-
"eslint-import-resolver-typescript": "
|
|
30
|
-
"eslint-plugin-import": "
|
|
31
|
-
"eslint-plugin-jest": "
|
|
32
|
-
"eslint-plugin-react": "
|
|
33
|
-
"eslint-plugin-react-hooks": "
|
|
34
|
-
"eslint-plugin-simple-import-sort": "
|
|
35
|
-
"eslint-plugin-sort-keys-fix": "
|
|
36
|
-
"eslint-plugin-typescript-sort-keys": "
|
|
37
|
-
"eslint-plugin-unicorn": "
|
|
38
|
-
"eslint-plugin-unused-imports": "
|
|
39
|
-
"postcss-less": "
|
|
40
|
-
"postcss-styled-syntax": "
|
|
41
|
-
"prettier-plugin-organize-imports": "
|
|
42
|
-
"prettier-plugin-packagejson": "
|
|
43
|
-
"prettier-plugin-sh": "
|
|
44
|
-
"prettier-plugin-sort-json": "
|
|
45
|
-
"remark-frontmatter": "
|
|
46
|
-
"remark-gfm": "
|
|
47
|
-
"remark-lint": "
|
|
48
|
-
"remark-lint-checkbox-content-indent": "
|
|
49
|
-
"remark-lint-frontmatter-schema": "
|
|
50
|
-
"remark-lint-heading-whitespace": "
|
|
51
|
-
"remark-lint-linebreak-style": "
|
|
52
|
-
"remark-lint-list-item-indent": "
|
|
53
|
-
"remark-lint-list-item-spacing": "
|
|
54
|
-
"remark-lint-no-duplicate-headings-in-section": "
|
|
55
|
-
"remark-lint-no-empty-sections": "
|
|
56
|
-
"remark-lint-no-empty-url": "
|
|
57
|
-
"remark-lint-no-file-name-irregular-characters": "
|
|
58
|
-
"remark-lint-no-heading-indent": "
|
|
59
|
-
"remark-lint-no-heading-like-paragraph": "
|
|
60
|
-
"remark-lint-no-paragraph-content-indent": "
|
|
61
|
-
"remark-lint-no-reference-like-url": "
|
|
62
|
-
"remark-lint-no-shell-dollars": "
|
|
63
|
-
"remark-lint-no-tabs": "
|
|
64
|
-
"remark-lint-no-unneeded-full-reference-image": "
|
|
65
|
-
"remark-lint-no-unneeded-full-reference-link": "
|
|
66
|
-
"remark-lint-ordered-list-marker-value": "
|
|
67
|
-
"remark-lint-write-good": "
|
|
68
|
-
"remark-
|
|
69
|
-
"remark-preset-lint-
|
|
70
|
-
"remark-preset-lint-
|
|
71
|
-
"remark-
|
|
72
|
-
"remark-
|
|
73
|
-
"remark-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"stylelint-
|
|
78
|
-
"stylelint-
|
|
21
|
+
"@trivago/prettier-plugin-sort-imports": "^4",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^6",
|
|
23
|
+
"@typescript-eslint/parser": "^6",
|
|
24
|
+
"@umijs/babel-preset-umi": "^4",
|
|
25
|
+
"@umijs/lint": "^4",
|
|
26
|
+
"commitlint-config-gitmoji": "^2",
|
|
27
|
+
"eslint-config-prettier": "^9",
|
|
28
|
+
"eslint-import-resolver-alias": "^1",
|
|
29
|
+
"eslint-import-resolver-typescript": "^3",
|
|
30
|
+
"eslint-plugin-import": "^2",
|
|
31
|
+
"eslint-plugin-jest": "^27",
|
|
32
|
+
"eslint-plugin-react": "^7",
|
|
33
|
+
"eslint-plugin-react-hooks": "^4",
|
|
34
|
+
"eslint-plugin-simple-import-sort": "^10",
|
|
35
|
+
"eslint-plugin-sort-keys-fix": "^1",
|
|
36
|
+
"eslint-plugin-typescript-sort-keys": "^3",
|
|
37
|
+
"eslint-plugin-unicorn": "^48",
|
|
38
|
+
"eslint-plugin-unused-imports": "^3",
|
|
39
|
+
"postcss-less": "^6",
|
|
40
|
+
"postcss-styled-syntax": "^0.5",
|
|
41
|
+
"prettier-plugin-organize-imports": "^3",
|
|
42
|
+
"prettier-plugin-packagejson": "^2",
|
|
43
|
+
"prettier-plugin-sh": "^0.13",
|
|
44
|
+
"prettier-plugin-sort-json": "^3",
|
|
45
|
+
"remark-frontmatter": "^5",
|
|
46
|
+
"remark-gfm": "^3",
|
|
47
|
+
"remark-lint": "^9",
|
|
48
|
+
"remark-lint-checkbox-content-indent": "^4",
|
|
49
|
+
"remark-lint-frontmatter-schema": "^3",
|
|
50
|
+
"remark-lint-heading-whitespace": "^1",
|
|
51
|
+
"remark-lint-linebreak-style": "^3",
|
|
52
|
+
"remark-lint-list-item-indent": "^3",
|
|
53
|
+
"remark-lint-list-item-spacing": "^4",
|
|
54
|
+
"remark-lint-no-duplicate-headings-in-section": "^3",
|
|
55
|
+
"remark-lint-no-empty-sections": "^4",
|
|
56
|
+
"remark-lint-no-empty-url": "^3",
|
|
57
|
+
"remark-lint-no-file-name-irregular-characters": "^2",
|
|
58
|
+
"remark-lint-no-heading-indent": "^4",
|
|
59
|
+
"remark-lint-no-heading-like-paragraph": "^3",
|
|
60
|
+
"remark-lint-no-paragraph-content-indent": "^4",
|
|
61
|
+
"remark-lint-no-reference-like-url": "^3",
|
|
62
|
+
"remark-lint-no-shell-dollars": "^3",
|
|
63
|
+
"remark-lint-no-tabs": "^3",
|
|
64
|
+
"remark-lint-no-unneeded-full-reference-image": "^3",
|
|
65
|
+
"remark-lint-no-unneeded-full-reference-link": "^3",
|
|
66
|
+
"remark-lint-ordered-list-marker-value": "^3",
|
|
67
|
+
"remark-lint-write-good": "^1",
|
|
68
|
+
"remark-pangu": "^2",
|
|
69
|
+
"remark-preset-lint-consistent": "^5",
|
|
70
|
+
"remark-preset-lint-markdown-style-guide": "^5",
|
|
71
|
+
"remark-preset-lint-recommended": "^6",
|
|
72
|
+
"remark-remove-unused-definitions": "^1",
|
|
73
|
+
"remark-sort-definitions": "^1",
|
|
74
|
+
"remark-textr": "^5",
|
|
75
|
+
"remark-toc": "^9",
|
|
76
|
+
"semantic-release-config-gitmoji": "^1",
|
|
77
|
+
"stylelint-config-clean-order": "^5",
|
|
78
|
+
"stylelint-config-recommended": "^13",
|
|
79
|
+
"stylelint-less": "^2",
|
|
80
|
+
"stylelint-order": "^6"
|
|
79
81
|
},
|
|
80
82
|
"peerDependencies": {
|
|
81
83
|
"eslint": ">=8.42",
|