@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 +16 -10
- package/dist/index.d.cts +169 -98
- package/dist/index.d.ts +169 -98
- package/dist/index.js +16 -10
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1761,8 +1761,15 @@ async function stylistic(options) {
|
|
|
1761
1761
|
"perfectionist/sort-exports": "off",
|
|
1762
1762
|
"perfectionist/sort-imports": "off",
|
|
1763
1763
|
"perfectionist/sort-interfaces": "off",
|
|
1764
|
+
"perfectionist/sort-modules": "off",
|
|
1764
1765
|
"perfectionist/sort-named-exports": "off",
|
|
1765
1766
|
"perfectionist/sort-named-imports": "off",
|
|
1767
|
+
"perfectionist/sort-object": [
|
|
1768
|
+
"off",
|
|
1769
|
+
{
|
|
1770
|
+
specialCharacters: "trim"
|
|
1771
|
+
}
|
|
1772
|
+
],
|
|
1766
1773
|
"perfectionist/sort-object-types": "off"
|
|
1767
1774
|
}
|
|
1768
1775
|
});
|
|
@@ -1851,6 +1858,14 @@ import { existsSync } from "node:fs";
|
|
|
1851
1858
|
import path from "node:path";
|
|
1852
1859
|
import process from "node:process";
|
|
1853
1860
|
import { isPackageExists as isPackageExists2 } from "local-pkg";
|
|
1861
|
+
function getCwdTsconfigPath() {
|
|
1862
|
+
const root = process.cwd();
|
|
1863
|
+
const cwdTsconfigPath = path.resolve(root, "tsconfig.json");
|
|
1864
|
+
if (existsSync(cwdTsconfigPath)) {
|
|
1865
|
+
return "tsconfig.json";
|
|
1866
|
+
}
|
|
1867
|
+
return void 0;
|
|
1868
|
+
}
|
|
1854
1869
|
function defaultOptions(options = {}) {
|
|
1855
1870
|
let typescript2 = false;
|
|
1856
1871
|
const installedTypescript = isPackageExists2("typescript");
|
|
@@ -1914,19 +1929,10 @@ function defaultOptions(options = {}) {
|
|
|
1914
1929
|
typescript: typescript2
|
|
1915
1930
|
};
|
|
1916
1931
|
}
|
|
1917
|
-
function getCwdTsconfigPath() {
|
|
1918
|
-
const root = process.cwd();
|
|
1919
|
-
const cwdTsconfigPath = path.resolve(root, "tsconfig.json");
|
|
1920
|
-
if (existsSync(cwdTsconfigPath)) {
|
|
1921
|
-
return "tsconfig.json";
|
|
1922
|
-
}
|
|
1923
|
-
return void 0;
|
|
1924
|
-
}
|
|
1925
|
-
var hexadrop_eslint_options_default = defaultOptions;
|
|
1926
1932
|
|
|
1927
1933
|
// src/factory.ts
|
|
1928
1934
|
function hexadrop(optionsOrFlatConfigItem, ...configs) {
|
|
1929
|
-
const options =
|
|
1935
|
+
const options = defaultOptions(optionsOrFlatConfigItem);
|
|
1930
1936
|
let pipeline = new FlatConfigComposer(
|
|
1931
1937
|
ignore(options),
|
|
1932
1938
|
core(options),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hexadrop/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Opinionated ESLint ruleset designed for large teams and projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lint",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@stylistic/eslint-plugin": "2.12.1",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "8.18.
|
|
50
|
-
"@typescript-eslint/parser": "8.18.
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "8.18.2",
|
|
50
|
+
"@typescript-eslint/parser": "8.18.2",
|
|
51
51
|
"astro-eslint-parser": "1.1.0",
|
|
52
52
|
"eslint-config-flat-gitignore": "0.3.0",
|
|
53
53
|
"eslint-flat-config-utils": "0.4.0",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"eslint-parser-plain": "0.1.0",
|
|
57
57
|
"eslint-plugin-astro": "1.3.1",
|
|
58
58
|
"eslint-plugin-format": "0.1.3",
|
|
59
|
-
"eslint-plugin-import-x": "4.
|
|
59
|
+
"eslint-plugin-import-x": "4.6.1",
|
|
60
60
|
"eslint-plugin-jsonc": "2.18.2",
|
|
61
61
|
"eslint-plugin-markdown": "5.1.0",
|
|
62
|
-
"eslint-plugin-n": "17.15.
|
|
63
|
-
"eslint-plugin-perfectionist": "4.
|
|
64
|
-
"eslint-plugin-react": "7.37.
|
|
62
|
+
"eslint-plugin-n": "17.15.1",
|
|
63
|
+
"eslint-plugin-perfectionist": "4.4.0",
|
|
64
|
+
"eslint-plugin-react": "7.37.3",
|
|
65
65
|
"eslint-plugin-react-hooks": "5.1.0",
|
|
66
66
|
"eslint-plugin-react-refresh": "0.4.16",
|
|
67
67
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@eslint/config-inspector": "0.6.0",
|
|
80
80
|
"@hexadrop/tsconfig": "0.0.5",
|
|
81
81
|
"@types/bun": "1.1.14",
|
|
82
|
-
"astro": "5.
|
|
82
|
+
"astro": "5.1.1",
|
|
83
83
|
"eslint": "9.17.0",
|
|
84
84
|
"eslint-typegen": "0.3.2",
|
|
85
85
|
"jiti": "2.4.2",
|