@lincy/eslint-config 5.2.6 → 5.2.7

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/dist/index.js CHANGED
@@ -328,8 +328,8 @@ function mergePrettierOptions(options, overrides = {}) {
328
328
  }
329
329
  async function formatters(options = {}, stylistic2 = {}) {
330
330
  const defaultIndent = 4;
331
+ const isPrettierPluginXmlInScope = isPackageInScope("@prettier/plugin-xml");
331
332
  if (options === true) {
332
- const isPrettierPluginXmlInScope = isPackageInScope("@prettier/plugin-xml");
333
333
  options = {
334
334
  css: false,
335
335
  graphql: true,
@@ -338,6 +338,15 @@ async function formatters(options = {}, stylistic2 = {}) {
338
338
  svg: isPrettierPluginXmlInScope,
339
339
  xml: isPrettierPluginXmlInScope
340
340
  };
341
+ } else {
342
+ options = {
343
+ css: options.css ?? false,
344
+ graphql: options.graphql ?? true,
345
+ html: options.html ?? true,
346
+ markdown: options.markdown ?? true,
347
+ svg: isPrettierPluginXmlInScope,
348
+ xml: isPrettierPluginXmlInScope
349
+ };
341
350
  }
342
351
  await ensurePackages([
343
352
  "eslint-plugin-format",
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@lincy/eslint-config",
3
3
  "type": "module",
4
- "version": "5.2.6",
5
- "packageManager": "pnpm@9.1.0",
4
+ "version": "5.2.7",
5
+ "packageManager": "pnpm@9.12.3",
6
6
  "description": "LinCenYing's ESLint config",
7
7
  "author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",
8
8
  "license": "MIT",
@@ -69,31 +69,31 @@
69
69
  "@antfu/eslint-define-config": "1.23.0-2",
70
70
  "@antfu/install-pkg": "^0.4.1",
71
71
  "@clack/prompts": "^0.7.0",
72
- "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
72
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
73
73
  "@eslint/markdown": "^6.2.1",
74
- "@stylistic/eslint-plugin": "2.9.0",
75
- "@typescript-eslint/eslint-plugin": "8.10.0",
76
- "@typescript-eslint/parser": "8.10.0",
74
+ "@stylistic/eslint-plugin": "2.10.1",
75
+ "@typescript-eslint/eslint-plugin": "8.13.0",
76
+ "@typescript-eslint/parser": "8.13.0",
77
77
  "@vitest/eslint-plugin": "^1.1.7",
78
78
  "eslint-config-flat-gitignore": "^0.3.0",
79
79
  "eslint-flat-config-utils": "^0.4.0",
80
80
  "eslint-merge-processors": "^0.1.0",
81
81
  "eslint-parser-plain": "^0.1.0",
82
82
  "eslint-plugin-antfu": "^2.7.0",
83
- "eslint-plugin-import-x": "^4.3.1",
83
+ "eslint-plugin-import-x": "^4.4.0",
84
84
  "eslint-plugin-jsdoc": "^50.4.3",
85
85
  "eslint-plugin-jsonc": "^2.16.0",
86
- "eslint-plugin-n": "^17.11.1",
86
+ "eslint-plugin-n": "^17.13.0",
87
87
  "eslint-plugin-no-only-tests": "^3.3.0",
88
88
  "eslint-plugin-perfectionist": "^3.9.1",
89
89
  "eslint-plugin-regexp": "^2.6.0",
90
90
  "eslint-plugin-toml": "^0.11.1",
91
91
  "eslint-plugin-unicorn": "^56.0.0",
92
92
  "eslint-plugin-unused-imports": "^4.1.4",
93
- "eslint-plugin-vue": "^9.29.1",
94
- "eslint-plugin-yml": "^1.14.0",
93
+ "eslint-plugin-vue": "^9.30.0",
94
+ "eslint-plugin-yml": "^1.15.0",
95
95
  "eslint-processor-vue-blocks": "^0.1.2",
96
- "globals": "^15.11.0",
96
+ "globals": "^15.12.0",
97
97
  "jsonc-eslint-parser": "^2.4.0",
98
98
  "local-pkg": "^0.5.0",
99
99
  "prompts": "^2.4.2",
@@ -103,22 +103,22 @@
103
103
  },
104
104
  "devDependencies": {
105
105
  "@antfu/ni": "^0.23.0",
106
- "@eslint-react/eslint-plugin": "^1.15.0",
106
+ "@eslint-react/eslint-plugin": "^1.15.2",
107
107
  "@eslint-types/jsdoc": "48.2.2",
108
108
  "@eslint-types/typescript-eslint": "^7.5.0",
109
109
  "@eslint-types/unicorn": "^52.0.0",
110
- "@eslint/config-inspector": "^0.5.5",
110
+ "@eslint/config-inspector": "^0.5.6",
111
111
  "@lincy/eslint-config": "workspace:*",
112
112
  "@prettier/plugin-xml": "^3.4.1",
113
- "@stylistic/eslint-plugin-migrate": "^2.9.0",
114
- "@types/node": "^22.7.7",
113
+ "@stylistic/eslint-plugin-migrate": "^2.10.1",
114
+ "@types/node": "^22.9.0",
115
115
  "@types/prompts": "^2.4.9",
116
- "@unocss/eslint-plugin": "^0.63.4",
117
- "bumpp": "^9.7.1",
118
- "eslint": "^9.13.0",
116
+ "@unocss/eslint-plugin": "^0.64.0",
117
+ "bumpp": "^9.8.1",
118
+ "eslint": "^9.14.0",
119
119
  "eslint-plugin-format": "^0.1.2",
120
120
  "eslint-plugin-react-hooks": "^5.0.0",
121
- "eslint-plugin-react-refresh": "^0.4.13",
121
+ "eslint-plugin-react-refresh": "^0.4.14",
122
122
  "eslint-ts-patch": "9.8.0-1",
123
123
  "eslint-typegen": "^0.3.2",
124
124
  "esno": "^4.8.0",
@@ -129,10 +129,10 @@
129
129
  "simple-git-hooks": "^2.11.1",
130
130
  "simple-open-url": "^3.0.1",
131
131
  "sucrase": "^3.35.0",
132
- "tsup": "^8.3.0",
132
+ "tsup": "^8.3.5",
133
133
  "typescript": "^5.6.3",
134
134
  "unbuild": "^2.0.0",
135
- "vitest": "^2.1.3",
135
+ "vitest": "^2.1.4",
136
136
  "vue": "^3.5.12"
137
137
  },
138
138
  "pnpm": {
@@ -143,10 +143,10 @@
143
143
  }
144
144
  },
145
145
  "resolutions": {
146
- "@eslint-community/eslint-utils": "^4.4.0",
147
- "@typescript-eslint/utils": "^8.3.0",
148
- "eslint": "^9.9.1",
149
- "tsx": "^4.18.0"
146
+ "@eslint-community/eslint-utils": "^4.4.1",
147
+ "@typescript-eslint/utils": "^8.13.0",
148
+ "eslint": "^9.14.0",
149
+ "tsx": "^4.19.2"
150
150
  },
151
151
  "simple-git-hooks": {
152
152
  "pre-commit": "npx lint-staged"