@so1ve/eslint-config 1.4.0 → 1.5.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/dist/index.cjs CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var pluginComments = require('@eslint-community/eslint-plugin-eslint-comments');
6
4
  var pluginHtml = require('@html-eslint/eslint-plugin');
7
5
  var parserHtml = require('@html-eslint/parser');
@@ -40,10 +38,7 @@ var fs = require('node:fs');
40
38
  var gitignore = require('eslint-config-flat-gitignore');
41
39
  var localPkg = require('local-pkg');
42
40
 
43
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
44
-
45
- function _interopNamespace(e) {
46
- if (e && e.__esModule) return e;
41
+ function _interopNamespaceDefault(e) {
47
42
  var n = Object.create(null);
48
43
  if (e) {
49
44
  Object.keys(e).forEach(function (k) {
@@ -56,51 +51,16 @@ function _interopNamespace(e) {
56
51
  }
57
52
  });
58
53
  }
59
- n["default"] = e;
54
+ n.default = e;
60
55
  return Object.freeze(n);
61
56
  }
62
57
 
63
- var pluginComments__default = /*#__PURE__*/_interopDefaultLegacy(pluginComments);
64
- var pluginHtml__default = /*#__PURE__*/_interopDefaultLegacy(pluginHtml);
65
- var parserHtml__default = /*#__PURE__*/_interopDefaultLegacy(parserHtml);
66
- var pluginSo1ve__default = /*#__PURE__*/_interopDefaultLegacy(pluginSo1ve);
67
- var pluginSortImports__default = /*#__PURE__*/_interopDefaultLegacy(pluginSortImports);
68
- var pluginStylistic__default = /*#__PURE__*/_interopDefaultLegacy(pluginStylistic);
69
- var eslintMdx__default = /*#__PURE__*/_interopDefaultLegacy(eslintMdx);
70
- var pluginArrayFunc__default = /*#__PURE__*/_interopDefaultLegacy(pluginArrayFunc);
71
- var pluginEtc__default = /*#__PURE__*/_interopDefaultLegacy(pluginEtc);
72
- var pluginHtmlJsSupport__default = /*#__PURE__*/_interopDefaultLegacy(pluginHtmlJsSupport);
73
- var pluginImport__default = /*#__PURE__*/_interopDefaultLegacy(pluginImport);
74
- var pluginJestFormatting__default = /*#__PURE__*/_interopDefaultLegacy(pluginJestFormatting);
75
- var pluginJsonSchemaValidator__default = /*#__PURE__*/_interopDefaultLegacy(pluginJsonSchemaValidator);
76
- var pluginJsonc__default = /*#__PURE__*/_interopDefaultLegacy(pluginJsonc);
77
- var pluginMdx__default = /*#__PURE__*/_interopDefaultLegacy(pluginMdx);
78
- var pluginNode__default = /*#__PURE__*/_interopDefaultLegacy(pluginNode);
79
- var pluginNoAwaitInPromise__namespace = /*#__PURE__*/_interopNamespace(pluginNoAwaitInPromise);
80
- var pluginNoOnlyTests__default = /*#__PURE__*/_interopDefaultLegacy(pluginNoOnlyTests);
81
- var pluginOnlyError__default = /*#__PURE__*/_interopDefaultLegacy(pluginOnlyError);
82
- var pluginPromise__default = /*#__PURE__*/_interopDefaultLegacy(pluginPromise);
83
- var pluginRegexp__default = /*#__PURE__*/_interopDefaultLegacy(pluginRegexp);
84
- var pluginSolid__default = /*#__PURE__*/_interopDefaultLegacy(pluginSolid);
85
- var pluginToml__default = /*#__PURE__*/_interopDefaultLegacy(pluginToml);
86
- var pluginUnicorn__default = /*#__PURE__*/_interopDefaultLegacy(pluginUnicorn);
87
- var pluginUnusedImports__default = /*#__PURE__*/_interopDefaultLegacy(pluginUnusedImports);
88
- var pluginVitest__default = /*#__PURE__*/_interopDefaultLegacy(pluginVitest);
89
- var pluginVue__default = /*#__PURE__*/_interopDefaultLegacy(pluginVue);
90
- var pluginYaml__default = /*#__PURE__*/_interopDefaultLegacy(pluginYaml);
91
- var parserJsonc__default = /*#__PURE__*/_interopDefaultLegacy(parserJsonc);
92
- var parserToml__default = /*#__PURE__*/_interopDefaultLegacy(parserToml);
93
- var parserVue__default = /*#__PURE__*/_interopDefaultLegacy(parserVue);
94
- var parserYaml__default = /*#__PURE__*/_interopDefaultLegacy(parserYaml);
95
- var globals__default = /*#__PURE__*/_interopDefaultLegacy(globals);
96
- var tseslint__default = /*#__PURE__*/_interopDefaultLegacy(tseslint);
97
- var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
98
- var gitignore__default = /*#__PURE__*/_interopDefaultLegacy(gitignore);
58
+ var pluginNoAwaitInPromise__namespace = /*#__PURE__*/_interopNamespaceDefault(pluginNoAwaitInPromise);
99
59
 
100
60
  const comments = () => [
101
61
  {
102
62
  plugins: {
103
- "eslint-comments": pluginComments__default["default"]
63
+ "eslint-comments": pluginComments
104
64
  }
105
65
  },
106
66
  {
@@ -195,7 +155,7 @@ const formatting = (options) => {
195
155
  return [
196
156
  {
197
157
  plugins: {
198
- style: pluginStylistic__default["default"]
158
+ style: pluginStylistic
199
159
  }
200
160
  },
201
161
  {
@@ -403,13 +363,13 @@ function warnUnnecessaryOffRules() {
403
363
  const html = () => [
404
364
  {
405
365
  plugins: {
406
- "html": pluginHtml__default["default"],
407
- "html-js-support": pluginHtmlJsSupport__default["default"]
366
+ "html": pluginHtml,
367
+ "html-js-support": pluginHtmlJsSupport
408
368
  }
409
369
  },
410
370
  {
411
371
  languageOptions: {
412
- parser: parserHtml__default["default"]
372
+ parser: parserHtml
413
373
  },
414
374
  settings: {
415
375
  "html/report-bad-indent": "off"
@@ -417,7 +377,7 @@ const html = () => [
417
377
  files: [GLOB_HTML],
418
378
  rules: {
419
379
  ...renameRules(
420
- pluginHtml__default["default"].configs.recommended.rules,
380
+ pluginHtml.configs.recommended.rules,
421
381
  "@html-eslint/",
422
382
  "html/"
423
383
  ),
@@ -435,7 +395,7 @@ const ignores = () => [{ ignores: GLOB_EXCLUDE }];
435
395
  const imports = (options = {}) => [
436
396
  {
437
397
  plugins: {
438
- import: pluginImport__default["default"]
398
+ import: pluginImport
439
399
  }
440
400
  },
441
401
  {
@@ -457,7 +417,7 @@ const imports = (options = {}) => [
457
417
  }
458
418
  },
459
419
  rules: {
460
- ...pluginImport__default["default"].configs.recommended.rules,
420
+ ...pluginImport.configs.recommended.rules,
461
421
  "import/first": "error",
462
422
  "import/no-mutable-exports": "error",
463
423
  "import/no-useless-path-segments": ["error", { noUselessIndex: true }],
@@ -485,12 +445,12 @@ const javascript = ({
485
445
  } = {}) => [
486
446
  {
487
447
  plugins: {
488
- "so1ve": pluginSo1ve__default["default"],
489
- "unused-imports": pluginUnusedImports__default["default"],
490
- "sort-imports": pluginSortImports__default["default"],
491
- "array-func": pluginArrayFunc__default["default"],
492
- "json-schema-validator": pluginJsonSchemaValidator__default["default"],
493
- "regexp": pluginRegexp__default["default"],
448
+ "so1ve": pluginSo1ve,
449
+ "unused-imports": pluginUnusedImports,
450
+ "sort-imports": pluginSortImports,
451
+ "array-func": pluginArrayFunc,
452
+ "json-schema-validator": pluginJsonSchemaValidator,
453
+ "regexp": pluginRegexp,
494
454
  "no-await-in-promise": pluginNoAwaitInPromise__namespace
495
455
  }
496
456
  },
@@ -498,9 +458,9 @@ const javascript = ({
498
458
  languageOptions: {
499
459
  ecmaVersion: 2022,
500
460
  globals: {
501
- ...globals__default["default"].browser,
502
- ...globals__default["default"].es2021,
503
- ...globals__default["default"].node,
461
+ ...globals.browser,
462
+ ...globals.es2021,
463
+ ...globals.node,
504
464
  document: "readonly",
505
465
  navigator: "readonly",
506
466
  window: "readonly"
@@ -793,7 +753,7 @@ const javascript = ({
793
753
  "valid-typeof": ["error", { requireStringLiterals: true }],
794
754
  // so1ve
795
755
  "so1ve/import-dedupe": "error",
796
- "so1ve/use-async-with-await": "error",
756
+ "so1ve/require-async-with-await": "error",
797
757
  // Sort Imports
798
758
  "sort-imports/imports": ["error"],
799
759
  "sort-imports/exports": "error",
@@ -826,17 +786,17 @@ const javascript = ({
826
786
  const jsonc = () => [
827
787
  {
828
788
  plugins: {
829
- jsonc: pluginJsonc__default["default"]
789
+ jsonc: pluginJsonc
830
790
  }
831
791
  },
832
792
  {
833
793
  files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_ESLINTRC],
834
794
  languageOptions: {
835
- parser: parserJsonc__default["default"]
795
+ parser: parserJsonc
836
796
  },
837
797
  rules: {
838
- ...pluginJsonc__default["default"].configs.base.overrides[0].rules,
839
- ...pluginJsonc__default["default"].configs["recommended-with-jsonc"].rules,
798
+ ...pluginJsonc.configs.base.overrides[0].rules,
799
+ ...pluginJsonc.configs["recommended-with-jsonc"].rules,
840
800
  "jsonc/no-octal-escape": "error",
841
801
  "jsonc/quotes": "off",
842
802
  "jsonc/quotes-props": "off"
@@ -849,20 +809,20 @@ const mdx = ({
849
809
  overrides
850
810
  } = {}) => [
851
811
  {
852
- ...pluginMdx__default["default"].flat,
853
- processor: pluginMdx__default["default"].createRemarkProcessor({
812
+ ...pluginMdx.flat,
813
+ processor: pluginMdx.createRemarkProcessor({
854
814
  lintCodeBlocks: true,
855
815
  languageMapper: {}
856
816
  })
857
817
  },
858
818
  {
859
- ...pluginMdx__default["default"].flatCodeBlocks,
819
+ ...pluginMdx.flatCodeBlocks,
860
820
  files: [
861
- ...pluginMdx__default["default"].flatCodeBlocks.files,
821
+ ...pluginMdx.flatCodeBlocks.files,
862
822
  ...componentExts.map((ext) => `${GLOB_MARKDOWN}/*.${ext}`)
863
823
  ],
864
824
  rules: {
865
- ...pluginMdx__default["default"].flatCodeBlocks.rules,
825
+ ...pluginMdx.flatCodeBlocks.rules,
866
826
  "html/require-doctype": "off",
867
827
  "ts/no-redeclare": "off",
868
828
  "ts/no-unused-vars": "off",
@@ -887,7 +847,7 @@ const mdx = ({
887
847
  const node = () => [
888
848
  {
889
849
  plugins: {
890
- node: pluginNode__default["default"]
850
+ node: pluginNode
891
851
  }
892
852
  },
893
853
  {
@@ -906,7 +866,7 @@ const node = () => [
906
866
  const onlyError = () => [
907
867
  {
908
868
  plugins: {
909
- "only-error": pluginOnlyError__default["default"]
869
+ "only-error": pluginOnlyError
910
870
  }
911
871
  }
912
872
  ];
@@ -914,7 +874,7 @@ const onlyError = () => [
914
874
  const promise = () => [
915
875
  {
916
876
  plugins: {
917
- promise: pluginPromise__default["default"]
877
+ promise: pluginPromise
918
878
  }
919
879
  },
920
880
  {
@@ -930,7 +890,7 @@ const solid = ({
930
890
  } = {}) => [
931
891
  {
932
892
  plugins: {
933
- solid: pluginSolid__default["default"]
893
+ solid: pluginSolid
934
894
  }
935
895
  },
936
896
  {
@@ -943,8 +903,8 @@ const solid = ({
943
903
  }
944
904
  },
945
905
  rules: {
946
- ...pluginSolid__default["default"].configs.recommended.rules,
947
- ...typescript ? pluginSolid__default["default"].configs.typescript.rules : {},
906
+ ...pluginSolid.configs.recommended.rules,
907
+ ...typescript ? pluginSolid.configs.typescript.rules : {},
948
908
  ...overrides
949
909
  }
950
910
  }
@@ -953,7 +913,7 @@ const solid = ({
953
913
  const sortImports = () => [
954
914
  {
955
915
  plugins: {
956
- "sort-imports": pluginSortImports__default["default"]
916
+ "sort-imports": pluginSortImports
957
917
  }
958
918
  },
959
919
  {
@@ -967,15 +927,15 @@ const sortImports = () => [
967
927
  const test = ({ overrides } = {}) => [
968
928
  {
969
929
  plugins: {
970
- "no-only-tests": pluginNoOnlyTests__default["default"],
971
- "vitest": pluginVitest__default["default"],
972
- "jest-formatting": pluginJestFormatting__default["default"]
930
+ "no-only-tests": pluginNoOnlyTests,
931
+ "vitest": pluginVitest,
932
+ "jest-formatting": pluginJestFormatting
973
933
  }
974
934
  },
975
935
  {
976
936
  files: GLOB_TESTS,
977
937
  rules: {
978
- ...pluginVitest__default["default"].configs.recommended.rules,
938
+ ...pluginVitest.configs.recommended.rules,
979
939
  "no-only-tests/no-only-tests": "error",
980
940
  "vitest/expect-expect": "off",
981
941
  "vitest/valid-title": "off",
@@ -1001,16 +961,16 @@ const test = ({ overrides } = {}) => [
1001
961
  const toml = ({ overrides } = {}) => [
1002
962
  {
1003
963
  plugins: {
1004
- toml: pluginToml__default["default"]
964
+ toml: pluginToml
1005
965
  }
1006
966
  },
1007
967
  {
1008
968
  languageOptions: {
1009
- parser: parserToml__default["default"]
969
+ parser: parserToml
1010
970
  },
1011
971
  files: [GLOB_TOML],
1012
972
  rules: {
1013
- ...pluginToml__default["default"].configs.recommended.rules,
973
+ ...pluginToml.configs.recommended.rules,
1014
974
  "no-irregular-whitespace": "off",
1015
975
  "spaced-comment": "off",
1016
976
  ...overrides
@@ -1062,15 +1022,15 @@ function typescript({
1062
1022
  {
1063
1023
  // Install the plugins without globs, so they can be configured separately.
1064
1024
  plugins: {
1065
- import: pluginImport__default["default"],
1066
- ts: tseslint__default["default"].plugin,
1067
- etc: pluginEtc__default["default"]
1025
+ import: pluginImport,
1026
+ ts: tseslint.plugin,
1027
+ etc: pluginEtc
1068
1028
  }
1069
1029
  },
1070
1030
  {
1071
1031
  files: [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],
1072
1032
  languageOptions: {
1073
- parser: tseslint__default["default"].parser,
1033
+ parser: tseslint.parser,
1074
1034
  parserOptions: {
1075
1035
  sourceType: "module",
1076
1036
  extraFileExtensions: componentExts.map((ext) => `.${ext}`),
@@ -1087,12 +1047,12 @@ function typescript({
1087
1047
  },
1088
1048
  rules: {
1089
1049
  ...renameRules(
1090
- tseslint__default["default"].configs.eslintRecommended.rules,
1050
+ tseslint.configs.eslintRecommended.rules,
1091
1051
  "@typescript-eslint/",
1092
1052
  "ts/"
1093
1053
  ),
1094
1054
  ...renameRules(
1095
- tseslint__default["default"].configs.recommended.map((config) => config.rules).filter(Boolean).reduce((a, b) => ({ ...a, ...b }), {}),
1055
+ tseslint.configs.recommended.map((config) => config.rules).filter(Boolean).reduce((a, b) => ({ ...a, ...b }), {}),
1096
1056
  "@typescript-eslint/",
1097
1057
  "ts/"
1098
1058
  ),
@@ -1225,7 +1185,7 @@ function typescript({
1225
1185
  files: [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],
1226
1186
  ignores: [GLOB_MARKDOWN_CODE],
1227
1187
  languageOptions: {
1228
- parser: tseslint__default["default"].parser,
1188
+ parser: tseslint.parser,
1229
1189
  parserOptions: {
1230
1190
  sourceType: "module",
1231
1191
  // EXPERIMENTAL_useProjectService: true,
@@ -1268,7 +1228,7 @@ function typescript({
1268
1228
  const unicorn = () => [
1269
1229
  {
1270
1230
  plugins: {
1271
- unicorn: pluginUnicorn__default["default"]
1231
+ unicorn: pluginUnicorn
1272
1232
  },
1273
1233
  rules: {
1274
1234
  "unicorn/throw-new-error": "error",
@@ -1322,28 +1282,28 @@ const vue = ({
1322
1282
  } = {}) => [
1323
1283
  {
1324
1284
  plugins: {
1325
- vue: pluginVue__default["default"]
1285
+ vue: pluginVue
1326
1286
  }
1327
1287
  },
1328
1288
  {
1329
1289
  files: [GLOB_VUE],
1330
1290
  languageOptions: {
1331
- parser: parserVue__default["default"],
1291
+ parser: parserVue,
1332
1292
  parserOptions: {
1333
1293
  ecmaFeatures: {
1334
1294
  jsx: true
1335
1295
  },
1336
1296
  extraFileExtensions: [".vue"],
1337
- parser: typescript ? tseslint__default["default"].parser : null,
1297
+ parser: typescript ? tseslint.parser : null,
1338
1298
  sourceType: "module"
1339
1299
  }
1340
1300
  },
1341
- processor: pluginVue__default["default"].processors[".vue"],
1301
+ processor: pluginVue.processors[".vue"],
1342
1302
  rules: {
1343
- ...pluginVue__default["default"].configs.base.rules,
1344
- ...pluginVue__default["default"].configs["vue3-essential"].rules,
1345
- ...pluginVue__default["default"].configs["vue3-strongly-recommended"].rules,
1346
- ...pluginVue__default["default"].configs["vue3-recommended"].rules,
1303
+ ...pluginVue.configs.base.rules,
1304
+ ...pluginVue.configs["vue3-essential"].rules,
1305
+ ...pluginVue.configs["vue3-strongly-recommended"].rules,
1306
+ ...pluginVue.configs["vue3-recommended"].rules,
1347
1307
  "no-unused-vars": "off",
1348
1308
  "no-undef": "off",
1349
1309
  "ts/no-unused-vars": "off",
@@ -1514,15 +1474,15 @@ const vue = ({
1514
1474
  const yaml = ({ overrides } = {}) => [
1515
1475
  {
1516
1476
  plugins: {
1517
- yaml: pluginYaml__default["default"]
1477
+ yaml: pluginYaml
1518
1478
  },
1519
1479
  languageOptions: {
1520
- parser: parserYaml__default["default"]
1480
+ parser: parserYaml
1521
1481
  },
1522
1482
  files: [GLOB_YAML],
1523
1483
  rules: {
1524
- ...renameRules(pluginYaml__default["default"].configs.prettier.rules, "yml/", "yaml/"),
1525
- ...renameRules(pluginYaml__default["default"].configs.recommended.rules, "yml/", "yaml/"),
1484
+ ...renameRules(pluginYaml.configs.prettier.rules, "yml/", "yaml/"),
1485
+ ...renameRules(pluginYaml.configs.recommended.rules, "yml/", "yaml/"),
1526
1486
  "yaml/no-empty-document": "off",
1527
1487
  "spaced-comment": "off",
1528
1488
  ...overrides
@@ -1553,11 +1513,11 @@ function so1ve(options = {}, ...userConfigs) {
1553
1513
  const configs = [];
1554
1514
  if (enableGitignore) {
1555
1515
  if (typeof enableGitignore === "boolean") {
1556
- if (fs__default["default"].existsSync(".gitignore")) {
1557
- configs.push([gitignore__default["default"]()]);
1516
+ if (fs.existsSync(".gitignore")) {
1517
+ configs.push([gitignore()]);
1558
1518
  }
1559
1519
  } else {
1560
- configs.push([gitignore__default["default"](enableGitignore)]);
1520
+ configs.push([gitignore(enableGitignore)]);
1561
1521
  }
1562
1522
  }
1563
1523
  configs.push(
@@ -1659,131 +1619,38 @@ function getOverrides(options, key) {
1659
1619
  };
1660
1620
  }
1661
1621
 
1662
- Object.defineProperty(exports, 'pluginComments', {
1663
- enumerable: true,
1664
- get: function () { return pluginComments__default["default"]; }
1665
- });
1666
- Object.defineProperty(exports, 'pluginHtml', {
1667
- enumerable: true,
1668
- get: function () { return pluginHtml__default["default"]; }
1669
- });
1670
- Object.defineProperty(exports, 'parserHtml', {
1671
- enumerable: true,
1672
- get: function () { return parserHtml__default["default"]; }
1673
- });
1674
- Object.defineProperty(exports, 'pluginSo1ve', {
1675
- enumerable: true,
1676
- get: function () { return pluginSo1ve__default["default"]; }
1677
- });
1678
- Object.defineProperty(exports, 'pluginSortImports', {
1679
- enumerable: true,
1680
- get: function () { return pluginSortImports__default["default"]; }
1681
- });
1682
- Object.defineProperty(exports, 'pluginStylistic', {
1683
- enumerable: true,
1684
- get: function () { return pluginStylistic__default["default"]; }
1685
- });
1686
- Object.defineProperty(exports, 'parserMdx', {
1687
- enumerable: true,
1688
- get: function () { return eslintMdx__default["default"]; }
1689
- });
1690
- Object.defineProperty(exports, 'pluginArrayFunc', {
1691
- enumerable: true,
1692
- get: function () { return pluginArrayFunc__default["default"]; }
1693
- });
1694
- Object.defineProperty(exports, 'pluginEtc', {
1695
- enumerable: true,
1696
- get: function () { return pluginEtc__default["default"]; }
1697
- });
1698
- Object.defineProperty(exports, 'pluginHtmlJsSupport', {
1699
- enumerable: true,
1700
- get: function () { return pluginHtmlJsSupport__default["default"]; }
1701
- });
1702
- Object.defineProperty(exports, 'pluginImport', {
1703
- enumerable: true,
1704
- get: function () { return pluginImport__default["default"]; }
1705
- });
1706
- Object.defineProperty(exports, 'pluginJestFormatting', {
1707
- enumerable: true,
1708
- get: function () { return pluginJestFormatting__default["default"]; }
1709
- });
1710
- Object.defineProperty(exports, 'pluginJsonSchemaValidator', {
1711
- enumerable: true,
1712
- get: function () { return pluginJsonSchemaValidator__default["default"]; }
1713
- });
1714
- Object.defineProperty(exports, 'pluginJsonc', {
1715
- enumerable: true,
1716
- get: function () { return pluginJsonc__default["default"]; }
1717
- });
1718
- Object.defineProperty(exports, 'pluginMdx', {
1719
- enumerable: true,
1720
- get: function () { return pluginMdx__default["default"]; }
1721
- });
1722
- Object.defineProperty(exports, 'pluginNode', {
1723
- enumerable: true,
1724
- get: function () { return pluginNode__default["default"]; }
1725
- });
1622
+ exports.pluginComments = pluginComments;
1623
+ exports.pluginHtml = pluginHtml;
1624
+ exports.parserHtml = parserHtml;
1625
+ exports.pluginSo1ve = pluginSo1ve;
1626
+ exports.pluginSortImports = pluginSortImports;
1627
+ exports.pluginStylistic = pluginStylistic;
1628
+ exports.parserMdx = eslintMdx;
1629
+ exports.pluginArrayFunc = pluginArrayFunc;
1630
+ exports.pluginEtc = pluginEtc;
1631
+ exports.pluginHtmlJsSupport = pluginHtmlJsSupport;
1632
+ exports.pluginImport = pluginImport;
1633
+ exports.pluginJestFormatting = pluginJestFormatting;
1634
+ exports.pluginJsonSchemaValidator = pluginJsonSchemaValidator;
1635
+ exports.pluginJsonc = pluginJsonc;
1636
+ exports.pluginMdx = pluginMdx;
1637
+ exports.pluginNode = pluginNode;
1726
1638
  exports.pluginNoAwaitInPromise = pluginNoAwaitInPromise__namespace;
1727
- Object.defineProperty(exports, 'pluginNoOnlyTests', {
1728
- enumerable: true,
1729
- get: function () { return pluginNoOnlyTests__default["default"]; }
1730
- });
1731
- Object.defineProperty(exports, 'pluginOnlyError', {
1732
- enumerable: true,
1733
- get: function () { return pluginOnlyError__default["default"]; }
1734
- });
1735
- Object.defineProperty(exports, 'pluginPromise', {
1736
- enumerable: true,
1737
- get: function () { return pluginPromise__default["default"]; }
1738
- });
1739
- Object.defineProperty(exports, 'pluginRegexp', {
1740
- enumerable: true,
1741
- get: function () { return pluginRegexp__default["default"]; }
1742
- });
1743
- Object.defineProperty(exports, 'pluginSolid', {
1744
- enumerable: true,
1745
- get: function () { return pluginSolid__default["default"]; }
1746
- });
1747
- Object.defineProperty(exports, 'pluginToml', {
1748
- enumerable: true,
1749
- get: function () { return pluginToml__default["default"]; }
1750
- });
1751
- Object.defineProperty(exports, 'pluginUnicorn', {
1752
- enumerable: true,
1753
- get: function () { return pluginUnicorn__default["default"]; }
1754
- });
1755
- Object.defineProperty(exports, 'pluginUnusedImports', {
1756
- enumerable: true,
1757
- get: function () { return pluginUnusedImports__default["default"]; }
1758
- });
1759
- Object.defineProperty(exports, 'pluginVitest', {
1760
- enumerable: true,
1761
- get: function () { return pluginVitest__default["default"]; }
1762
- });
1763
- Object.defineProperty(exports, 'pluginVue', {
1764
- enumerable: true,
1765
- get: function () { return pluginVue__default["default"]; }
1766
- });
1767
- Object.defineProperty(exports, 'pluginYaml', {
1768
- enumerable: true,
1769
- get: function () { return pluginYaml__default["default"]; }
1770
- });
1771
- Object.defineProperty(exports, 'parserJsonc', {
1772
- enumerable: true,
1773
- get: function () { return parserJsonc__default["default"]; }
1774
- });
1775
- Object.defineProperty(exports, 'parserToml', {
1776
- enumerable: true,
1777
- get: function () { return parserToml__default["default"]; }
1778
- });
1779
- Object.defineProperty(exports, 'parserVue', {
1780
- enumerable: true,
1781
- get: function () { return parserVue__default["default"]; }
1782
- });
1783
- Object.defineProperty(exports, 'parserYaml', {
1784
- enumerable: true,
1785
- get: function () { return parserYaml__default["default"]; }
1786
- });
1639
+ exports.pluginNoOnlyTests = pluginNoOnlyTests;
1640
+ exports.pluginOnlyError = pluginOnlyError;
1641
+ exports.pluginPromise = pluginPromise;
1642
+ exports.pluginRegexp = pluginRegexp;
1643
+ exports.pluginSolid = pluginSolid;
1644
+ exports.pluginToml = pluginToml;
1645
+ exports.pluginUnicorn = pluginUnicorn;
1646
+ exports.pluginUnusedImports = pluginUnusedImports;
1647
+ exports.pluginVitest = pluginVitest;
1648
+ exports.pluginVue = pluginVue;
1649
+ exports.pluginYaml = pluginYaml;
1650
+ exports.parserJsonc = parserJsonc;
1651
+ exports.parserToml = parserToml;
1652
+ exports.parserVue = parserVue;
1653
+ exports.parserYaml = parserYaml;
1787
1654
  exports.GLOB_ALL_SRC = GLOB_ALL_SRC;
1788
1655
  exports.GLOB_CSS = GLOB_CSS;
1789
1656
  exports.GLOB_DTS = GLOB_DTS;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import so1vePlugin from '@so1ve/eslint-plugin';
2
2
  export { default as pluginSo1ve } from '@so1ve/eslint-plugin';
3
- import { ParserOptions } from '@typescript-eslint/parser';
3
+ import { ParserOptions } from '@typescript-eslint/utils/ts-eslint';
4
4
  import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
5
5
  import { Rules, FlatESLintConfigItem } from 'eslint-define-config';
6
6
  export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
@@ -237,4 +237,4 @@ declare function recordRulesStateConfigs(configs: ConfigItem[]): ConfigItem[];
237
237
  declare function recordRulesState(rules: ConfigItem["rules"]): ConfigItem["rules"];
238
238
  declare function warnUnnecessaryOffRules(): void;
239
239
 
240
- export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DTS, GLOB_ESLINTRC, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_PACKAGEJSON, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_VUE, GLOB_YAML, Options, OptionsComponentExts, OptionsHasTypeScript, OptionsOverrides, OptionsTypeScriptParserOptions, RenamedRules, ResolvedOptions, comments, formatting, getOverrides, html, ignores, imports, javascript, jsonc, mdx, node, onlyError, promise, recordRulesState, recordRulesStateConfigs, renameRules, resolveSubOptions, so1ve, solid, sortImports, test, toml, typescript, unicorn, vue, warnUnnecessaryOffRules, yaml };
240
+ export { type ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DTS, GLOB_ESLINTRC, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_PACKAGEJSON, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_VUE, GLOB_YAML, type Options, type OptionsComponentExts, type OptionsHasTypeScript, type OptionsOverrides, type OptionsTypeScriptParserOptions, type RenamedRules, type ResolvedOptions, comments, formatting, getOverrides, html, ignores, imports, javascript, jsonc, mdx, node, onlyError, promise, recordRulesState, recordRulesStateConfigs, renameRules, resolveSubOptions, so1ve, solid, sortImports, test, toml, typescript, unicorn, vue, warnUnnecessaryOffRules, yaml };
package/dist/index.mjs CHANGED
@@ -763,7 +763,7 @@ const javascript = ({
763
763
  "valid-typeof": ["error", { requireStringLiterals: true }],
764
764
  // so1ve
765
765
  "so1ve/import-dedupe": "error",
766
- "so1ve/use-async-with-await": "error",
766
+ "so1ve/require-async-with-await": "error",
767
767
  // Sort Imports
768
768
  "sort-imports/imports": ["error"],
769
769
  "sort-imports/exports": "error",
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@so1ve/eslint-config",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
5
5
  "description": "Ray's eslint config.",
6
6
  "keywords": [
7
7
  "eslint",
8
8
  "eslint-config"
9
9
  ],
10
- "homepage": "https://github.com/so1ve/eslint-config#readme",
10
+ "homepage": "https://github.com/so1ve/codestyle-config#readme",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git+https://github.com/so1ve/eslint-config.git"
13
+ "url": "git+https://github.com/so1ve/codestyle-config.git"
14
14
  },
15
15
  "bugs": {
16
- "url": "https://github.com/so1ve/eslint-config/issues"
16
+ "url": "https://github.com/so1ve/codestyle-config/issues"
17
17
  },
18
18
  "license": "MIT",
19
19
  "exports": {
@@ -32,51 +32,51 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@eslint-community/eslint-plugin-eslint-comments": "^4.0.0",
36
- "@html-eslint/eslint-plugin": "^0.19.1",
37
- "@html-eslint/parser": "^0.19.1",
38
- "@stylistic/eslint-plugin": "^1.6.0",
39
- "@unocss/eslint-config": "^0.55.0",
40
- "eslint-config-flat-gitignore": "^0.1.0",
35
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
36
+ "@html-eslint/eslint-plugin": "^0.23.1",
37
+ "@html-eslint/parser": "^0.23.0",
38
+ "@stylistic/eslint-plugin": "^1.6.2",
39
+ "@unocss/eslint-config": "^0.58.5",
40
+ "eslint-config-flat-gitignore": "^0.1.3",
41
41
  "eslint-define-config": "^1.21.0",
42
- "eslint-import-resolver-typescript": "^3.5.5",
43
- "eslint-mdx": "^2.2.0",
44
- "eslint-plugin-array-func": "^3.1.8",
42
+ "eslint-import-resolver-typescript": "^3.6.1",
43
+ "eslint-mdx": "^2.3.4",
44
+ "eslint-plugin-array-func": "^5.0.1",
45
45
  "eslint-plugin-case-police": "^0.6.1",
46
46
  "eslint-plugin-etc": "^2.0.3",
47
47
  "eslint-plugin-html": "^7.1.0",
48
48
  "eslint-plugin-i": "2.29.0",
49
49
  "eslint-plugin-jest-formatting": "^3.1.0",
50
- "eslint-plugin-json-schema-validator": "^4.6.0",
51
- "eslint-plugin-jsonc": "^2.9.0",
52
- "eslint-plugin-mdx": "^2.2.0",
53
- "eslint-plugin-n": "^16.0.1",
54
- "eslint-plugin-no-await-in-promise": "^1.1.5",
50
+ "eslint-plugin-json-schema-validator": "^4.8.3",
51
+ "eslint-plugin-jsonc": "^2.13.0",
52
+ "eslint-plugin-mdx": "^2.3.4",
53
+ "eslint-plugin-n": "^16.6.2",
54
+ "eslint-plugin-no-await-in-promise": "1.1.5",
55
55
  "eslint-plugin-no-explicit-type-exports": "^0.12.1",
56
56
  "eslint-plugin-no-only-tests": "^3.1.0",
57
57
  "eslint-plugin-only-error": "^1.0.2",
58
58
  "eslint-plugin-promise": "^6.1.1",
59
- "eslint-plugin-regexp": "^1.15.0",
60
- "eslint-plugin-solid": "^0.13.0",
61
- "eslint-plugin-toml": "^0.5.0",
62
- "eslint-plugin-unicorn": "^48.0.1",
63
- "eslint-plugin-unused-imports": "^3.0.0",
64
- "eslint-plugin-vitest": "^0.3.0",
65
- "eslint-plugin-vue": "^9.17.0",
66
- "eslint-plugin-yml": "^1.8.0",
67
- "globals": "^13.22.0",
68
- "jsonc-eslint-parser": "^2.3.0",
59
+ "eslint-plugin-regexp": "^2.2.0",
60
+ "eslint-plugin-solid": "^0.13.1",
61
+ "eslint-plugin-toml": "^0.9.2",
62
+ "eslint-plugin-unicorn": "^51.0.1",
63
+ "eslint-plugin-unused-imports": "^3.1.0",
64
+ "eslint-plugin-vitest": "^0.3.22",
65
+ "eslint-plugin-vue": "^9.22.0",
66
+ "eslint-plugin-yml": "^1.12.2",
67
+ "globals": "^14.0.0",
68
+ "jsonc-eslint-parser": "^2.4.0",
69
69
  "local-pkg": "^0.5.0",
70
- "toml-eslint-parser": "^0.6.0",
71
- "typescript-eslint": "^7.0.1",
72
- "vue-eslint-parser": "^9.3.1",
70
+ "toml-eslint-parser": "^0.9.3",
71
+ "typescript-eslint": "^7.1.0",
72
+ "vue-eslint-parser": "^9.4.2",
73
73
  "yaml-eslint-parser": "^1.2.2",
74
- "@so1ve/eslint-plugin": "1.4.0",
75
- "@so1ve/eslint-plugin-sort-imports": "1.4.0"
74
+ "@so1ve/eslint-plugin": "1.5.0",
75
+ "@so1ve/eslint-plugin-sort-imports": "1.5.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@typescript-eslint/utils": "^6.2.0",
79
- "eslint": "^8.46.0"
78
+ "@typescript-eslint/utils": "^7.1.0",
79
+ "eslint": "^8.57.0"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "eslint": ">=8.40.0",