@octohash/eslint-config 0.2.0 → 0.2.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.d.mts +2 -5
- package/dist/index.mjs +1 -3
- package/package.json +4 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _antfu_eslint_config0 from "@antfu/eslint-config";
|
|
2
|
-
import { Awaitable, OptionsConfig, OptionsFiles,
|
|
2
|
+
import { Awaitable, OptionsConfig, OptionsFiles, OptionsOverrides, TypedFlatConfigItem } from "@antfu/eslint-config";
|
|
3
3
|
import { Linter, Rule } from "eslint";
|
|
4
4
|
|
|
5
5
|
//#region node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
|
|
@@ -1565,10 +1565,7 @@ declare class FlatConfigComposer<T extends object = ConfigWithExtends, ConfigNam
|
|
|
1565
1565
|
*/
|
|
1566
1566
|
//#endregion
|
|
1567
1567
|
//#region src/types.d.ts
|
|
1568
|
-
interface Options extends
|
|
1569
|
-
formatters?: boolean | FormattersOptions;
|
|
1570
|
-
}
|
|
1571
|
-
interface FormattersOptions extends OptionsFormatters {
|
|
1568
|
+
interface Options extends AntfuOptions {
|
|
1572
1569
|
tailwindcss?: boolean | OptionsTailwindcss;
|
|
1573
1570
|
}
|
|
1574
1571
|
type AntfuOptions = OptionsConfig & Omit<TypedFlatConfigItem, 'files'>;
|
package/dist/index.mjs
CHANGED
|
@@ -249,10 +249,8 @@ async function hasTailwindV4Import(filePath) {
|
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region src/index.ts
|
|
251
251
|
function defineConfig(options, ...userConfigs) {
|
|
252
|
-
const { formatters } = options || {};
|
|
253
252
|
const config = antfu(mergeOptions(options), ...userConfigs);
|
|
254
|
-
|
|
255
|
-
const enableTailwindCSS = typeof options?.formatters === "boolean" || options?.formatters?.tailwindcss;
|
|
253
|
+
const enableTailwindCSS = typeof options?.tailwindcss === "boolean" || options?.tailwindcss;
|
|
256
254
|
if (enableTailwindCSS) config.append(tailwindcss(typeof enableTailwindCSS === "boolean" ? {} : enableTailwindCSS)).renamePlugins({ "better-tailwindcss": "tailwindcss" });
|
|
257
255
|
config.append(sortPackageJson());
|
|
258
256
|
config.append(octohash());
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octohash/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "Personal ESLint config based on @antfu/eslint-config with opinionated extensions.",
|
|
6
6
|
"author": "jinghaihan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"lint-staged": "^16.2.7",
|
|
60
60
|
"vitest": "^4.0.18",
|
|
61
61
|
"@types/node": "^24.10.13",
|
|
62
|
-
"@octohash/eslint-config": "0.2.
|
|
62
|
+
"@octohash/eslint-config": "0.2.2"
|
|
63
63
|
},
|
|
64
64
|
"simple-git-hooks": {
|
|
65
65
|
"pre-commit": "pnpm lint-staged"
|
|
@@ -73,9 +73,8 @@
|
|
|
73
73
|
"test": "vitest",
|
|
74
74
|
"lint": "eslint",
|
|
75
75
|
"deps": "taze major -I",
|
|
76
|
-
"release": "bumpp
|
|
76
|
+
"release": "bumpp",
|
|
77
77
|
"catalog": "pncat",
|
|
78
|
-
"bootstrap": "pnpm install"
|
|
79
|
-
"preinstall": "npx only-allow pnpm"
|
|
78
|
+
"bootstrap": "pnpm install"
|
|
80
79
|
}
|
|
81
80
|
}
|