@lobehub/lint 1.26.3 → 2.0.0-beta.2
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 +72 -154
- package/dist/index.cjs +93 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -8
- package/dist/index.js +9 -59
- package/package.json +34 -78
- package/dist/changelog/index.d.ts +0 -23
- package/dist/changelog/index.js +0 -46
- package/dist/commitlint/index.d.ts +0 -9
- package/dist/commitlint/index.js +0 -32
- package/dist/eslint/index.d.ts +0 -63
- package/dist/eslint/index.js +0 -108
- package/dist/prettier/index.d.ts +0 -27
- package/dist/prettier/index.js +0 -68
- package/dist/remarklint/index.d.ts +0 -21
- package/dist/remarklint/index.js +0 -77
- package/dist/remarklint/remarkGfmHighlight.d.ts +0 -1
- package/dist/remarklint/remarkGfmHighlight.js +0 -67
- package/dist/remarklint/remarkTextrPlugins.d.ts +0 -1
- package/dist/remarklint/remarkTextrPlugins.js +0 -31
- package/dist/semantic-release/index.d.ts +0 -14
- package/dist/semantic-release/index.js +0 -101
- package/dist/semantic-release/monorepo.d.ts +0 -12
- package/dist/semantic-release/monorepo.js +0 -30
- package/dist/stylelint/index.d.ts +0 -44
- package/dist/stylelint/index.js +0 -70
package/README.md
CHANGED
|
@@ -1,231 +1,149 @@
|
|
|
1
|
-
<a name="readme-top"></a
|
|
1
|
+
<a name="readme-top"></a>
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
2
4
|
|
|
3
5
|
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
|
|
4
6
|
<img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
|
|
5
7
|
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/triangular-ruler.webp">
|
|
6
8
|
|
|
7
|
-
<h1
|
|
8
|
-
|
|
9
|
-
ESlint config, Prettier config, Remark config for LobeHub
|
|
10
|
-
|
|
11
|
-
[Changelog](./CHANGELOG.md) · [Report Bug][issues-link] · [Request Feature][issues-link]
|
|
9
|
+
<h1>@lobehub/lint</h1>
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
Meta package that re-exports all LobeHub lint configurations
|
|
14
12
|
|
|
15
13
|
[![][npm-release-shield]][npm-release-link]
|
|
16
|
-
[![][discord-shield]][discord-link]
|
|
17
14
|
[![][npm-downloads-shield]][npm-downloads-link]
|
|
18
|
-
[![][github-releasedate-shield]][github-releasedate-link]
|
|
19
|
-
[![][github-action-test-shield]][github-action-test-link]
|
|
20
|
-
[![][github-action-release-shield]][github-action-release-link]<br/>
|
|
21
|
-
[![][github-contributors-shield]][github-contributors-link]
|
|
22
|
-
[![][github-forks-shield]][github-forks-link]
|
|
23
|
-
[![][github-stars-shield]][github-stars-link]
|
|
24
|
-
[![][github-issues-shield]][github-issues-link]
|
|
25
15
|
[![][github-license-shield]][github-license-link]
|
|
26
16
|
|
|
27
17
|
</div>
|
|
28
18
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<details>
|
|
32
|
-
<summary><kbd>Table of contents</kbd></summary>
|
|
33
|
-
|
|
34
|
-
#### TOC
|
|
35
|
-
|
|
36
|
-
- [📦 Installation](#-installation)
|
|
37
|
-
- [🤯 Usage](#-usage)
|
|
38
|
-
- [.npmrc](#npmrc)
|
|
39
|
-
- [ESlint](#eslint)
|
|
40
|
-
- [Stylelint](#stylelint)
|
|
41
|
-
- [Commitlint](#commitlint)
|
|
42
|
-
- [Changelog](#changelog)
|
|
43
|
-
- [Remark](#remark)
|
|
44
|
-
- [Prettier](#prettier)
|
|
45
|
-
- [Semantic Release](#semantic-release)
|
|
46
|
-
- [⌨️ Local Development](#️-local-development)
|
|
47
|
-
- [🤝 Contributing](#-contributing)
|
|
19
|
+
## Overview
|
|
48
20
|
|
|
49
|
-
|
|
21
|
+
This is a convenience package that re-exports all LobeHub lint configurations. Install this single package to get access to all lint configs.
|
|
50
22
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## 📦 Installation
|
|
54
|
-
|
|
55
|
-
To install Lobe Lint, run the following command:
|
|
56
|
-
|
|
57
|
-
[![][bun-shield]][bun-link]
|
|
23
|
+
## Installation
|
|
58
24
|
|
|
59
25
|
```bash
|
|
60
|
-
|
|
26
|
+
pnpm add -D @lobehub/lint
|
|
61
27
|
```
|
|
62
28
|
|
|
63
|
-
|
|
29
|
+
You'll also need to install the peer dependencies:
|
|
64
30
|
|
|
65
31
|
```bash
|
|
66
|
-
|
|
67
|
-
$ curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.gitignore
|
|
68
|
-
$ curl -O https://raw.githubusercontent.com/lobehub/lobe-lint/master/.prettierignore
|
|
32
|
+
pnpm add -D eslint prettier stylelint @commitlint/cli remark-cli semantic-release typescript
|
|
69
33
|
```
|
|
70
34
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
[![][back-to-top]](#readme-top)
|
|
74
|
-
|
|
75
|
-
</div>
|
|
35
|
+
## Usage
|
|
76
36
|
|
|
77
|
-
|
|
37
|
+
### ESLint
|
|
78
38
|
|
|
79
|
-
|
|
39
|
+
```js
|
|
40
|
+
// eslint.config.js
|
|
41
|
+
import { defineConfig } from '@lobehub/lint';
|
|
80
42
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
public-hoist-pattern[]=*commitlint*
|
|
85
|
-
public-hoist-pattern[]=*eslint*
|
|
86
|
-
public-hoist-pattern[]=*postcss*
|
|
87
|
-
public-hoist-pattern[]=*prettier*
|
|
88
|
-
public-hoist-pattern[]=*remark*
|
|
89
|
-
public-hoist-pattern[]=*semantic-release*
|
|
90
|
-
public-hoist-pattern[]=*stylelint*
|
|
43
|
+
export default defineConfig({
|
|
44
|
+
react: 'next',
|
|
45
|
+
});
|
|
91
46
|
```
|
|
92
47
|
|
|
93
|
-
###
|
|
94
|
-
|
|
95
|
-
config can be found at [`.eslintrc.js`](/src/eslint/index.ts)
|
|
48
|
+
### Prettier
|
|
96
49
|
|
|
97
50
|
```js
|
|
98
|
-
|
|
51
|
+
// prettier.config.js
|
|
52
|
+
import { prettier } from '@lobehub/lint';
|
|
53
|
+
|
|
54
|
+
export default prettier;
|
|
99
55
|
```
|
|
100
56
|
|
|
101
57
|
### Stylelint
|
|
102
58
|
|
|
103
|
-
config can be found at [`.stylelintrc.js`](/src/stylelint/index.ts)
|
|
104
|
-
|
|
105
59
|
```js
|
|
106
|
-
|
|
60
|
+
// stylelint.config.js
|
|
61
|
+
import { stylelint } from '@lobehub/lint';
|
|
62
|
+
|
|
63
|
+
export default stylelint;
|
|
107
64
|
```
|
|
108
65
|
|
|
109
66
|
### Commitlint
|
|
110
67
|
|
|
111
|
-
config can be found at [`.commitlintrc.js`](/src/commitlint/index.ts)
|
|
112
|
-
|
|
113
68
|
```js
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
### Changelog
|
|
118
|
-
|
|
119
|
-
config can be found at [`.changelogrc.js`](/src/changelog/index.ts)
|
|
69
|
+
// commitlint.config.js
|
|
70
|
+
import { commitlint } from '@lobehub/lint';
|
|
120
71
|
|
|
121
|
-
|
|
122
|
-
module.exports = require('@lobehub/lint').changelog;
|
|
72
|
+
export default commitlint;
|
|
123
73
|
```
|
|
124
74
|
|
|
125
|
-
###
|
|
126
|
-
|
|
127
|
-
config can be found at [`.remarkrc.js`](/src/remarklint/index.ts)
|
|
75
|
+
### Remarklint
|
|
128
76
|
|
|
129
77
|
```js
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
### Prettier
|
|
134
|
-
|
|
135
|
-
config can be found at [`.prettierrc.js`](/src/prettier/index.ts)
|
|
78
|
+
// .remarkrc.js
|
|
79
|
+
import { remarklint } from '@lobehub/lint';
|
|
136
80
|
|
|
137
|
-
|
|
138
|
-
module.exports = require('@lobehub/lint').prettier;
|
|
81
|
+
export default remarklint;
|
|
139
82
|
```
|
|
140
83
|
|
|
141
84
|
### Semantic Release
|
|
142
85
|
|
|
143
|
-
config can be found at [`.releaserc.js`](/src/semantic-release/index.ts)
|
|
144
|
-
|
|
145
86
|
```js
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
<div align="right">
|
|
150
|
-
|
|
151
|
-
[![][back-to-top]](#readme-top)
|
|
87
|
+
// .releaserc.js
|
|
88
|
+
import { semanticRelease } from '@lobehub/lint';
|
|
152
89
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
## ⌨️ Local Development
|
|
156
|
-
|
|
157
|
-
You can use Github Codespaces for online development:
|
|
90
|
+
export default semanticRelease;
|
|
91
|
+
```
|
|
158
92
|
|
|
159
|
-
|
|
93
|
+
For monorepo:
|
|
160
94
|
|
|
161
|
-
|
|
95
|
+
```js
|
|
96
|
+
import { semanticReleaseMonoRepo } from '@lobehub/lint';
|
|
162
97
|
|
|
163
|
-
|
|
164
|
-
$ git clone https://github.com/lobehub/lobe-lint.git
|
|
165
|
-
$ cd lobehub/lint
|
|
166
|
-
$ bun install
|
|
167
|
-
$ bun start
|
|
98
|
+
export default semanticReleaseMonoRepo;
|
|
168
99
|
```
|
|
169
100
|
|
|
170
|
-
|
|
101
|
+
For changelog only:
|
|
171
102
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
</div>
|
|
103
|
+
```js
|
|
104
|
+
import { changelog } from '@lobehub/lint';
|
|
175
105
|
|
|
176
|
-
|
|
106
|
+
export default changelog;
|
|
107
|
+
```
|
|
177
108
|
|
|
178
|
-
|
|
109
|
+
## Exports
|
|
179
110
|
|
|
180
|
-
|
|
111
|
+
| Export | Type | Description |
|
|
112
|
+
| ------------------------- | -------- | -------------------------------- |
|
|
113
|
+
| `defineConfig` / `eslint` | Function | ESLint config factory |
|
|
114
|
+
| `defineEslintConfig` | Function | Alias for defineConfig |
|
|
115
|
+
| `prettier` | Object | Prettier config |
|
|
116
|
+
| `stylelint` | Object | Stylelint config |
|
|
117
|
+
| `commitlint` | Object | Commitlint config |
|
|
118
|
+
| `remarklint` | Object | Remarklint config |
|
|
119
|
+
| `semanticRelease` | Object | Semantic release config |
|
|
120
|
+
| `semanticReleaseMonoRepo` | Object | Monorepo semantic release config |
|
|
121
|
+
| `changelog` | Object | Changelog-only config |
|
|
181
122
|
|
|
182
|
-
|
|
123
|
+
## Individual Packages
|
|
183
124
|
|
|
184
|
-
|
|
125
|
+
If you only need specific configurations, you can install them individually:
|
|
185
126
|
|
|
186
|
-
|
|
127
|
+
- `@lobehub/eslint-config` - ESLint configuration
|
|
128
|
+
- `@lobehub/prettier-config` - Prettier configuration
|
|
129
|
+
- `@lobehub/stylelint-config` - Stylelint configuration
|
|
130
|
+
- `@lobehub/commitlint-config` - Commitlint configuration
|
|
131
|
+
- `@lobehub/remarklint-config` - Remarklint configuration
|
|
132
|
+
- `@lobehub/semantic-release-config` - Semantic release configuration
|
|
187
133
|
|
|
188
|
-
|
|
134
|
+
## Requirements
|
|
189
135
|
|
|
190
|
-
|
|
136
|
+
- Node.js >= 18
|
|
191
137
|
|
|
192
|
-
|
|
138
|
+
## License
|
|
193
139
|
|
|
194
|
-
|
|
195
|
-
This project is [MIT](./LICENSE) licensed.
|
|
140
|
+
MIT © [LobeHub](https://github.com/lobehub)
|
|
196
141
|
|
|
197
142
|
<!-- LINK GROUP -->
|
|
198
143
|
|
|
199
|
-
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
|
|
200
|
-
[bun-link]: https://bun.sh
|
|
201
|
-
[bun-shield]: https://img.shields.io/badge/-speedup%20with%20bun-black?logo=bun&style=for-the-badge
|
|
202
|
-
[codespaces-link]: https://codespaces.new/lobehub/lobe-lint
|
|
203
|
-
[codespaces-shield]: https://github.com/codespaces/badge.svg
|
|
204
|
-
[contributors-contrib]: https://contrib.rocks/image?repo=lobehub/lobe-lint
|
|
205
|
-
[contributors-url]: https://github.com/lobehub/lobe-lint/graphs/contributors
|
|
206
|
-
[discord-link]: https://discord.gg/AYFPHvv2jT
|
|
207
|
-
[discord-shield]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
|
|
208
|
-
[github-action-release-link]: https://github.com/lobehub/lobe-lint/actions/workflows/release.yml
|
|
209
|
-
[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
|
|
210
|
-
[github-action-test-link]: https://github.com/lobehub/lobe-lint/actions/workflows/test.yml
|
|
211
|
-
[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
|
|
212
|
-
[github-contributors-link]: https://github.com/lobehub/lobe-lint/graphs/contributors
|
|
213
|
-
[github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-lint?color=c4f042&labelColor=black&style=flat-square
|
|
214
|
-
[github-forks-link]: https://github.com/lobehub/lobe-lint/network/members
|
|
215
|
-
[github-forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-lint?color=8ae8ff&labelColor=black&style=flat-square
|
|
216
|
-
[github-issues-link]: https://github.com/lobehub/lobe-lint/issues
|
|
217
|
-
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-lint?color=ff80eb&labelColor=black&style=flat-square
|
|
218
144
|
[github-license-link]: https://github.com/lobehub/lobe-lint/blob/master/LICENSE
|
|
219
145
|
[github-license-shield]: https://img.shields.io/github/license/lobehub/lobe-lint?color=white&labelColor=black&style=flat-square
|
|
220
|
-
[github-releasedate-link]: https://github.com/lobehub/lobe-lint/releases
|
|
221
|
-
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-lint?labelColor=black&style=flat-square
|
|
222
|
-
[github-stars-link]: https://github.com/lobehub/lobe-lint/network/stargazers
|
|
223
|
-
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-lint?color=ffcb47&labelColor=black&style=flat-square
|
|
224
|
-
[issues-link]: https://github.com/lobehub/lobe-lint/issues/new/choose
|
|
225
146
|
[npm-downloads-link]: https://www.npmjs.com/package/@lobehub/lint
|
|
226
147
|
[npm-downloads-shield]: https://img.shields.io/npm/dt/@lobehub/lint?labelColor=black&style=flat-square
|
|
227
148
|
[npm-release-link]: https://www.npmjs.com/package/@lobehub/lint
|
|
228
149
|
[npm-release-shield]: https://img.shields.io/npm/v/@lobehub/lint?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
|
|
229
|
-
[pr-welcome-link]: https://github.com/lobehub/lobe-lint/pulls
|
|
230
|
-
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
|
|
231
|
-
[profile-link]: https://github.com/lobehub
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: true
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
const __lobehub_commitlint_config = __toESM(require("@lobehub/commitlint-config"));
|
|
26
|
+
const __lobehub_eslint_config = __toESM(require("@lobehub/eslint-config"));
|
|
27
|
+
const __lobehub_prettier_config = __toESM(require("@lobehub/prettier-config"));
|
|
28
|
+
const __lobehub_remarklint_config = __toESM(require("@lobehub/remarklint-config"));
|
|
29
|
+
const __lobehub_semantic_release_config = __toESM(require("@lobehub/semantic-release-config"));
|
|
30
|
+
const __lobehub_semantic_release_config_changelog = __toESM(require("@lobehub/semantic-release-config/changelog"));
|
|
31
|
+
const __lobehub_semantic_release_config_monorepo = __toESM(require("@lobehub/semantic-release-config/monorepo"));
|
|
32
|
+
const __lobehub_stylelint_config = __toESM(require("@lobehub/stylelint-config"));
|
|
33
|
+
|
|
34
|
+
Object.defineProperty(exports, 'changelog', {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () {
|
|
37
|
+
return __lobehub_semantic_release_config_changelog.default;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, 'commitlint', {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () {
|
|
43
|
+
return __lobehub_commitlint_config.default;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, 'defineEslintConfig', {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () {
|
|
49
|
+
return __lobehub_eslint_config.default;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, 'eslint', {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return __lobehub_eslint_config.defineConfig;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, 'prettier', {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () {
|
|
61
|
+
return __lobehub_prettier_config.default;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, 'remarklint', {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return __lobehub_remarklint_config.default;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, 'semanticRelease', {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return __lobehub_semantic_release_config.default;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, 'semanticReleaseMonoRepo', {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return __lobehub_semantic_release_config_monorepo.default;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, 'semanticReleaseOptions', {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () {
|
|
85
|
+
return __lobehub_semantic_release_config.options;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, 'stylelint', {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () {
|
|
91
|
+
return __lobehub_stylelint_config.default;
|
|
92
|
+
}
|
|
93
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import commitlint from "@lobehub/commitlint-config";
|
|
2
|
+
import defineEslintConfig, { Options as EslintOptions, defineConfig as eslint } from "@lobehub/eslint-config";
|
|
3
|
+
import prettier from "@lobehub/prettier-config";
|
|
4
|
+
import remarklint from "@lobehub/remarklint-config";
|
|
5
|
+
import semanticRelease, { options as semanticReleaseOptions } from "@lobehub/semantic-release-config";
|
|
6
|
+
import changelog from "@lobehub/semantic-release-config/changelog";
|
|
7
|
+
import semanticReleaseMonoRepo from "@lobehub/semantic-release-config/monorepo";
|
|
8
|
+
import stylelint from "@lobehub/stylelint-config";
|
|
9
|
+
export { EslintOptions, changelog, commitlint, defineEslintConfig, eslint, prettier, remarklint, semanticRelease, semanticReleaseMonoRepo, semanticReleaseOptions, stylelint };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import commitlint from "@lobehub/commitlint-config";
|
|
2
|
+
import defineEslintConfig, { Options as EslintOptions, defineConfig as eslint } from "@lobehub/eslint-config";
|
|
3
|
+
import prettier from "@lobehub/prettier-config";
|
|
4
|
+
import remarklint from "@lobehub/remarklint-config";
|
|
5
|
+
import semanticRelease, { options as semanticReleaseOptions } from "@lobehub/semantic-release-config";
|
|
6
|
+
import changelog from "@lobehub/semantic-release-config/changelog";
|
|
7
|
+
import semanticReleaseMonoRepo from "@lobehub/semantic-release-config/monorepo";
|
|
8
|
+
import stylelint from "@lobehub/stylelint-config";
|
|
9
|
+
export { EslintOptions, changelog, commitlint, defineEslintConfig, eslint, prettier, remarklint, semanticRelease, semanticReleaseMonoRepo, semanticReleaseOptions, stylelint };
|
package/dist/index.js
CHANGED
|
@@ -1,60 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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);
|
|
1
|
+
import commitlint from "@lobehub/commitlint-config";
|
|
2
|
+
import defineEslintConfig, { defineConfig as eslint } from "@lobehub/eslint-config";
|
|
3
|
+
import prettier from "@lobehub/prettier-config";
|
|
4
|
+
import remarklint from "@lobehub/remarklint-config";
|
|
5
|
+
import semanticRelease, { options as semanticReleaseOptions } from "@lobehub/semantic-release-config";
|
|
6
|
+
import changelog from "@lobehub/semantic-release-config/changelog";
|
|
7
|
+
import semanticReleaseMonoRepo from "@lobehub/semantic-release-config/monorepo";
|
|
8
|
+
import stylelint from "@lobehub/stylelint-config";
|
|
28
9
|
|
|
29
|
-
|
|
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
|
-
semanticReleaseMonoRepo: () => import_monorepo.default,
|
|
39
|
-
stylelint: () => import_stylelint.default
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(src_exports);
|
|
42
|
-
var import_changelog = __toESM(require("./changelog"));
|
|
43
|
-
var import_commitlint = __toESM(require("./commitlint"));
|
|
44
|
-
var import_eslint = __toESM(require("./eslint"));
|
|
45
|
-
var import_prettier = __toESM(require("./prettier"));
|
|
46
|
-
var import_remarklint = __toESM(require("./remarklint"));
|
|
47
|
-
var import_semantic_release = __toESM(require("./semantic-release"));
|
|
48
|
-
var import_monorepo = __toESM(require("./semantic-release/monorepo"));
|
|
49
|
-
var import_stylelint = __toESM(require("./stylelint"));
|
|
50
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
-
0 && (module.exports = {
|
|
52
|
-
changelog,
|
|
53
|
-
commitlint,
|
|
54
|
-
eslint,
|
|
55
|
-
prettier,
|
|
56
|
-
remarklint,
|
|
57
|
-
semanticRelease,
|
|
58
|
-
semanticReleaseMonoRepo,
|
|
59
|
-
stylelint
|
|
60
|
-
});
|
|
10
|
+
export { changelog, commitlint, defineEslintConfig, eslint, prettier, remarklint, semanticRelease, semanticReleaseMonoRepo, semanticReleaseOptions, stylelint };
|
package/package.json
CHANGED
|
@@ -1,94 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
|
+
"description": "Meta package that re-exports all LobeHub lint configurations",
|
|
4
5
|
"homepage": "https://github.com/lobehub/lobe-lint",
|
|
5
6
|
"bugs": {
|
|
6
7
|
"url": "https://github.com/lobehub/lobe-lint/issues/new"
|
|
7
8
|
},
|
|
8
9
|
"repository": {
|
|
9
10
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/lobehub/lobe-lint.git"
|
|
11
|
+
"url": "https://github.com/lobehub/lobe-lint.git",
|
|
12
|
+
"directory": "packages/lint"
|
|
11
13
|
},
|
|
12
14
|
"license": "MIT",
|
|
13
|
-
"author": "canisminor1990 <i@canisminor.cc>",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
15
|
+
"author": "canisminor1990 <i@canisminor.cc>, Innei <i@innei.in>",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/index.cjs",
|
|
25
|
+
"module": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
17
27
|
"files": [
|
|
18
28
|
"dist"
|
|
19
29
|
],
|
|
20
|
-
"overrides": {
|
|
21
|
-
"mdast-util-gfm": "3.0.0"
|
|
22
|
-
},
|
|
23
30
|
"dependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"
|
|
30
|
-
"eslint-config-prettier": "^9.1.0",
|
|
31
|
-
"eslint-import-resolver-alias": "^1.1.2",
|
|
32
|
-
"eslint-import-resolver-typescript": "^3.7.0",
|
|
33
|
-
"eslint-plugin-import": "^2.31.0",
|
|
34
|
-
"eslint-plugin-jest": "^28.10.0",
|
|
35
|
-
"eslint-plugin-react": "^7.37.3",
|
|
36
|
-
"eslint-plugin-react-hooks": "^4.6.2",
|
|
37
|
-
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
38
|
-
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
39
|
-
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
40
|
-
"eslint-plugin-unicorn": "^54.0.0",
|
|
41
|
-
"eslint-plugin-unused-imports": "^3.2.0",
|
|
42
|
-
"gatsby-remark-find-replace": "^0.3.0",
|
|
43
|
-
"mdast-util-gfm": "3.0.0",
|
|
44
|
-
"postcss-less": "^6.0.0",
|
|
45
|
-
"postcss-styled-syntax": "^0.7.0",
|
|
46
|
-
"prettier-plugin-organize-imports": "^4.1.0",
|
|
47
|
-
"prettier-plugin-packagejson": "^2.5.6",
|
|
48
|
-
"prettier-plugin-sh": "^0.14.0",
|
|
49
|
-
"prettier-plugin-sort-json": "^4.1.0",
|
|
50
|
-
"remark-frontmatter": "^5.0.0",
|
|
51
|
-
"remark-gfm": "^4.0.0",
|
|
52
|
-
"remark-lint": "^10.0.0",
|
|
53
|
-
"remark-lint-checkbox-content-indent": "^5.0.0",
|
|
54
|
-
"remark-lint-frontmatter-schema": "^3.15.4",
|
|
55
|
-
"remark-lint-heading-whitespace": "^1.0.0",
|
|
56
|
-
"remark-lint-linebreak-style": "^4.0.0",
|
|
57
|
-
"remark-lint-list-item-indent": "^4.0.0",
|
|
58
|
-
"remark-lint-list-item-spacing": "^5.0.0",
|
|
59
|
-
"remark-lint-no-duplicate-headings-in-section": "^4.0.0",
|
|
60
|
-
"remark-lint-no-empty-sections": "^4.0.0",
|
|
61
|
-
"remark-lint-no-empty-url": "^4.0.0",
|
|
62
|
-
"remark-lint-no-file-name-irregular-characters": "^3.0.0",
|
|
63
|
-
"remark-lint-no-heading-indent": "^5.0.0",
|
|
64
|
-
"remark-lint-no-heading-like-paragraph": "^4.0.0",
|
|
65
|
-
"remark-lint-no-paragraph-content-indent": "^5.0.0",
|
|
66
|
-
"remark-lint-no-reference-like-url": "^4.0.0",
|
|
67
|
-
"remark-lint-no-shell-dollars": "^4.0.0",
|
|
68
|
-
"remark-lint-no-tabs": "^4.0.0",
|
|
69
|
-
"remark-lint-no-unneeded-full-reference-image": "^4.0.0",
|
|
70
|
-
"remark-lint-no-unneeded-full-reference-link": "^4.0.0",
|
|
71
|
-
"remark-lint-ordered-list-marker-value": "^4.0.0",
|
|
72
|
-
"remark-lint-write-good": "^1.2.0",
|
|
73
|
-
"remark-pangu": "^2.2.0",
|
|
74
|
-
"remark-preset-lint-consistent": "^6.0.0",
|
|
75
|
-
"remark-preset-lint-markdown-style-guide": "^6.0.0",
|
|
76
|
-
"remark-preset-lint-recommended": "^7.0.0",
|
|
77
|
-
"remark-remove-unused-definitions": "^2.0.0",
|
|
78
|
-
"remark-sort-definitions": "^2.0.0",
|
|
79
|
-
"remark-textr": "^6.1.0",
|
|
80
|
-
"remark-toc": "^9.0.0",
|
|
81
|
-
"semantic-release-config-gitmoji": "^1.5.3",
|
|
82
|
-
"stylelint-config-clean-order": "7.0.0",
|
|
83
|
-
"stylelint-config-recommended": "^14.0.1",
|
|
84
|
-
"stylelint-less": "^3.0.1",
|
|
85
|
-
"stylelint-order": "^6.0.4",
|
|
86
|
-
"stylelint-use-logical-spec": "^5.0.1",
|
|
87
|
-
"unist-util-visit": "^5.0.0"
|
|
31
|
+
"@lobehub/commitlint-config": "2.0.0-beta.2",
|
|
32
|
+
"@lobehub/prettier-config": "2.0.0-beta.2",
|
|
33
|
+
"@lobehub/stylelint-config": "2.0.0-beta.2",
|
|
34
|
+
"@lobehub/semantic-release-config": "2.0.0-beta.2",
|
|
35
|
+
"@lobehub/eslint-config": "2.0.0-beta.2",
|
|
36
|
+
"@lobehub/remarklint-config": "2.0.0-beta.2"
|
|
88
37
|
},
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=18"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public",
|
|
43
|
+
"registry": "https://registry.npmjs.org"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsdown",
|
|
47
|
+
"dev": "tsdown --watch",
|
|
48
|
+
"type-check": "tsc --noEmit"
|
|
93
49
|
}
|
|
94
|
-
}
|
|
50
|
+
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
addBackToTop: boolean;
|
|
3
|
-
customTypeMap: {
|
|
4
|
-
build: {
|
|
5
|
-
emoji: string;
|
|
6
|
-
};
|
|
7
|
-
chore: {
|
|
8
|
-
emoji: string;
|
|
9
|
-
};
|
|
10
|
-
ci: {
|
|
11
|
-
emoji: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
displayTypes: string[];
|
|
15
|
-
newlineTimestamp: boolean;
|
|
16
|
-
reduceHeadingLevel: boolean;
|
|
17
|
-
scopeDisplayName: {
|
|
18
|
-
'*': string;
|
|
19
|
-
};
|
|
20
|
-
showAuthor: boolean;
|
|
21
|
-
showSummary: boolean;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|