@tofrankie/eslint 0.0.16 → 0.0.18
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/CHANGELOG.md +8 -0
- package/LICENSE +1 -1
- package/README.md +8 -6
- package/package.json +9 -4
package/CHANGELOG.md
CHANGED
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
   
|
|
4
4
|
|
|
5
|
-
A shared ESLint configuration
|
|
5
|
+
A shared ESLint configuration built on [@antfu/eslint-config](https://github.com/antfu/eslint-config), with opinionated presets.
|
|
6
6
|
|
|
7
7
|
> [!IMPORTANT]
|
|
8
|
-
>
|
|
8
|
+
> Before 1.0.0, releases may include breaking changes. Read the [CHANGELOG](CHANGELOG.md) before upgrading.
|
|
9
9
|
|
|
10
10
|
## Quick Start
|
|
11
11
|
|
|
12
|
+
Install dependencies:
|
|
13
|
+
|
|
12
14
|
```bash
|
|
13
15
|
$ pnpm add eslint @tofrankie/eslint -D
|
|
14
16
|
```
|
|
@@ -21,14 +23,14 @@ import { defineConfig } from '@tofrankie/eslint'
|
|
|
21
23
|
export default defineConfig()
|
|
22
24
|
```
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
**Customization:** [antfu/eslint-config](https://github.com/antfu/eslint-config#customization)
|
|
25
27
|
|
|
26
28
|
```js
|
|
27
29
|
import { defineConfig } from '@tofrankie/eslint'
|
|
28
30
|
|
|
29
31
|
export default defineConfig(
|
|
30
32
|
{
|
|
31
|
-
// antfu options...
|
|
33
|
+
// antfu options...
|
|
32
34
|
ignores: ['node_modules', 'dist'],
|
|
33
35
|
typescript: true,
|
|
34
36
|
react: true,
|
|
@@ -43,9 +45,9 @@ export default defineConfig(
|
|
|
43
45
|
)
|
|
44
46
|
```
|
|
45
47
|
|
|
46
|
-
##
|
|
48
|
+
## Examples
|
|
47
49
|
|
|
48
|
-
###
|
|
50
|
+
### Native Miniprogram
|
|
49
51
|
|
|
50
52
|
```js
|
|
51
53
|
import { defineConfig } from '@tofrankie/eslint'
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tofrankie/eslint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.0.18",
|
|
5
|
+
"description": "A shared ESLint configuration",
|
|
6
6
|
"author": "Frankie <1426203851@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://github.com/tofrankie/config/tree/main/packages/eslint",
|
|
@@ -14,9 +14,13 @@
|
|
|
14
14
|
"bugs": "https://github.com/tofrankie/config/issues",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"eslint",
|
|
17
|
-
"eslintconfig",
|
|
18
17
|
"eslint-config",
|
|
18
|
+
"eslint-flat-config",
|
|
19
|
+
"eslintconfig",
|
|
19
20
|
"lint",
|
|
21
|
+
"react",
|
|
22
|
+
"typescript",
|
|
23
|
+
"vue",
|
|
20
24
|
"tofrankie"
|
|
21
25
|
],
|
|
22
26
|
"exports": {
|
|
@@ -58,7 +62,8 @@
|
|
|
58
62
|
},
|
|
59
63
|
"devDependencies": {
|
|
60
64
|
"@types/lodash.merge": "^4.6.9",
|
|
61
|
-
"eslint": "^9.39.4"
|
|
65
|
+
"eslint": "^9.39.4",
|
|
66
|
+
"@tofrankie/tsconfig": "0.0.5"
|
|
62
67
|
},
|
|
63
68
|
"scripts": {
|
|
64
69
|
"dev": "tsdown --watch",
|