@shibanet0/datamitsu-config 0.0.1-alpha-9 → 0.0.1-alpha-11

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 (81) hide show
  1. package/bin/datamitsu.mjs +15 -8
  2. package/bin/tsc.mjs +8 -4
  3. package/bin/tsx.mjs +1 -1
  4. package/datamitsu.js +343 -101
  5. package/dist/array-func-M6KDQ7DN.js +14 -0
  6. package/dist/array-func-NPT6GB52.js +14 -0
  7. package/dist/chunk-7PGRJISO.js +24 -0
  8. package/dist/clean-package/index.js +12 -4
  9. package/dist/dist-SV6KNVWH.js +145 -0
  10. package/dist/eslint/globs.d.ts +16 -0
  11. package/dist/eslint/index.d.ts +1 -0
  12. package/dist/eslint/index.js +954 -55
  13. package/dist/eslint/plugins/array-func.d.ts +2 -0
  14. package/dist/eslint/plugins/arrayFunc.d.ts +2 -0
  15. package/dist/eslint/plugins/deMorgan.d.ts +2 -0
  16. package/dist/eslint/plugins/import.d.ts +2 -0
  17. package/dist/eslint/plugins/javascript.d.ts +2 -0
  18. package/dist/eslint/plugins/json-schema-validator.d.ts +2 -0
  19. package/dist/eslint/plugins/json.d.ts +2 -0
  20. package/dist/eslint/plugins/jsx-a11y.d.ts +2 -0
  21. package/dist/eslint/plugins/n.d.ts +4 -0
  22. package/dist/eslint/plugins/no-use-extend-native.d.ts +2 -0
  23. package/dist/eslint/plugins/perfectionist copy.d.ts +2 -0
  24. package/dist/eslint/plugins/perfectionist.d.ts +2 -2
  25. package/dist/eslint/plugins/playwright.d.ts +2 -0
  26. package/dist/eslint/plugins/prettier.d.ts +2 -0
  27. package/dist/eslint/plugins/promise.d.ts +2 -0
  28. package/dist/eslint/plugins/react copy.d.ts +2 -0
  29. package/dist/eslint/plugins/react-hooks.d.ts +2 -0
  30. package/dist/eslint/plugins/react-perf.d.ts +2 -0
  31. package/dist/eslint/plugins/react-prefer-function-component.d.ts +2 -0
  32. package/dist/eslint/plugins/react-refresh.d.ts +2 -0
  33. package/dist/eslint/plugins/react.d.ts +2 -0
  34. package/dist/eslint/plugins/security.d.ts +2 -0
  35. package/dist/eslint/plugins/sonarjs.d.ts +2 -0
  36. package/dist/eslint/plugins/storybook.d.ts +2 -0
  37. package/dist/eslint/plugins/toml.d.ts +2 -0
  38. package/dist/eslint/plugins/turbo.d.ts +2 -0
  39. package/dist/eslint/plugins/typescript.d.ts +2 -0
  40. package/dist/eslint/plugins/unicorn copy.d.ts +2 -0
  41. package/dist/eslint/plugins/unicorn.d.ts +2 -0
  42. package/dist/eslint/plugins/unused-imports.d.ts +2 -0
  43. package/dist/eslint/plugins/vanilla-extract.d.ts +2 -0
  44. package/dist/eslint/plugins/yml.d.ts +2 -0
  45. package/dist/eslint/types.d.ts +34 -0
  46. package/dist/globs/globs.d.ts +1 -0
  47. package/dist/json-LWTL4ZNK.js +18 -0
  48. package/dist/json-ZAIWY2QG.js +18 -0
  49. package/dist/jsx-a11y-DENBIOMT.js +7 -0
  50. package/dist/no-use-extend-native-WXT3EZT4.js +7 -0
  51. package/dist/no-use-extend-native-ZPCF5GPF.js +7 -0
  52. package/dist/oxlint/index.d.ts +2 -0
  53. package/dist/playwright-BGT6YZAD.js +15 -0
  54. package/dist/playwright-EQJ74ILC.js +15 -0
  55. package/dist/prettier/index.js +1 -1
  56. package/dist/prettier-STALF5K5.js +7 -0
  57. package/dist/prettier-VWVEU6BH.js +7 -0
  58. package/dist/promise-4UOFB7NK.js +7 -0
  59. package/dist/promise-GMCQOXN6.js +7 -0
  60. package/dist/react-QIEZHZI3.js +61 -0
  61. package/dist/react-SBV4CSZW.js +10 -0
  62. package/dist/react-hooks-KCD4FRWS.js +7 -0
  63. package/dist/react-hooks-R6UCTUUG.js +7 -0
  64. package/dist/react-perf-I32W4SW7.js +7 -0
  65. package/dist/react-prefer-function-component-ZCGU3TJA.js +7 -0
  66. package/dist/security-QVOYXU25.js +7 -0
  67. package/dist/sonarjs-L2LS4QXC.js +16 -0
  68. package/dist/storybook-HBDSOOCR.js +7 -0
  69. package/dist/storybook-IETULN4Z.js +8 -0
  70. package/dist/storybook-IFYU76LT.js +7 -0
  71. package/dist/toml-UYLTOG46.js +7 -0
  72. package/dist/toml-Y76F5J2F.js +7 -0
  73. package/dist/turbo-BF4PT2F4.js +7 -0
  74. package/dist/turbo-ZBSVFMOO.js +23 -0
  75. package/dist/unicorn-CIVFI3IM.js +17 -0
  76. package/dist/unused-imports-7PV5NHDW.js +25 -0
  77. package/dist/unused-imports-GCXR6T7K.js +31 -0
  78. package/dist/unused-imports-PHM72DI2.js +25 -0
  79. package/dist/vanilla-extract-52HEEDJV.js +11 -0
  80. package/oxlint_configuration_schema.json +712 -0
  81. package/package.json +12 -4
package/datamitsu.js CHANGED
@@ -738,12 +738,8 @@ var mapOfApps = {
738
738
  // },
739
739
  eslint: {
740
740
  shell: {
741
- args: [
742
- facts().env.DATAMITSU_APP_ESLINT_BINARY_FILEPATH || "",
743
- "-c",
744
- tools.Path.join(facts().cwd, "eslint.config.ts")
745
- ],
746
- name: "node"
741
+ args: [],
742
+ name: facts().env.DATAMITSU_APP_ESLINT_BINARY_FILEPATH || ""
747
743
  }
748
744
  },
749
745
  gitleaks: {
@@ -775,6 +771,12 @@ var mapOfApps = {
775
771
  // https://www.npmjs.com/package/@mermaid-js/mermaid-cli
776
772
  pnpm: { packageName: "@mermaid-js/mermaid-cli", version: "11.12.0" }
777
773
  },
774
+ oxlint: {
775
+ shell: {
776
+ args: ["-c", tools.Path.join(facts().cwd, ".oxlintrc.json")],
777
+ name: facts().env.DATAMITSU_APP_OXLINT_BINARY_FILEPATH || ""
778
+ }
779
+ },
778
780
  prettier: {
779
781
  shell: {
780
782
  args: [facts().env.DATAMITSU_APP_PRETTIER_BINARY_FILEPATH || ""],
@@ -863,14 +865,14 @@ var mapOfApps = {
863
865
 
864
866
  // package.json
865
867
  var name = "@shibanet0/datamitsu-config";
866
- var version = "0.0.1-alpha-9";
868
+ var version = "0.0.1-alpha-11";
867
869
  var dependencies = {
868
870
  "@antebudimir/eslint-plugin-vanilla-extract": "1.16.0",
869
871
  "@commitlint/cli": "20.2.0",
870
872
  "@commitlint/config-conventional": "20.2.0",
871
873
  "@commitlint/format": "20.2.0",
872
874
  "@commitlint/types": "20.2.0",
873
- "@datamitsu/datamitsu": "0.0.1-alpha-18",
875
+ "@datamitsu/datamitsu": "0.0.1-alpha-22",
874
876
  "@eslint/config-helpers": "0.5.0",
875
877
  "@eslint/js": "9.39.2",
876
878
  "@prettier/plugin-xml": "3.4.2",
@@ -878,13 +880,16 @@ var dependencies = {
878
880
  "conventional-changelog-conventionalcommits": "9.1.0",
879
881
  eslint: "9.39.2",
880
882
  "eslint-config-prettier": "10.1.8",
883
+ "eslint-flat-config-utils": "2.1.4",
881
884
  "eslint-plugin-array-func": "5.1.0",
885
+ "eslint-plugin-de-morgan": "2.0.0",
882
886
  "eslint-plugin-import": "2.32.0",
883
887
  "eslint-plugin-json": "4.0.1",
884
888
  "eslint-plugin-json-schema-validator": "5.5.0",
885
889
  "eslint-plugin-jsx-a11y": "6.10.2",
886
890
  "eslint-plugin-n": "17.23.1",
887
891
  "eslint-plugin-no-use-extend-native": "0.7.2",
892
+ "eslint-plugin-oxlint": "1.34.0",
888
893
  "eslint-plugin-perfectionist": "4.15.1",
889
894
  "eslint-plugin-playwright": "2.4.0",
890
895
  "eslint-plugin-promise": "7.2.1",
@@ -893,16 +898,18 @@ var dependencies = {
893
898
  "eslint-plugin-react-perf": "3.3.3",
894
899
  "eslint-plugin-react-prefer-function-component": "5.0.0",
895
900
  "eslint-plugin-react-refresh": "0.4.26",
901
+ "eslint-plugin-regexp": "2.10.0",
896
902
  "eslint-plugin-security": "3.0.1",
897
903
  "eslint-plugin-sonarjs": "3.0.5",
898
904
  "eslint-plugin-storybook": "10.1.10",
899
905
  "eslint-plugin-toml": "0.12.0",
900
906
  "eslint-plugin-turbo": "2.6.3",
901
907
  "eslint-plugin-unicorn": "62.0.0",
902
- "eslint-plugin-unused-imports": "4.3.0",
903
908
  "eslint-plugin-yaml": "1.1.3",
904
909
  "eslint-plugin-yml": "1.19.1",
910
+ globals: "16.5.0",
905
911
  knip: "5.75.1",
912
+ oxlint: "1.34.0",
906
913
  prettier: "3.7.4",
907
914
  "prettier-plugin-embed": "0.5.0",
908
915
  "prettier-plugin-jsdoc": "1.8.0",
@@ -913,9 +920,162 @@ var dependencies = {
913
920
  tsup: "8.5.1",
914
921
  tsx: "4.21.0",
915
922
  "type-fest": "5.3.1",
923
+ typescript: "5.9.3",
916
924
  "typescript-eslint": "8.50.0"
917
925
  };
918
926
 
927
+ // src/oxlint/index.ts
928
+ var disabledRules = {
929
+ "no-unsafe-optional-chaining": "off",
930
+ "no-unused-vars": "off",
931
+ "no-useless-rename": "off",
932
+ "typescript/triple-slash-reference": "off",
933
+ "unicorn/no-single-promise-in-promise-methods": "off"
934
+ };
935
+ var oxlintConfig = {
936
+ $schema: `./node_modules/${name}/oxlint_configuration_schema.json`,
937
+ categories: {},
938
+ env: {
939
+ builtin: true
940
+ },
941
+ globals: {},
942
+ ignorePatterns: [],
943
+ plugins: ["unicorn", "typescript", "oxc"],
944
+ rules: {
945
+ "constructor-super": "warn",
946
+ "for-direction": "warn",
947
+ "no-async-promise-executor": "warn",
948
+ "no-caller": "warn",
949
+ "no-class-assign": "warn",
950
+ "no-compare-neg-zero": "warn",
951
+ "no-cond-assign": "warn",
952
+ "no-const-assign": "warn",
953
+ "no-constant-binary-expression": "warn",
954
+ "no-constant-condition": "warn",
955
+ "no-control-regex": "warn",
956
+ "no-debugger": "warn",
957
+ "no-delete-var": "warn",
958
+ "no-dupe-class-members": "warn",
959
+ "no-dupe-else-if": "warn",
960
+ "no-dupe-keys": "warn",
961
+ "no-duplicate-case": "warn",
962
+ "no-empty-character-class": "warn",
963
+ "no-empty-pattern": "warn",
964
+ "no-empty-static-block": "warn",
965
+ "no-eval": "warn",
966
+ "no-ex-assign": "warn",
967
+ "no-extra-boolean-cast": "warn",
968
+ "no-func-assign": "warn",
969
+ "no-global-assign": "warn",
970
+ "no-import-assign": "warn",
971
+ "no-invalid-regexp": "warn",
972
+ "no-irregular-whitespace": "warn",
973
+ "no-loss-of-precision": "warn",
974
+ "no-new-native-nonconstructor": "warn",
975
+ "no-nonoctal-decimal-escape": "warn",
976
+ "no-obj-calls": "warn",
977
+ "no-self-assign": "warn",
978
+ "no-setter-return": "warn",
979
+ "no-shadow-restricted-names": "warn",
980
+ "no-sparse-arrays": "warn",
981
+ "no-this-before-super": "warn",
982
+ "no-unassigned-vars": "warn",
983
+ "no-unsafe-finally": "warn",
984
+ "no-unsafe-negation": "warn",
985
+ "no-unsafe-optional-chaining": "warn",
986
+ "no-unused-expressions": "warn",
987
+ "no-unused-labels": "warn",
988
+ "no-unused-private-class-members": "warn",
989
+ "no-unused-vars": "warn",
990
+ "no-useless-backreference": "warn",
991
+ "no-useless-catch": "warn",
992
+ "no-useless-escape": "warn",
993
+ "no-useless-rename": "warn",
994
+ "no-with": "warn",
995
+ "oxc/bad-array-method-on-arguments": "warn",
996
+ "oxc/bad-char-at-comparison": "warn",
997
+ "oxc/bad-comparison-sequence": "warn",
998
+ "oxc/bad-min-max-func": "warn",
999
+ "oxc/bad-object-literal-comparison": "warn",
1000
+ "oxc/bad-replace-all-arg": "warn",
1001
+ "oxc/const-comparisons": "warn",
1002
+ "oxc/double-comparisons": "warn",
1003
+ "oxc/erasing-op": "warn",
1004
+ "oxc/missing-throw": "warn",
1005
+ "oxc/number-arg-out-of-range": "warn",
1006
+ "oxc/only-used-in-recursion": "warn",
1007
+ "oxc/uninvoked-array-callback": "warn",
1008
+ "require-yield": "warn",
1009
+ "typescript/await-thenable": "warn",
1010
+ "typescript/no-array-delete": "warn",
1011
+ "typescript/no-base-to-string": "warn",
1012
+ "typescript/no-duplicate-enum-values": "warn",
1013
+ "typescript/no-duplicate-type-constituents": "warn",
1014
+ "typescript/no-extra-non-null-assertion": "warn",
1015
+ "typescript/no-floating-promises": "warn",
1016
+ "typescript/no-for-in-array": "warn",
1017
+ "typescript/no-implied-eval": "warn",
1018
+ "typescript/no-meaningless-void-operator": "warn",
1019
+ "typescript/no-misused-new": "warn",
1020
+ "typescript/no-misused-spread": "warn",
1021
+ "typescript/no-non-null-asserted-optional-chain": "warn",
1022
+ "typescript/no-redundant-type-constituents": "warn",
1023
+ "typescript/no-this-alias": "warn",
1024
+ "typescript/no-unnecessary-parameter-property-assignment": "warn",
1025
+ "typescript/no-unsafe-declaration-merging": "warn",
1026
+ "typescript/no-unsafe-unary-minus": "warn",
1027
+ "typescript/no-useless-empty-export": "warn",
1028
+ "typescript/no-wrapper-object-types": "warn",
1029
+ "typescript/prefer-as-const": "warn",
1030
+ "typescript/require-array-sort-compare": "warn",
1031
+ "typescript/restrict-template-expressions": "warn",
1032
+ "typescript/unbound-method": "warn",
1033
+ "unicorn/no-await-in-promise-methods": "warn",
1034
+ "unicorn/no-empty-file": "warn",
1035
+ "unicorn/no-invalid-fetch-options": "warn",
1036
+ "unicorn/no-invalid-remove-event-listener": "warn",
1037
+ "unicorn/no-new-array": "warn",
1038
+ "unicorn/no-single-promise-in-promise-methods": "warn",
1039
+ "unicorn/no-thenable": "warn",
1040
+ "unicorn/no-unnecessary-await": "warn",
1041
+ "unicorn/no-useless-fallback-in-spread": "warn",
1042
+ "unicorn/no-useless-length-check": "warn",
1043
+ "unicorn/no-useless-spread": "warn",
1044
+ "unicorn/prefer-set-size": "warn",
1045
+ "unicorn/prefer-string-starts-ends-with": "warn",
1046
+ "use-isnan": "warn",
1047
+ "valid-typeof": "warn",
1048
+ ...disabledRules
1049
+ },
1050
+ settings: {
1051
+ jsdoc: {
1052
+ augmentsExtendsReplacesDocs: false,
1053
+ exemptDestructuredRootsFromChecks: false,
1054
+ ignoreInternal: false,
1055
+ ignorePrivate: false,
1056
+ ignoreReplacesDocs: true,
1057
+ implementsReplacesDocs: false,
1058
+ overrideReplacesDocs: true,
1059
+ tagNamePreference: {}
1060
+ },
1061
+ "jsx-a11y": {
1062
+ attributes: {},
1063
+ components: {},
1064
+ polymorphicPropName: null
1065
+ },
1066
+ next: {
1067
+ rootDir: []
1068
+ },
1069
+ react: {
1070
+ formComponents: [],
1071
+ linkComponents: []
1072
+ },
1073
+ vitest: {
1074
+ typecheck: false
1075
+ }
1076
+ }
1077
+ };
1078
+
919
1079
  // src/datamitsu-config/env.ts
920
1080
  var env = () => {
921
1081
  const _env = facts().env;
@@ -1038,14 +1198,14 @@ var cleanDependencies = (deps) => {
1038
1198
  return deps;
1039
1199
  }
1040
1200
  if (!deps) return;
1041
- const excludeDependencyNameList = [
1042
- ...Object.keys(dependencies),
1201
+ const excludeDependencyNameList = /* @__PURE__ */ new Set([
1202
+ "@trivago/prettier-plugin-sort-imports",
1043
1203
  "typescript",
1044
- "@trivago/prettier-plugin-sort-imports"
1045
- ];
1204
+ ...Object.keys(dependencies)
1205
+ ]);
1046
1206
  return Object.entries(deps).reduce(
1047
1207
  (acc, [name2, version2]) => {
1048
- if (!excludeDependencyNameList.includes(name2)) {
1208
+ if (!excludeDependencyNameList.has(name2)) {
1049
1209
  acc[name2] = version2;
1050
1210
  }
1051
1211
  return acc;
@@ -1116,6 +1276,12 @@ var init = {
1116
1276
  projectTypes: ["npm-package"],
1117
1277
  rootOnly: true
1118
1278
  },
1279
+ ".oxlintrc.json": {
1280
+ content: () => {
1281
+ return JSON.stringify(oxlintConfig, null, 2) + "\n";
1282
+ },
1283
+ projectTypes: ["npm-package"]
1284
+ },
1119
1285
  // ".editorconfig": {
1120
1286
  // content: (context) => {
1121
1287
  // // https://editorconfig.org
@@ -1349,7 +1515,13 @@ var init = {
1349
1515
  // delete-only configuration - removes deprecated config files without creating new ones
1350
1516
  "deprecated-configs": {
1351
1517
  deleteOnly: true,
1352
- otherFileNameList: [".babelrc", ".babelrc.js", "babel.config.js", ".editorconfig", ".editorconfig-checker.json"]
1518
+ otherFileNameList: [
1519
+ ".babelrc",
1520
+ ".babelrc.js",
1521
+ "babel.config.js",
1522
+ ".editorconfig",
1523
+ ".editorconfig-checker.json"
1524
+ ]
1353
1525
  },
1354
1526
  "eslint.config.js": {
1355
1527
  content: () => {
@@ -1399,7 +1571,12 @@ var init = {
1399
1571
  ...data
1400
1572
  });
1401
1573
  },
1402
- otherFileNameList: [".hadolint.yaml", "hadolint.yaml", ".config/hadolint.yaml", ".hadolint/hadolint.yaml"],
1574
+ otherFileNameList: [
1575
+ ".hadolint.yaml",
1576
+ "hadolint.yaml",
1577
+ ".config/hadolint.yaml",
1578
+ ".hadolint/hadolint.yaml"
1579
+ ],
1403
1580
  rootOnly: true
1404
1581
  },
1405
1582
  "knip.config.js": {
@@ -1666,6 +1843,10 @@ var projectTypes = {
1666
1843
  description: "Terraform infrastructure",
1667
1844
  markers: ["*.tf"]
1668
1845
  },
1846
+ "typescript-project": {
1847
+ description: "",
1848
+ markers: ["tsconfig.json"]
1849
+ },
1669
1850
  "typst-project": {
1670
1851
  description: "Typst document",
1671
1852
  markers: ["*.typ"]
@@ -1676,7 +1857,7 @@ var projectTypes = {
1676
1857
  var indentSettings = {
1677
1858
  typ: {
1678
1859
  indentWidth: 2,
1679
- lineWidth: 120
1860
+ lineWidth: 100
1680
1861
  }
1681
1862
  };
1682
1863
 
@@ -1694,44 +1875,89 @@ var prettierGlobs = [
1694
1875
  "**/*.yaml",
1695
1876
  "**/*.md"
1696
1877
  ];
1697
- var eslintGlobs = ["**/*.js", "**/*.mjs", "**/*.cjs", "**/*.ts", "**/*.mts", "**/*.cts", "**/*.tsx"];
1878
+ var eslintGlobs = [
1879
+ "**/*.js",
1880
+ "**/*.mjs",
1881
+ "**/*.cjs",
1882
+ "**/*.ts",
1883
+ "**/*.mts",
1884
+ "**/*.cts",
1885
+ "**/*.tsx"
1886
+ ];
1887
+ var oxlintGlobs = [
1888
+ "**/*.js",
1889
+ "**/*.mjs",
1890
+ "**/*.cjs",
1891
+ "**/*.ts",
1892
+ "**/*.mts",
1893
+ "**/*.cts",
1894
+ "**/*.tsx",
1895
+ "**/*.jsx",
1896
+ "**/*.vue",
1897
+ "**/*.astro",
1898
+ "**/*.svelte"
1899
+ ];
1900
+ var _toolPriority = [
1901
+ "oxlint",
1902
+ "eslint",
1903
+ "prettier",
1904
+ "sort-package-json",
1905
+ "tsc",
1906
+ "typstyle"
1907
+ ];
1908
+ var toolPriority = [...new Set(_toolPriority)].reduce(
1909
+ (acc, el, i) => {
1910
+ acc[el] = i;
1911
+ return acc;
1912
+ },
1913
+ {}
1914
+ );
1698
1915
  var toolsConfig = {
1699
1916
  eslint: {
1700
1917
  name: "Eslint",
1701
1918
  operations: {
1702
1919
  fix: {
1703
1920
  args: [
1704
- "--report-unused-inline-configs",
1705
- "0",
1706
- "--report-unused-disable-directives-severity",
1707
- "0",
1708
1921
  "--fix",
1709
- "--quiet",
1710
- "--config",
1711
- tools.Path.join(facts().cwd, "eslint.config.js"),
1712
- "{file}"
1922
+ "-c",
1923
+ "{cwd}/eslint.config.js",
1924
+ // "--quiet",
1925
+ "{files}"
1713
1926
  ],
1714
1927
  command: "eslint",
1715
1928
  globs: eslintGlobs,
1716
- mode: "per-file",
1717
- priority: 0
1929
+ mode: "batch",
1930
+ priority: toolPriority.eslint
1718
1931
  },
1719
1932
  lint: {
1720
- args: [
1721
- "--report-unused-inline-configs",
1722
- "0",
1723
- "--report-unused-disable-directives-severity",
1724
- "0",
1725
- "-u",
1726
- "--check",
1727
- "{file}"
1728
- ],
1729
- command: "prettier",
1933
+ args: ["{files}"],
1934
+ command: "eslint",
1730
1935
  globs: eslintGlobs,
1731
- mode: "per-file"
1936
+ mode: "batch",
1937
+ priority: toolPriority.eslint
1732
1938
  }
1733
1939
  },
1734
- projectTypes: ["npm-package"]
1940
+ projectTypes: ["npm-package", "typescript-project"]
1941
+ },
1942
+ oxlint: {
1943
+ name: "Oxlint",
1944
+ operations: {
1945
+ fix: {
1946
+ args: ["--fix", "{files}"],
1947
+ command: "oxlint",
1948
+ globs: oxlintGlobs,
1949
+ mode: "batch",
1950
+ priority: toolPriority.oxlint
1951
+ },
1952
+ lint: {
1953
+ args: ["{files}"],
1954
+ command: "oxlint",
1955
+ globs: oxlintGlobs,
1956
+ mode: "batch",
1957
+ priority: toolPriority.oxlint
1958
+ }
1959
+ },
1960
+ projectTypes: ["npm-package", "typescript-project"]
1735
1961
  },
1736
1962
  // gitleaks: {
1737
1963
  // name: "gitleaks",
@@ -1745,27 +1971,27 @@ var toolsConfig = {
1745
1971
  // },
1746
1972
  // },
1747
1973
  // },
1748
- "golangci-lint": {
1749
- name: "golangci-lint - Go Linter",
1750
- operations: {
1751
- fix: {
1752
- args: ["run", "--fix"],
1753
- command: "golangci-lint",
1754
- globs: ["**/*.go"],
1755
- mode: "whole-project",
1756
- priority: 1,
1757
- rootOnly: true
1758
- },
1759
- lint: {
1760
- args: ["run"],
1761
- command: "golangci-lint",
1762
- globs: ["**/*.go"],
1763
- mode: "whole-project",
1764
- rootOnly: true
1765
- }
1766
- },
1767
- projectTypes: ["golang-package"]
1768
- },
1974
+ // "golangci-lint": {
1975
+ // name: "golangci-lint - Go Linter",
1976
+ // operations: {
1977
+ // fix: {
1978
+ // args: ["run", "--fix"],
1979
+ // command: "golangci-lint",
1980
+ // globs: ["**/*.go"],
1981
+ // mode: "whole-project",
1982
+ // priority: 1,
1983
+ // rootOnly: true,
1984
+ // },
1985
+ // lint: {
1986
+ // args: ["run"],
1987
+ // command: "golangci-lint",
1988
+ // globs: ["**/*.go"],
1989
+ // mode: "whole-project",
1990
+ // rootOnly: true,
1991
+ // },
1992
+ // },
1993
+ // projectTypes: ["golang-package"],
1994
+ // },
1769
1995
  // knip: {
1770
1996
  // name: "Knip",
1771
1997
  // operations: {
@@ -1776,26 +2002,41 @@ var toolsConfig = {
1776
2002
  // mode: "whole-project",
1777
2003
  // },
1778
2004
  // },
1779
- // projectTypes: ["npm-package"],
2005
+ // projectTypes: ["npm-package","typescript-project"],
1780
2006
  // },
1781
2007
  prettier: {
1782
2008
  name: "Prettier - Code Formatter",
1783
2009
  operations: {
1784
2010
  fix: {
1785
- args: ["-u", "--write", "--config", tools.Path.join(facts().cwd, "prettier.config.js"), "{file}"],
2011
+ args: [
2012
+ "-u",
2013
+ "--write",
2014
+ "--config",
2015
+ tools.Path.join(facts().gitRoot, "prettier.config.js"),
2016
+ "{files}"
2017
+ ],
1786
2018
  command: "prettier",
1787
2019
  globs: prettierGlobs,
1788
- mode: "per-file",
1789
- priority: 1
2020
+ // globs: [],
2021
+ mode: "batch",
2022
+ priority: toolPriority.prettier
1790
2023
  },
1791
2024
  lint: {
1792
- args: ["-u", "--check", "{file}"],
2025
+ args: [
2026
+ "-u",
2027
+ "--check",
2028
+ "--config",
2029
+ tools.Path.join(facts().gitRoot, "prettier.config.js"),
2030
+ "{files}"
2031
+ ],
1793
2032
  command: "prettier",
1794
2033
  globs: prettierGlobs,
1795
- mode: "per-file"
2034
+ // globs:[],
2035
+ mode: "batch",
2036
+ priority: toolPriority.prettier
1796
2037
  }
1797
2038
  },
1798
- projectTypes: ["npm-package"]
2039
+ projectTypes: ["npm-package", "typescript-project"]
1799
2040
  },
1800
2041
  // hadolint: {
1801
2042
  // name: "hadolint - Dockerfile Linter",
@@ -1845,51 +2086,51 @@ var toolsConfig = {
1845
2086
  command: "sort-package-json",
1846
2087
  globs: ["**/package.json"],
1847
2088
  mode: "whole-project",
1848
- priority: 200
2089
+ priority: toolPriority["sort-package-json"]
1849
2090
  },
1850
2091
  lint: {
1851
2092
  args: ["--check", "--quiet"],
1852
2093
  command: "sort-package-json",
1853
2094
  globs: ["**/package.json"],
1854
2095
  mode: "whole-project",
1855
- priority: 200
2096
+ priority: toolPriority["sort-package-json"]
1856
2097
  }
1857
2098
  },
1858
- projectTypes: ["npm-package"]
2099
+ projectTypes: ["npm-package", "typescript-project"]
1859
2100
  },
1860
- syncpack: {
1861
- name: "syncpack",
1862
- operations: {
1863
- fix: {
1864
- args: ["fix", "--config", tools.Path.join(facts().gitRoot, ".syncpackrc.json")],
1865
- command: "syncpack",
1866
- globs: ["**/package.json"],
1867
- mode: "whole-project",
1868
- priority: 0
1869
- },
1870
- lint: {
1871
- args: ["lint", "--config", tools.Path.join(facts().gitRoot, ".syncpackrc.json")],
1872
- command: "syncpack",
1873
- globs: ["**/package.json"],
1874
- mode: "whole-project",
1875
- priority: 0
1876
- }
1877
- },
1878
- projectTypes: ["npm-package"]
1879
- },
1880
- // tsc: {
1881
- // name: "Tsc",
2101
+ // syncpack: {
2102
+ // name: "syncpack",
1882
2103
  // operations: {
2104
+ // fix: {
2105
+ // args: ["fix", "--config", tools.Path.join(facts().gitRoot, ".syncpackrc.json")],
2106
+ // command: "syncpack",
2107
+ // globs: ["**/package.json"],
2108
+ // mode: "whole-project",
2109
+ // priority: 0,
2110
+ // },
1883
2111
  // lint: {
1884
- // args: ["--noEmit"],
1885
- // command: "tsc",
1886
- // globs: ["**/*.d.ts", "**/*.ts", "**/*.mts", "**/*.cts"],
2112
+ // args: ["lint", "--config", tools.Path.join(facts().gitRoot, ".syncpackrc.json")],
2113
+ // command: "syncpack",
2114
+ // globs: ["**/package.json"],
1887
2115
  // mode: "whole-project",
1888
- // priority: 2,
2116
+ // priority: 0,
1889
2117
  // },
1890
2118
  // },
1891
- // projectTypes: ["npm-package"],
2119
+ // projectTypes: ["npm-package","typescript-project"],
1892
2120
  // },
2121
+ tsc: {
2122
+ name: "Tsc",
2123
+ operations: {
2124
+ lint: {
2125
+ args: ["--noEmit"],
2126
+ command: "tsc",
2127
+ globs: ["**/*.d.ts", "**/*.ts", "**/*.mts", "**/*.cts", "**/*.tsx"],
2128
+ mode: "whole-project",
2129
+ priority: toolPriority.tsc
2130
+ }
2131
+ },
2132
+ projectTypes: ["typescript-project"]
2133
+ },
1893
2134
  // "editorconfig-checker": {
1894
2135
  // name: "EditorConfig Checker",
1895
2136
  // operations: {
@@ -1918,7 +2159,7 @@ var toolsConfig = {
1918
2159
  command: "typstyle",
1919
2160
  globs: ["**/*.typ"],
1920
2161
  mode: "per-file",
1921
- priority: 0
2162
+ priority: toolPriority.typstyle
1922
2163
  },
1923
2164
  lint: {
1924
2165
  args: [
@@ -1932,14 +2173,15 @@ var toolsConfig = {
1932
2173
  ],
1933
2174
  command: "typstyle",
1934
2175
  globs: ["**/*.typ"],
1935
- mode: "per-file"
2176
+ mode: "per-file",
2177
+ priority: toolPriority.typstyle
1936
2178
  }
1937
2179
  }
1938
2180
  }
1939
2181
  };
1940
2182
 
1941
2183
  // src/datamitsu-config/main.ts
1942
- function getConfig(config) {
2184
+ function getConfig() {
1943
2185
  const configOutput = {
1944
2186
  // ...config,
1945
2187
  apps: {
@@ -0,0 +1,14 @@
1
+ // src/eslint/plugins/array-func.ts
2
+ import "@eslint/config-helpers";
3
+ import arrayFunc from "eslint-plugin-array-func";
4
+ var arrayFuncRules = [
5
+ arrayFunc.configs.recommended,
6
+ {
7
+ rules: {
8
+ "array-func/prefer-array-from": "off"
9
+ }
10
+ }
11
+ ];
12
+ export {
13
+ arrayFuncRules
14
+ };
@@ -0,0 +1,14 @@
1
+ // src/eslint/plugins/array-func.ts
2
+ import arrayFunc from "eslint-plugin-array-func";
3
+ import "@eslint/config-helpers";
4
+ var arrayFuncRules = [
5
+ arrayFunc.configs.recommended,
6
+ {
7
+ rules: {
8
+ "array-func/prefer-array-from": "off"
9
+ }
10
+ }
11
+ ];
12
+ export {
13
+ arrayFuncRules
14
+ };