@hexadrop/eslint-config 0.0.1 → 0.0.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
@@ -1798,8 +1798,15 @@ async function stylistic(options) {
1798
1798
  "perfectionist/sort-exports": "off",
1799
1799
  "perfectionist/sort-imports": "off",
1800
1800
  "perfectionist/sort-interfaces": "off",
1801
+ "perfectionist/sort-modules": "off",
1801
1802
  "perfectionist/sort-named-exports": "off",
1802
1803
  "perfectionist/sort-named-imports": "off",
1804
+ "perfectionist/sort-object": [
1805
+ "off",
1806
+ {
1807
+ specialCharacters: "trim"
1808
+ }
1809
+ ],
1803
1810
  "perfectionist/sort-object-types": "off"
1804
1811
  }
1805
1812
  });
@@ -1888,6 +1895,14 @@ var import_node_fs2 = require("fs");
1888
1895
  var import_node_path = __toESM(require("path"), 1);
1889
1896
  var import_node_process2 = __toESM(require("process"), 1);
1890
1897
  var import_local_pkg2 = require("local-pkg");
1898
+ function getCwdTsconfigPath() {
1899
+ const root = import_node_process2.default.cwd();
1900
+ const cwdTsconfigPath = import_node_path.default.resolve(root, "tsconfig.json");
1901
+ if ((0, import_node_fs2.existsSync)(cwdTsconfigPath)) {
1902
+ return "tsconfig.json";
1903
+ }
1904
+ return void 0;
1905
+ }
1891
1906
  function defaultOptions(options = {}) {
1892
1907
  let typescript2 = false;
1893
1908
  const installedTypescript = (0, import_local_pkg2.isPackageExists)("typescript");
@@ -1951,19 +1966,10 @@ function defaultOptions(options = {}) {
1951
1966
  typescript: typescript2
1952
1967
  };
1953
1968
  }
1954
- function getCwdTsconfigPath() {
1955
- const root = import_node_process2.default.cwd();
1956
- const cwdTsconfigPath = import_node_path.default.resolve(root, "tsconfig.json");
1957
- if ((0, import_node_fs2.existsSync)(cwdTsconfigPath)) {
1958
- return "tsconfig.json";
1959
- }
1960
- return void 0;
1961
- }
1962
- var hexadrop_eslint_options_default = defaultOptions;
1963
1969
 
1964
1970
  // src/factory.ts
1965
1971
  function hexadrop(optionsOrFlatConfigItem, ...configs) {
1966
- const options = hexadrop_eslint_options_default(optionsOrFlatConfigItem);
1972
+ const options = defaultOptions(optionsOrFlatConfigItem);
1967
1973
  let pipeline = new import_eslint_flat_config_utils.FlatConfigComposer(
1968
1974
  ignore(options),
1969
1975
  core(options),