@ariel-salgado/eslint-config 0.1.7 → 0.1.9
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.ts +2 -1
- package/dist/index.js +14 -6
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -14290,6 +14290,7 @@ interface OptionsHasTailwindCSS {
|
|
|
14290
14290
|
}
|
|
14291
14291
|
interface TailwindCSSOptions extends OptionsOverrides {
|
|
14292
14292
|
entryPoint?: string;
|
|
14293
|
+
printWidth?: number;
|
|
14293
14294
|
}
|
|
14294
14295
|
interface OptionsProjectType {
|
|
14295
14296
|
type?: 'app' | 'lib';
|
|
@@ -14581,7 +14582,7 @@ declare function javascript(options?: OptionsOverrides): Promise<TypedFlatConfig
|
|
|
14581
14582
|
declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType): Promise<TypedFlatConfigItem[]>;
|
|
14582
14583
|
//#endregion
|
|
14583
14584
|
//#region src/configs/tailwindcss.d.ts
|
|
14584
|
-
declare function tailwindcss(options?: OptionsHasTailwindCSS & TailwindCSSOptions & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
14585
|
+
declare function tailwindcss(options?: OptionsHasTailwindCSS & TailwindCSSOptions & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
14585
14586
|
//#endregion
|
|
14586
14587
|
//#region src/configs/perfectionist.d.ts
|
|
14587
14588
|
declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
|
package/dist/index.js
CHANGED
|
@@ -1404,7 +1404,8 @@ async function typescript(options = {}) {
|
|
|
1404
1404
|
//#endregion
|
|
1405
1405
|
//#region src/configs/tailwindcss.ts
|
|
1406
1406
|
async function tailwindcss(options = {}) {
|
|
1407
|
-
const { files = [GLOB_SVELTE], overrides = {}, entryPoint = "src/app.css" } = options;
|
|
1407
|
+
const { files = [GLOB_HTML, GLOB_SVELTE], overrides = {}, entryPoint = "src/app.css", printWidth = 100, stylistic: stylistic$1 = true } = options;
|
|
1408
|
+
const { indent = "tab" } = typeof stylistic$1 === "boolean" ? {} : stylistic$1;
|
|
1408
1409
|
await ensure_packages(["eslint-plugin-better-tailwindcss"]);
|
|
1409
1410
|
const plugin_tailwindcss = await interop_default(import("eslint-plugin-better-tailwindcss"));
|
|
1410
1411
|
return [{
|
|
@@ -1415,14 +1416,18 @@ async function tailwindcss(options = {}) {
|
|
|
1415
1416
|
name: "ariel/tailwindcss/rules",
|
|
1416
1417
|
rules: {
|
|
1417
1418
|
...plugin_tailwindcss.configs.recommended.rules,
|
|
1418
|
-
"tailwindcss/enforce-consistent-line-wrapping": "
|
|
1419
|
+
"tailwindcss/enforce-consistent-line-wrapping": ["error", {
|
|
1420
|
+
indent,
|
|
1421
|
+
printWidth,
|
|
1422
|
+
preferSingleLine: true
|
|
1423
|
+
}],
|
|
1419
1424
|
"tailwindcss/enforce-consistent-important-position": "error",
|
|
1420
1425
|
"tailwindcss/enforce-shorthand-classes": "error",
|
|
1421
1426
|
"tailwindcss/no-deprecated-classes": "error",
|
|
1422
|
-
"tailwindcss/no-unregistered-classes": ["error", { detectComponentClasses: true }]
|
|
1427
|
+
"tailwindcss/no-unregistered-classes": ["error", { detectComponentClasses: true }],
|
|
1428
|
+
...overrides
|
|
1423
1429
|
},
|
|
1424
|
-
settings: { "better-tailwindcss": { entryPoint } }
|
|
1425
|
-
...overrides
|
|
1430
|
+
settings: { "better-tailwindcss": { entryPoint } }
|
|
1426
1431
|
}];
|
|
1427
1432
|
}
|
|
1428
1433
|
|
|
@@ -1558,7 +1563,10 @@ function ariel(options = {}, ...userConfigs) {
|
|
|
1558
1563
|
stylistic: stylistic_options,
|
|
1559
1564
|
typescript: !!enable_typescript
|
|
1560
1565
|
}));
|
|
1561
|
-
if (enable_tailwindcss) configs.push(tailwindcss({
|
|
1566
|
+
if (enable_tailwindcss) configs.push(tailwindcss({
|
|
1567
|
+
overrides: get_overrides(options, "tailwindcss"),
|
|
1568
|
+
stylistic: stylistic_options
|
|
1569
|
+
}));
|
|
1562
1570
|
if (options.jsonc ?? true) configs.push(jsonc({
|
|
1563
1571
|
overrides: get_overrides(options, "jsonc"),
|
|
1564
1572
|
stylistic: stylistic_options
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariel-salgado/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.9",
|
|
5
5
|
"description": "ESLint config for @ariel-salgado.",
|
|
6
6
|
"author": "Ariel Salgado <ariel.salgado.acevedo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/node": "^24.9.1",
|
|
77
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
77
|
+
"@typescript/native-preview": "7.0.0-dev.20251021.1",
|
|
78
78
|
"bumpp": "^10.3.1",
|
|
79
79
|
"eslint": "^9.38.0",
|
|
80
80
|
"eslint-plugin-better-tailwindcss": "^3.7.10",
|