@ariel-salgado/eslint-config 0.1.8 → 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 CHANGED
@@ -14582,7 +14582,7 @@ declare function javascript(options?: OptionsOverrides): Promise<TypedFlatConfig
14582
14582
  declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType): Promise<TypedFlatConfigItem[]>;
14583
14583
  //#endregion
14584
14584
  //#region src/configs/tailwindcss.d.ts
14585
- declare function tailwindcss(options?: OptionsHasTailwindCSS & TailwindCSSOptions & OptionsFiles): Promise<TypedFlatConfigItem[]>;
14585
+ declare function tailwindcss(options?: OptionsHasTailwindCSS & TailwindCSSOptions & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
14586
14586
  //#endregion
14587
14587
  //#region src/configs/perfectionist.d.ts
14588
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_HTML, GLOB_SVELTE], overrides = {}, entryPoint = "src/app.css", printWidth = 80 } = 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,7 +1416,11 @@ 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": ["error", { printWidth }],
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",
@@ -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({ overrides: get_overrides(options, "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.8",
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",