@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 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.6.2",
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.6.2",
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
@@ -1185,7 +1185,7 @@ var NextJsPackages = [
1185
1185
  ];
1186
1186
  async function react(options = {}) {
1187
1187
  const {
1188
- files = [GLOB_TS, GLOB_TSX],
1188
+ files = [GLOB_TS, GLOB_TSX, GLOB_JS, GLOB_JSX],
1189
1189
  overrides = {}
1190
1190
  } = options;
1191
1191
  await ensurePackages([
package/dist/index.js CHANGED
@@ -1083,7 +1083,7 @@ var NextJsPackages = [
1083
1083
  ];
1084
1084
  async function react(options = {}) {
1085
1085
  const {
1086
- files = [GLOB_TS, GLOB_TSX],
1086
+ files = [GLOB_TS, GLOB_TSX, GLOB_JS, GLOB_JSX],
1087
1087
  overrides = {}
1088
1088
  } = options;
1089
1089
  await ensurePackages([
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhzh/eslint-config",
3
3
  "type": "module",
4
- "version": "0.6.2",
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.6.2"
148
+ "@dhzh/eslint-config": "0.7.0"
149
149
  },
150
150
  "simple-git-hooks": {
151
151
  "pre-commit": "pnpm lint-staged"