@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-url] · [Request Feature][issues-url]
13
+ [Changelog](./CHANGELOG.md) · [Report Bug][issues-link] · [Request Feature][issues-link]
14
14
 
15
15
  <!-- SHIELD GROUP -->
16
16
 
17
- [![release][release-shield]][release-url]
18
- ![][release-download-shield]
19
- [![releaseDate][release-date-shield]][release-date-url]
20
- [![ciTest][ci-test-shield]][ci-test-url]
21
- [![ciRelease][ci-release-shield]][ci-release-url] <br/>
22
- [![contributors][contributors-shield]][contributors-url]
23
- [![forks][forks-shield]][forks-url]
24
- [![stargazers][stargazers-shield]][stargazers-url]
25
- [![issues][issues-shield]][issues-url]
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
- pnpm add @lobehub/lint -D
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 Gitpod for online development:
159
+ You can use Github Codespaces for online development:
160
160
 
161
- [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][gitpod-url]
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
- $ npm install
169
- $ npm start
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
- <!-- CONTRIBUTION GROUP -->
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
- <a href="https://github.com/canisminor1990" title="canisminor1990">
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
- <!-- CONTRIBUTION END -->
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 \~ present [LobeHub][profile-url]. <br />
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
- [ci-release-shield]: https://github.com/lobehub/lobe-lint/workflows/Build%20and%20Release/badge.svg
216
- [ci-release-url]: https://github.com/lobehub/lobe-lint/actions/workflows/release.yml
217
- [ci-test-shield]: https://github.com/lobehub/lobe-lint/workflows/Test%20CI/badge.svg
218
- [ci-test-url]: https://github.com/lobehub/lobe-lint/actions/workflows/test.yml
219
- [contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-lint.svg?style=flat
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
- [forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-lint.svg?style=flat
222
- [forks-url]: https://github.com/lobehub/lobe-lint/network/members
223
- [gitpod-url]: https://gitpod.io/#https://github.com/lobehub/lobe-lint
224
- [issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-lint.svg?style=flat
225
- [issues-url]: https://github.com/lobehub/lobe-lint/issues/new/choose
226
- [profile-url]: https://github.com/lobehub
227
- [release-date-shield]: https://img.shields.io/github/release-date/lobehub/lobe-lint?style=flat
228
- [release-date-url]: https://github.com/lobehub/lobe-lint/releases
229
- [release-download-shield]: https://img.shields.io/npm/dt/@lobehub/lint
230
- [release-shield]: https://img.shields.io/npm/v/@lobehub/lint?label=%F0%9F%A4%AF%20NPM
231
- [release-url]: https://www.npmjs.com/package/@lobehub/lint
232
- [stargazers-shield]: https://img.shields.io/github/stars/lobehub/lobe-lint.svg?style=flat
233
- [stargazers-url]: https://github.com/lobehub/lobe-lint/stargazers
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
@@ -1,6 +1,8 @@
1
1
  declare const _default: {
2
2
  $schema: string;
3
3
  plugins: (string | (string | boolean)[] | (string | {
4
+ plugins: ((str: string) => string)[];
5
+ })[] | (string | {
4
6
  heading: string;
5
7
  maxDepth: number;
6
8
  })[] | (string | {
@@ -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.17.0",
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": "latest",
22
- "@typescript-eslint/eslint-plugin": "latest",
23
- "@typescript-eslint/parser": "latest",
24
- "@umijs/babel-preset-umi": "latest",
25
- "@umijs/lint": "latest",
26
- "commitlint-config-gitmoji": "latest",
27
- "eslint-config-prettier": "latest",
28
- "eslint-import-resolver-alias": "latest",
29
- "eslint-import-resolver-typescript": "latest",
30
- "eslint-plugin-import": "latest",
31
- "eslint-plugin-jest": "latest",
32
- "eslint-plugin-react": "latest",
33
- "eslint-plugin-react-hooks": "latest",
34
- "eslint-plugin-simple-import-sort": "latest",
35
- "eslint-plugin-sort-keys-fix": "latest",
36
- "eslint-plugin-typescript-sort-keys": "latest",
37
- "eslint-plugin-unicorn": "latest",
38
- "eslint-plugin-unused-imports": "latest",
39
- "postcss-less": "latest",
40
- "postcss-styled-syntax": "latest",
41
- "prettier-plugin-organize-imports": "latest",
42
- "prettier-plugin-packagejson": "latest",
43
- "prettier-plugin-sh": "latest",
44
- "prettier-plugin-sort-json": "latest",
45
- "remark-frontmatter": "latest",
46
- "remark-gfm": "latest",
47
- "remark-lint": "latest",
48
- "remark-lint-checkbox-content-indent": "latest",
49
- "remark-lint-frontmatter-schema": "latest",
50
- "remark-lint-heading-whitespace": "latest",
51
- "remark-lint-linebreak-style": "latest",
52
- "remark-lint-list-item-indent": "latest",
53
- "remark-lint-list-item-spacing": "latest",
54
- "remark-lint-no-duplicate-headings-in-section": "latest",
55
- "remark-lint-no-empty-sections": "latest",
56
- "remark-lint-no-empty-url": "latest",
57
- "remark-lint-no-file-name-irregular-characters": "latest",
58
- "remark-lint-no-heading-indent": "latest",
59
- "remark-lint-no-heading-like-paragraph": "latest",
60
- "remark-lint-no-paragraph-content-indent": "latest",
61
- "remark-lint-no-reference-like-url": "latest",
62
- "remark-lint-no-shell-dollars": "latest",
63
- "remark-lint-no-tabs": "latest",
64
- "remark-lint-no-unneeded-full-reference-image": "latest",
65
- "remark-lint-no-unneeded-full-reference-link": "latest",
66
- "remark-lint-ordered-list-marker-value": "latest",
67
- "remark-lint-write-good": "latest",
68
- "remark-preset-lint-consistent": "latest",
69
- "remark-preset-lint-markdown-style-guide": "latest",
70
- "remark-preset-lint-recommended": "latest",
71
- "remark-remove-unused-definitions": "latest",
72
- "remark-sort-definitions": "latest",
73
- "remark-toc": "latest",
74
- "semantic-release-config-gitmoji": "latest",
75
- "stylelint-config-clean-order": "latest",
76
- "stylelint-config-recommended": "latest",
77
- "stylelint-less": "latest",
78
- "stylelint-order": "latest"
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",