@sxzz/eslint-config 3.7.1 → 3.7.2

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.cjs CHANGED
@@ -84,6 +84,7 @@ __export(src_exports, {
84
84
  pluginYml: () => pluginYml,
85
85
  presetBasic: () => basic,
86
86
  presetJavaScript: () => presetJavaScript,
87
+ presetJsonc: () => presetJsonc,
87
88
  presetLangsExtensions: () => presetLangsExtensions,
88
89
  prettier: () => prettier,
89
90
  reactivityTransform: () => reactivityTransform,
@@ -1016,19 +1017,17 @@ var presetJavaScript = [
1016
1017
  ...imports,
1017
1018
  ...unicorn
1018
1019
  ];
1019
- var presetLangsExtensions = [
1020
- ...markdown,
1021
- ...yml,
1022
- ...jsonc,
1023
- ...sortPackageJson,
1024
- ...sortTsconfig
1020
+ var presetJsonc = [...jsonc, ...sortPackageJson, ...sortTsconfig];
1021
+ var presetLangsExtensions = [...markdown, ...yml, ...presetJsonc];
1022
+ var basic = [...presetJavaScript, ...typescript];
1023
+ var all = [
1024
+ ...basic,
1025
+ ...presetLangsExtensions,
1026
+ ...sortKeys,
1027
+ ...vue,
1028
+ ...unocss,
1029
+ ...prettier
1025
1030
  ];
1026
- var basic = [
1027
- ...presetJavaScript,
1028
- ...typescript,
1029
- ...presetLangsExtensions
1030
- ];
1031
- var all = [...basic, ...sortKeys, ...vue, ...unocss, ...prettier];
1032
1031
  function sxzz(config = [], {
1033
1032
  vue: enableVue = true,
1034
1033
  prettier: enablePrettier = true,
@@ -1036,8 +1035,7 @@ function sxzz(config = [], {
1036
1035
  sortKeys: enableSortKeys = true,
1037
1036
  unocss: enableUnocss = false
1038
1037
  } = {}) {
1039
- const configs = [];
1040
- configs.push(...basic);
1038
+ const configs = [...basic, ...yml, ...presetJsonc];
1041
1039
  if (enableSortKeys) {
1042
1040
  configs.push(...sortKeys);
1043
1041
  }
@@ -1114,6 +1112,7 @@ function sxzz(config = [], {
1114
1112
  pluginYml,
1115
1113
  presetBasic,
1116
1114
  presetJavaScript,
1115
+ presetJsonc,
1117
1116
  presetLangsExtensions,
1118
1117
  prettier,
1119
1118
  reactivityTransform,
package/dist/index.d.cts CHANGED
@@ -87,6 +87,7 @@ declare const pluginPrettier: any;
87
87
  declare const configPrettier: any;
88
88
 
89
89
  declare const presetJavaScript: FlatESLintConfigItem[];
90
+ declare const presetJsonc: FlatESLintConfigItem[];
90
91
  declare const presetLangsExtensions: FlatESLintConfigItem[];
91
92
  declare const basic: FlatESLintConfigItem[];
92
93
 
@@ -99,4 +100,4 @@ declare function sxzz(config?: FlatESLintConfigItem | FlatESLintConfigItem[], {
99
100
  sortKeys: boolean;
100
101
  }>): FlatESLintConfigItem[];
101
102
 
102
- export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, configPrettier, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetLangsExtensions, prettier, reactivityTransform, sortKeys, sortPackageJson, sortTsconfig, sxzz, typescript, unicorn, unocss, vue, yml };
103
+ export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, configPrettier, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, reactivityTransform, sortKeys, sortPackageJson, sortTsconfig, sxzz, typescript, unicorn, unocss, vue, yml };
package/dist/index.d.ts CHANGED
@@ -87,6 +87,7 @@ declare const pluginPrettier: any;
87
87
  declare const configPrettier: any;
88
88
 
89
89
  declare const presetJavaScript: FlatESLintConfigItem[];
90
+ declare const presetJsonc: FlatESLintConfigItem[];
90
91
  declare const presetLangsExtensions: FlatESLintConfigItem[];
91
92
  declare const basic: FlatESLintConfigItem[];
92
93
 
@@ -99,4 +100,4 @@ declare function sxzz(config?: FlatESLintConfigItem | FlatESLintConfigItem[], {
99
100
  sortKeys: boolean;
100
101
  }>): FlatESLintConfigItem[];
101
102
 
102
- export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, configPrettier, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetLangsExtensions, prettier, reactivityTransform, sortKeys, sortPackageJson, sortTsconfig, sxzz, typescript, unicorn, unocss, vue, yml };
103
+ export { GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, basic, comments, configPrettier, getVueVersion, hasTypeScript, hasVue, ignores, imports, isInEditor, javascript, jsonc, markdown, pluginAntfu, pluginComments, pluginMarkdown, pluginPrettier, pluginTypeScript, pluginUnicorn, pluginUnocss, pluginVue, basic as presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, reactivityTransform, sortKeys, sortPackageJson, sortTsconfig, sxzz, typescript, unicorn, unocss, vue, yml };
package/dist/index.js CHANGED
@@ -915,19 +915,17 @@ var presetJavaScript = [
915
915
  ...imports,
916
916
  ...unicorn
917
917
  ];
918
- var presetLangsExtensions = [
919
- ...markdown,
920
- ...yml,
921
- ...jsonc,
922
- ...sortPackageJson,
923
- ...sortTsconfig
918
+ var presetJsonc = [...jsonc, ...sortPackageJson, ...sortTsconfig];
919
+ var presetLangsExtensions = [...markdown, ...yml, ...presetJsonc];
920
+ var basic = [...presetJavaScript, ...typescript];
921
+ var all = [
922
+ ...basic,
923
+ ...presetLangsExtensions,
924
+ ...sortKeys,
925
+ ...vue,
926
+ ...unocss,
927
+ ...prettier
924
928
  ];
925
- var basic = [
926
- ...presetJavaScript,
927
- ...typescript,
928
- ...presetLangsExtensions
929
- ];
930
- var all = [...basic, ...sortKeys, ...vue, ...unocss, ...prettier];
931
929
  function sxzz(config = [], {
932
930
  vue: enableVue = true,
933
931
  prettier: enablePrettier = true,
@@ -935,8 +933,7 @@ function sxzz(config = [], {
935
933
  sortKeys: enableSortKeys = true,
936
934
  unocss: enableUnocss = false
937
935
  } = {}) {
938
- const configs = [];
939
- configs.push(...basic);
936
+ const configs = [...basic, ...yml, ...presetJsonc];
940
937
  if (enableSortKeys) {
941
938
  configs.push(...sortKeys);
942
939
  }
@@ -1012,6 +1009,7 @@ export {
1012
1009
  pluginYml,
1013
1010
  basic as presetBasic,
1014
1011
  presetJavaScript,
1012
+ presetJsonc,
1015
1013
  presetLangsExtensions,
1016
1014
  prettier,
1017
1015
  reactivityTransform,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "packageManager": "pnpm@8.10.0",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "type": "module",