@cuiqg/eslint-config 2.5.2 → 2.5.3

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -4
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -602,7 +602,8 @@ async function stylistic() {
602
602
  pluginName: "style",
603
603
  indent: 2,
604
604
  quotes: "single",
605
- semi: false
605
+ semi: false,
606
+ commaDangle: "never"
606
607
  });
607
608
  return [{
608
609
  name: "cuiqg/stylistic",
@@ -784,6 +785,16 @@ async function vue() {
784
785
  }];
785
786
  }
786
787
 
788
+ //#endregion
789
+ //#region src/configs/macros.js
790
+ async function macros() {
791
+ const configMacros = await interopDefault(import("@vue-macros/eslint-config"));
792
+ return [{
793
+ ...configMacros,
794
+ name: "cuiqg/macros"
795
+ }];
796
+ }
797
+
787
798
  //#endregion
788
799
  //#region src/presets.js
789
800
  const defaultPluginRenaming = {
@@ -796,9 +807,12 @@ const defaultPluginRenaming = {
796
807
  function cuiqg(options = {}, ...userConfigs) {
797
808
  const { prettier: enablePrettier = false, imports: enableImports = true, vue: enableVue = hasVue(), unocss: enableUnocss = hasUnoCss(), nextjs: enableNextjs = hasNextjs() } = options;
798
809
  const configs = [];
799
- configs.push(deMorgan(), ignores(), javascript(), jsdoc(), jsonc(), stylistic(), perfectionist());
810
+ configs.push(deMorgan(), ignores(), javascript(), jsdoc(), jsonc(), stylistic(), node(), packageJson(), perfectionist());
800
811
  if (enableImports) configs.push(imports());
801
- if (enableVue) configs.push(vue());
812
+ if (enableVue) {
813
+ configs.push(vue());
814
+ configs.push(macros());
815
+ }
802
816
  if (enableUnocss) configs.push(unocss());
803
817
  if (enableNextjs) configs.push(nextjs());
804
818
  if (enablePrettier) configs.push(prettier());
@@ -813,4 +827,4 @@ function cuiqg(options = {}, ...userConfigs) {
813
827
  var src_default = cuiqg;
814
828
 
815
829
  //#endregion
816
- export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_STYLUS, GLOB_SVG, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, cuiqg, deMorgan, src_default as default, defaultPluginRenaming, hasNextjs, hasTypeScript, hasUnoCss, hasVue, ignores, imports, isInEditor, isInGitHookOrLintStaged, javascript, jsdoc, jsonc, nextjs, node, packageJson, perfectionist, prettier, stylistic, unocss, vue };
830
+ export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_STYLUS, GLOB_SVG, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, cuiqg, deMorgan, src_default as default, defaultPluginRenaming, hasNextjs, hasTypeScript, hasUnoCss, hasVue, ignores, imports, isInEditor, isInGitHookOrLintStaged, javascript, jsdoc, jsonc, macros, nextjs, node, packageJson, perfectionist, prettier, stylistic, unocss, vue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuiqg/eslint-config",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Eslint config for @cuiqg",
5
5
  "keywords": [
6
6
  "eslint-config"
@@ -32,6 +32,7 @@
32
32
  "@next/eslint-plugin-next": "^15.4.6",
33
33
  "@stylistic/eslint-plugin": "^5.2.3",
34
34
  "@unocss/eslint-plugin": "^66.4.2",
35
+ "@vue-macros/eslint-config": "3.0.0-beta.21",
35
36
  "eslint-config-flat-gitignore": "^2.1.0",
36
37
  "eslint-config-prettier": "^10.1.8",
37
38
  "eslint-flat-config-utils": "^2.1.1",