@sxzz/eslint-config 3.7.3 → 3.7.5

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
@@ -38,7 +38,7 @@ export default sxzz(
38
38
  [
39
39
  /* your custom config */
40
40
  ],
41
- { vue: true, prettier: true, markdown: true, unocss: false }
41
+ { vue: true, prettier: true, markdown: true, unocss: false },
42
42
  )
43
43
  ```
44
44
 
package/dist/index.cjs CHANGED
@@ -254,7 +254,8 @@ var imports = [
254
254
  `**/pages/${GLOB_SRC}`,
255
255
  `**/{index,vite,esbuild,rollup,webpack,rspack}.ts`,
256
256
  "**/*.d.ts",
257
- `${GLOB_MARKDOWN}/**`
257
+ `${GLOB_MARKDOWN}/**`,
258
+ "**/.prettierrc*"
258
259
  ],
259
260
  plugins: {
260
261
  import: pluginImport
@@ -274,7 +275,7 @@ var import_local_pkg = require("local-pkg");
274
275
  var isInEditor = (import_node_process.default.env.VSCODE_PID || import_node_process.default.env.JETBRAINS_IDE) && !import_node_process.default.env.CI;
275
276
  var hasTypeScript = (0, import_local_pkg.isPackageExists)("typescript");
276
277
  var hasVue = (0, import_local_pkg.isPackageExists)("vue") || (0, import_local_pkg.isPackageExists)("nuxt") || (0, import_local_pkg.isPackageExists)("vitepress") || (0, import_local_pkg.isPackageExists)("@slidev/cli");
277
- var hasUnocss = (0, import_local_pkg.isPackageExists)("unocss") || (0, import_local_pkg.isPackageExists)("@unocss/webpack");
278
+ var hasUnocss = (0, import_local_pkg.isPackageExists)("unocss") || (0, import_local_pkg.isPackageExists)("@unocss/webpack") || (0, import_local_pkg.isPackageExists)("@unocss/nuxt");
278
279
 
279
280
  // src/configs/javascript.ts
280
281
  var javascript = [
package/dist/index.js CHANGED
@@ -151,7 +151,8 @@ var imports = [
151
151
  `**/pages/${GLOB_SRC}`,
152
152
  `**/{index,vite,esbuild,rollup,webpack,rspack}.ts`,
153
153
  "**/*.d.ts",
154
- `${GLOB_MARKDOWN}/**`
154
+ `${GLOB_MARKDOWN}/**`,
155
+ "**/.prettierrc*"
155
156
  ],
156
157
  plugins: {
157
158
  import: pluginImport
@@ -171,7 +172,7 @@ import { isPackageExists } from "local-pkg";
171
172
  var isInEditor = (process2.env.VSCODE_PID || process2.env.JETBRAINS_IDE) && !process2.env.CI;
172
173
  var hasTypeScript = isPackageExists("typescript");
173
174
  var hasVue = isPackageExists("vue") || isPackageExists("nuxt") || isPackageExists("vitepress") || isPackageExists("@slidev/cli");
174
- var hasUnocss = isPackageExists("unocss") || isPackageExists("@unocss/webpack");
175
+ var hasUnocss = isPackageExists("unocss") || isPackageExists("@unocss/webpack") || isPackageExists("@unocss/nuxt");
175
176
 
176
177
  // src/configs/javascript.ts
177
178
  var javascript = [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "3.7.3",
4
- "packageManager": "pnpm@8.10.0",
3
+ "version": "3.7.5",
4
+ "packageManager": "pnpm@8.10.5",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -31,12 +31,12 @@
31
31
  "eslint": "^8.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@typescript-eslint/eslint-plugin": "^6.9.0",
35
- "@typescript-eslint/parser": "^6.9.0",
36
- "@unocss/eslint-plugin": "^0.57.1",
34
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
35
+ "@typescript-eslint/parser": "^6.11.0",
36
+ "@unocss/eslint-plugin": "^0.57.6",
37
37
  "eslint-config-prettier": "^9.0.0",
38
38
  "eslint-define-config": "^1.24.1",
39
- "eslint-plugin-antfu": "^1.0.1",
39
+ "eslint-plugin-antfu": "^1.0.10",
40
40
  "eslint-plugin-eslint-comments": "^3.2.0",
41
41
  "eslint-plugin-i": "^2.29.0",
42
42
  "eslint-plugin-jsonc": "^2.10.0",
@@ -50,15 +50,15 @@
50
50
  "globals": "^13.23.0",
51
51
  "jsonc-eslint-parser": "^2.4.0",
52
52
  "local-pkg": "^0.5.0",
53
- "prettier": "^3.0.3",
53
+ "prettier": "^3.1.0",
54
54
  "vue-eslint-parser": "^9.3.2",
55
55
  "yaml-eslint-parser": "^1.2.2"
56
56
  },
57
57
  "devDependencies": {
58
- "@sxzz/prettier-config": "^1.0.4",
59
- "@types/node": "^20.8.9",
58
+ "@sxzz/prettier-config": "^2.0.0",
59
+ "@types/node": "^20.9.2",
60
60
  "bumpp": "^9.2.0",
61
- "eslint": "^8.52.0",
61
+ "eslint": "^8.54.0",
62
62
  "sucrase": "^3.34.0",
63
63
  "tsup": "^7.2.0",
64
64
  "typescript": "^5.2.2"