@dhzh/eslint-config 0.6.2 → 0.7.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 +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ Differences from [@antfu/eslint-config](./README-antfu.md):
|
|
|
12
12
|
4. Disabled antfu's top level function rule: `'antfu/top-level-function': 'off'`.
|
|
13
13
|
5. Always curly: `'curly': ['error', 'all']`.
|
|
14
14
|
6. This eslint-config will enable `ts/consistent-type-imports` rule. But it will cause [compile issue](https://github.com/typescript-eslint/typescript-eslint/issues/2559) in [nest](https://nestjs.com/) projects. So I [disabled it](https://github.com/typescript-eslint/typescript-eslint/issues/2559#issuecomment-692780580) in this config in nest framework.
|
|
15
|
+
7. Support `'**/*.?([cm])js` and `'**/*.?([cm])jsx` files in react projects.
|
|
15
16
|
|
|
16
17
|
## Usage
|
|
17
18
|
|
package/dist/cli.cjs
CHANGED
|
@@ -48,7 +48,7 @@ var import_picocolors = __toESM(require("picocolors"), 1);
|
|
|
48
48
|
var package_default = {
|
|
49
49
|
name: "@dhzh/eslint-config",
|
|
50
50
|
type: "module",
|
|
51
|
-
version: "0.
|
|
51
|
+
version: "0.7.0",
|
|
52
52
|
packageManager: "pnpm@9.1.1",
|
|
53
53
|
description: "Easton's ESLint config",
|
|
54
54
|
author: "Easton Zheng <dhzhme@gmail.com>",
|
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ import c from "picocolors";
|
|
|
19
19
|
var package_default = {
|
|
20
20
|
name: "@dhzh/eslint-config",
|
|
21
21
|
type: "module",
|
|
22
|
-
version: "0.
|
|
22
|
+
version: "0.7.0",
|
|
23
23
|
packageManager: "pnpm@9.1.1",
|
|
24
24
|
description: "Easton's ESLint config",
|
|
25
25
|
author: "Easton Zheng <dhzhme@gmail.com>",
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"description": "Easton's ESLint config",
|
|
6
6
|
"author": "Easton Zheng <dhzhme@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"typescript": "^5.4.5",
|
|
146
146
|
"vitest": "^1.6.0",
|
|
147
147
|
"vue": "^3.4.27",
|
|
148
|
-
"@dhzh/eslint-config": "0.
|
|
148
|
+
"@dhzh/eslint-config": "0.7.0"
|
|
149
149
|
},
|
|
150
150
|
"simple-git-hooks": {
|
|
151
151
|
"pre-commit": "pnpm lint-staged"
|