@lobehub/lint 1.0.0 → 1.0.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 +13 -9
- package/dist/prettier/index.js +0 -6
- package/dist/stylelint/index.js +2 -1
- package/package.json +1 -2
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
|
|
7
|
+
<h1>Lobe Lint</h1>
|
|
8
8
|
|
|
9
9
|
ESlint config, Prettier config, Remark config for LobeHub
|
|
10
10
|
|
|
@@ -55,7 +55,7 @@ ESlint config, Prettier config, Remark config for LobeHub
|
|
|
55
55
|
To install Lobe Lint, run the following command:
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
pnpm add lobehub/lint -D
|
|
58
|
+
pnpm add @lobehub/lint -D
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
<div align="right">
|
|
@@ -71,7 +71,9 @@ pnpm add lobehub/lint -D
|
|
|
71
71
|
config can be found at `./src/eslint/index.ts`
|
|
72
72
|
|
|
73
73
|
```js
|
|
74
|
-
|
|
74
|
+
// .eslintrc.js
|
|
75
|
+
|
|
76
|
+
module.exports = require('@lobehub/lint/dist/eslint');
|
|
75
77
|
```
|
|
76
78
|
|
|
77
79
|
### Stylelint
|
|
@@ -79,7 +81,9 @@ module.exports = require('lobehub/lint/dist/eslint');
|
|
|
79
81
|
config can be found at `./src/stylelint/index.ts`
|
|
80
82
|
|
|
81
83
|
```js
|
|
82
|
-
|
|
84
|
+
// .stylelintrc.js
|
|
85
|
+
|
|
86
|
+
module.exports = require('@lobehub/lint/dist/stylelint');
|
|
83
87
|
```
|
|
84
88
|
|
|
85
89
|
### Commitlint
|
|
@@ -89,7 +93,7 @@ config can be found at `./src/commitlint/index.ts`
|
|
|
89
93
|
```js
|
|
90
94
|
// .commitlintrc.js
|
|
91
95
|
|
|
92
|
-
module.exports = require('lobehub/lint/dist/commitlint');
|
|
96
|
+
module.exports = require('@lobehub/lint/dist/commitlint');
|
|
93
97
|
```
|
|
94
98
|
|
|
95
99
|
### Changelog
|
|
@@ -99,7 +103,7 @@ config can be found at `./src/changelog/index.ts`
|
|
|
99
103
|
```js
|
|
100
104
|
// .changelogrc.js
|
|
101
105
|
|
|
102
|
-
module.exports = require('lobehub/lint/dist/commitlint');
|
|
106
|
+
module.exports = require('@lobehub/lint/dist/commitlint');
|
|
103
107
|
```
|
|
104
108
|
|
|
105
109
|
### Remark
|
|
@@ -109,7 +113,7 @@ config can be found at `./src/remarklint/index.ts`
|
|
|
109
113
|
```js
|
|
110
114
|
// .remarkrc.js
|
|
111
115
|
|
|
112
|
-
module.exports = require('lobehub/lint/dist/remarklint');
|
|
116
|
+
module.exports = require('@lobehub/lint/dist/remarklint');
|
|
113
117
|
```
|
|
114
118
|
|
|
115
119
|
### Prettier
|
|
@@ -119,7 +123,7 @@ config can be found at `./src/prettier/index.ts`
|
|
|
119
123
|
```js
|
|
120
124
|
// .prettierrc.js
|
|
121
125
|
|
|
122
|
-
module.exports = require('lobehub/lint/dist/prettier');
|
|
126
|
+
module.exports = require('@lobehub/lint/dist/prettier');
|
|
123
127
|
```
|
|
124
128
|
|
|
125
129
|
### Semantic Release
|
|
@@ -129,7 +133,7 @@ config can be found at `./src/semantic-release/index.ts`
|
|
|
129
133
|
```js
|
|
130
134
|
// .releaserc.js
|
|
131
135
|
|
|
132
|
-
module.exports = require('lobehub/lint/dist/semantic-release');
|
|
136
|
+
module.exports = require('@lobehub/lint/dist/semantic-release');
|
|
133
137
|
```
|
|
134
138
|
|
|
135
139
|
<div align="right">
|
package/dist/prettier/index.js
CHANGED
package/dist/stylelint/index.js
CHANGED
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lint",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"homepage": "https://github.com/lobehub/lint",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/lobehub/lint/issues/new"
|
|
@@ -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",
|