@jiakun-zhao/eslint-config 4.0.1 → 4.0.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/LICENSE +21 -0
- package/README.md +44 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Jiakun Zhao
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
1
|
## @jiakun-zhao/eslint-config
|
|
2
|
-
|
|
3
|
-

|
|
4
|
+

|
|
5
|
+
|
|
6
|
+
Personal style eslint configuration.
|
|
7
|
+
|
|
8
|
+
<details>
|
|
9
|
+
|
|
10
|
+
<summary>Usage</summary>
|
|
11
|
+
|
|
12
|
+
#### Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pnpm i -D @jiakun-zhao/eslint-config
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
#### Config
|
|
19
|
+
|
|
20
|
+
Create `eslint.config.mjs` file in your project root directory, and add the following content:
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import defineConfig from '@jiakun-zhao/eslint-config'
|
|
24
|
+
|
|
25
|
+
export default defineConfig()
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#### VS Code
|
|
29
|
+
|
|
30
|
+
Install VS Code `ESLint` extension and create `.vscode/settings.json`
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"editor.codeActionsOnSave": {
|
|
35
|
+
"source.fixAll.eslint": true
|
|
36
|
+
},
|
|
37
|
+
"editor.formatOnSave": false
|
|
38
|
+
// "prettier.enable": true,
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
</details>
|
|
42
|
+
|
|
43
|
+
#### LICENSE
|
|
44
|
+
|
|
45
|
+
MIT License © 2025-PRESENT [Jiakun Zhao](https://github.com/jiakun-zhao)
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
|
4
4
|
|
|
5
5
|
/* This file is generated by eslint-typegen, for augmenting rules types in ESLint */
|
|
6
6
|
/* You might want to include this file in tsconfig.json but excluded from git */
|
|
7
|
-
/* eslint-typegen-hash:
|
|
7
|
+
/* eslint-typegen-hash: eIswpN2Lb5CNp7vDuJhKvR7RwFYmqCMwNh9mkHCwgeU */
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
|
4
4
|
|
|
5
5
|
/* This file is generated by eslint-typegen, for augmenting rules types in ESLint */
|
|
6
6
|
/* You might want to include this file in tsconfig.json but excluded from git */
|
|
7
|
-
/* eslint-typegen-hash:
|
|
7
|
+
/* eslint-typegen-hash: eIswpN2Lb5CNp7vDuJhKvR7RwFYmqCMwNh9mkHCwgeU */
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiakun-zhao/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
5
|
-
"description": "Jiakun's ESLint config.",
|
|
4
|
+
"version": "4.0.2",
|
|
5
|
+
"description": "Jiakun Zhao's ESLint config.",
|
|
6
6
|
"author": "Jiakun Zhao <hi@zhaojiakun.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://github.com/jiakun-zhao/eslint-config",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"dev": "config-inspector --open=false",
|
|
72
72
|
"release": "bumpp && pnpm publish && npx cnpm sync @jiakun-zhao/eslint-config",
|
|
73
73
|
"stub": "unbuild --stub",
|
|
74
|
-
"test": "vitest"
|
|
74
|
+
"test": "vitest",
|
|
75
|
+
"typegen": "tsx ./scripts/typegen.ts"
|
|
75
76
|
}
|
|
76
77
|
}
|