@lobehub/lint 1.0.0 → 1.1.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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <img width="160" src="https://raw.githubusercontent.com/lobehub/.github/main/profile/Logo.webp">
6
6
 
7
- <h1>Lobe-Lint</h1>
7
+ <h1>Lobe Lint</h1>
8
8
 
9
9
  ESlint config, Prettier config, Remark config for LobeHub
10
10
 
@@ -34,7 +34,8 @@ ESlint config, Prettier config, Remark config for LobeHub
34
34
 
35
35
  - [🤯 Usage](#-usage)
36
36
 
37
- - [Eslint](#eslint)
37
+ - [.npmrc](#npmrc)
38
+ - [ESlint](#eslint)
38
39
  - [Stylelint](#stylelint)
39
40
  - [Commitlint](#commitlint)
40
41
  - [Changelog](#changelog)
@@ -55,7 +56,7 @@ ESlint config, Prettier config, Remark config for LobeHub
55
56
  To install Lobe Lint, run the following command:
56
57
 
57
58
  ```bash
58
- pnpm add lobehub/lint -D
59
+ pnpm add @lobehub/lint -D
59
60
  ```
60
61
 
61
62
  <div align="right">
@@ -66,12 +67,27 @@ pnpm add lobehub/lint -D
66
67
 
67
68
  ## 🤯 Usage
68
69
 
69
- ### Eslint
70
+ ### .npmrc
71
+
72
+ ```text
73
+ public-hoist-pattern[]=*@umijs/lint*
74
+ public-hoist-pattern[]=*remark*
75
+ public-hoist-pattern[]=*eslint*
76
+ public-hoist-pattern[]=*stylelint*
77
+ public-hoist-pattern[]=*prettier*
78
+ public-hoist-pattern[]=*commitlint*
79
+ public-hoist-pattern[]=*postcss*
80
+ public-hoist-pattern[]=*semantic-release*
81
+ ```
82
+
83
+ ### ESlint
70
84
 
71
85
  config can be found at `./src/eslint/index.ts`
72
86
 
73
87
  ```js
74
- module.exports = require('lobehub/lint/dist/eslint');
88
+ // .eslintrc.js
89
+
90
+ module.exports = require('@lobehub/lint/dist/eslint');
75
91
  ```
76
92
 
77
93
  ### Stylelint
@@ -79,7 +95,9 @@ module.exports = require('lobehub/lint/dist/eslint');
79
95
  config can be found at `./src/stylelint/index.ts`
80
96
 
81
97
  ```js
82
- module.exports = require('lobehub/lint/dist/stylelint');
98
+ // .stylelintrc.js
99
+
100
+ module.exports = require('@lobehub/lint/dist/stylelint');
83
101
  ```
84
102
 
85
103
  ### Commitlint
@@ -89,7 +107,7 @@ config can be found at `./src/commitlint/index.ts`
89
107
  ```js
90
108
  // .commitlintrc.js
91
109
 
92
- module.exports = require('lobehub/lint/dist/commitlint');
110
+ module.exports = require('@lobehub/lint/dist/commitlint');
93
111
  ```
94
112
 
95
113
  ### Changelog
@@ -99,7 +117,7 @@ config can be found at `./src/changelog/index.ts`
99
117
  ```js
100
118
  // .changelogrc.js
101
119
 
102
- module.exports = require('lobehub/lint/dist/commitlint');
120
+ module.exports = require('@lobehub/lint/dist/commitlint');
103
121
  ```
104
122
 
105
123
  ### Remark
@@ -109,7 +127,7 @@ config can be found at `./src/remarklint/index.ts`
109
127
  ```js
110
128
  // .remarkrc.js
111
129
 
112
- module.exports = require('lobehub/lint/dist/remarklint');
130
+ module.exports = require('@lobehub/lint/dist/remarklint');
113
131
  ```
114
132
 
115
133
  ### Prettier
@@ -119,7 +137,7 @@ config can be found at `./src/prettier/index.ts`
119
137
  ```js
120
138
  // .prettierrc.js
121
139
 
122
- module.exports = require('lobehub/lint/dist/prettier');
140
+ module.exports = require('@lobehub/lint/dist/prettier');
123
141
  ```
124
142
 
125
143
  ### Semantic Release
@@ -129,7 +147,7 @@ config can be found at `./src/semantic-release/index.ts`
129
147
  ```js
130
148
  // .releaserc.js
131
149
 
132
- module.exports = require('lobehub/lint/dist/semantic-release');
150
+ module.exports = require('@lobehub/lint/dist/semantic-release');
133
151
  ```
134
152
 
135
153
  <div align="right">
@@ -147,7 +165,7 @@ You can use Gitpod for online development:
147
165
  Or clone it for local development:
148
166
 
149
167
  ```bash
150
- $ git clone https://github.com/lobehub/lint.git
168
+ $ git clone https://github.com/lobehub/lobe-lint.git
151
169
  $ cd lobehub/lint
152
170
  $ npm install
153
171
  $ npm start
@@ -163,7 +181,7 @@ $ npm start
163
181
 
164
182
  <!-- CONTRIBUTION GROUP -->
165
183
 
166
- > 📊 Total: <kbd>**3**</kbd>
184
+ > 📊 Total: <kbd>**2**</kbd>
167
185
 
168
186
  <a href="https://github.com/canisminor1990" title="canisminor1990">
169
187
  <img src="https://avatars.githubusercontent.com/u/17870709?v=4" width="50" />
@@ -171,9 +189,6 @@ $ npm start
171
189
  <a href="https://github.com/actions-user" title="actions-user">
172
190
  <img src="https://avatars.githubusercontent.com/u/65916846?v=4" width="50" />
173
191
  </a>
174
- <a href="https://github.com/apps/dependabot" title="dependabot[bot]">
175
- <img src="https://avatars.githubusercontent.com/in/29110?v=4" width="50" />
176
- </a>
177
192
 
178
193
  <!-- CONTRIBUTION END -->
179
194
 
@@ -193,7 +208,7 @@ This project is [MIT](./LICENSE) licensed.
193
208
  <!-- LINK GROUP -->
194
209
 
195
210
  [profile-url]: https://github.com/canisminor1990
196
- [gitpod-url]: https://gitpod.io/#https://github.com/lobehub/lint
211
+ [gitpod-url]: https://gitpod.io/#https://github.com/lobehub/lobe-lint
197
212
 
198
213
  <!-- SHIELD LINK GROUP -->
199
214
 
@@ -206,35 +221,35 @@ This project is [MIT](./LICENSE) licensed.
206
221
 
207
222
  <!-- releaseDate -->
208
223
 
209
- [release-date-shield]: https://img.shields.io/github/release-date/lobehub/lint?style=flat
210
- [release-date-url]: https://github.com/lobehub/lint/releases
224
+ [release-date-shield]: https://img.shields.io/github/release-date/lobehub/lobe-lint?style=flat
225
+ [release-date-url]: https://github.com/lobehub/lobe-lint/releases
211
226
 
212
227
  <!-- ciTest -->
213
228
 
214
- [ci-test-shield]: https://github.com/lobehub/lint/workflows/Test%20CI/badge.svg
215
- [ci-test-url]: https://github.com/lobehub/lint/actions/workflows/test.yml
229
+ [ci-test-shield]: https://github.com/lobehub/lobe-lint/workflows/Test%20CI/badge.svg
230
+ [ci-test-url]: https://github.com/lobehub/lobe-lint/actions/workflows/test.yml
216
231
 
217
232
  <!-- ciRelease -->
218
233
 
219
- [ci-release-shield]: https://github.com/lobehub/lint/workflows/Build%20and%20Release/badge.svg
220
- [ci-release-url]: https://github.com/lobehub/lint/actions/workflows/release.yml
234
+ [ci-release-shield]: https://github.com/lobehub/lobe-lint/workflows/Build%20and%20Release/badge.svg
235
+ [ci-release-url]: https://github.com/lobehub/lobe-lint/actions/workflows/release.yml
221
236
 
222
237
  <!-- contributors -->
223
238
 
224
- [contributors-shield]: https://img.shields.io/github/contributors/lobehub/lint.svg?style=flat
225
- [contributors-url]: https://github.com/lobehub/lint/graphs/contributors
239
+ [contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-lint.svg?style=flat
240
+ [contributors-url]: https://github.com/lobehub/lobe-lint/graphs/contributors
226
241
 
227
242
  <!-- forks -->
228
243
 
229
- [forks-shield]: https://img.shields.io/github/forks/lobehub/lint.svg?style=flat
230
- [forks-url]: https://github.com/lobehub/lint/network/members
244
+ [forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-lint.svg?style=flat
245
+ [forks-url]: https://github.com/lobehub/lobe-lint/network/members
231
246
 
232
247
  <!-- stargazers -->
233
248
 
234
- [stargazers-shield]: https://img.shields.io/github/stars/lobehub/lint.svg?style=flat
235
- [stargazers-url]: https://github.com/lobehub/lint/stargazers
249
+ [stargazers-shield]: https://img.shields.io/github/stars/lobehub/lobe-lint.svg?style=flat
250
+ [stargazers-url]: https://github.com/lobehub/lobe-lint/stargazers
236
251
 
237
252
  <!-- issues -->
238
253
 
239
- [issues-shield]: https://img.shields.io/github/issues/lobehub/lint.svg?style=flat
240
- [issues-url]: https://github.com/lobehub/lint/issues/new/choose
254
+ [issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-lint.svg?style=flat
255
+ [issues-url]: https://github.com/lobehub/lobe-lint/issues/new/choose
@@ -42,12 +42,6 @@ module.exports = {
42
42
  options: {
43
43
  proseWrap: "preserve"
44
44
  }
45
- },
46
- {
47
- files: ["*.js", "*.jsx", "*.mjs", "*.cjs", "*.ts", "*.tsx"],
48
- options: {
49
- parser: require.resolve("prettier-sort-destructure")
50
- }
51
45
  }
52
46
  ]
53
47
  };
@@ -48,7 +48,8 @@ module.exports = {
48
48
  "value-no-vendor-prefix": true,
49
49
  "property-no-vendor-prefix": true,
50
50
  "no-empty-source": null,
51
- "no-missing-end-of-source-newline": null
51
+ "no-missing-end-of-source-newline": null,
52
+ "no-invalid-double-slash-comments": null
52
53
  }
53
54
  }
54
55
  ]
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@lobehub/lint",
3
- "version": "1.0.0",
4
- "homepage": "https://github.com/lobehub/lint",
3
+ "version": "1.1.0",
4
+ "homepage": "https://github.com/lobehub/lobe-lint",
5
5
  "bugs": {
6
- "url": "https://github.com/lobehub/lint/issues/new"
6
+ "url": "https://github.com/lobehub/lobe-lint/issues/new"
7
7
  },
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/lobehub/lint.git"
10
+ "url": "https://github.com/lobehub/lobe-lint.git"
11
11
  },
12
12
  "license": "MIT",
13
13
  "author": "canisminor1990 <i@canisminor.cc>",
@@ -32,7 +32,6 @@
32
32
  "prettier-plugin-organize-imports": "latest",
33
33
  "prettier-plugin-packagejson": "latest",
34
34
  "prettier-plugin-sort-json": "latest",
35
- "prettier-sort-destructure": "latest",
36
35
  "remark-frontmatter": "latest",
37
36
  "remark-gfm": "latest",
38
37
  "remark-lint-checkbox-content-indent": "latest",