@ariel-salgado/eslint-config 0.1.6 → 0.1.8

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
@@ -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';
@@ -14586,4 +14587,4 @@ declare function tailwindcss(options?: OptionsHasTailwindCSS & TailwindCSSOption
14586
14587
  //#region src/configs/perfectionist.d.ts
14587
14588
  declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
14588
14589
  //#endregion
14589
- export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTailwindCSS, OptionsHasTypeScript, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, ResolvedOptions, Rules, StylisticConfig, StylisticOptions, TailwindCSSOptions, TypedFlatConfigItem, ariel, combine, comments, ariel as default, default_plugin_renaming, defaults, disables, ensure_packages, get_overrides, ignores, imports, interop_default, is_package_in_scope, javascript, jsdoc, jsonc, markdown, morgan, node, parser_plain, perfectionist, pnpm, regexp, rename_plugin_in_configs, rename_rules, resolve_sub_options, sort_package_json, sort_ts_config, stylistic, svelte, tailwindcss, test, to_array, toml, typescript, unicorn, yaml };
14590
+ export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTailwindCSS, OptionsHasTypeScript, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, ResolvedOptions, Rules, StylisticConfig, StylisticOptions, TailwindCSSOptions, TypedFlatConfigItem, ariel, ariel as default, combine, comments, default_plugin_renaming, defaults, disables, ensure_packages, get_overrides, ignores, imports, interop_default, is_package_in_scope, javascript, jsdoc, jsonc, markdown, morgan, node, parser_plain, perfectionist, pnpm, regexp, rename_plugin_in_configs, rename_rules, resolve_sub_options, sort_package_json, sort_ts_config, stylistic, svelte, tailwindcss, test, to_array, toml, typescript, unicorn, yaml };
package/dist/index.js CHANGED
@@ -1404,7 +1404,7 @@ 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 = 80 } = options;
1408
1408
  await ensure_packages(["eslint-plugin-better-tailwindcss"]);
1409
1409
  const plugin_tailwindcss = await interop_default(import("eslint-plugin-better-tailwindcss"));
1410
1410
  return [{
@@ -1415,14 +1415,14 @@ async function tailwindcss(options = {}) {
1415
1415
  name: "ariel/tailwindcss/rules",
1416
1416
  rules: {
1417
1417
  ...plugin_tailwindcss.configs.recommended.rules,
1418
- "tailwindcss/enforce-consistent-line-wrapping": "off",
1418
+ "tailwindcss/enforce-consistent-line-wrapping": ["error", { printWidth }],
1419
1419
  "tailwindcss/enforce-consistent-important-position": "error",
1420
1420
  "tailwindcss/enforce-shorthand-classes": "error",
1421
1421
  "tailwindcss/no-deprecated-classes": "error",
1422
- "tailwindcss/no-unregistered-classes": ["error", { detectComponentClasses: true }]
1422
+ "tailwindcss/no-unregistered-classes": ["error", { detectComponentClasses: true }],
1423
+ ...overrides
1423
1424
  },
1424
- settings: { "better-tailwindcss": { entryPoint } },
1425
- ...overrides
1425
+ settings: { "better-tailwindcss": { entryPoint } }
1426
1426
  }];
1427
1427
  }
1428
1428
 
@@ -1504,7 +1504,7 @@ const flat_config_props = [
1504
1504
  const default_plugin_renaming = {
1505
1505
  "@stylistic": "style",
1506
1506
  "@typescript-eslint": "ts",
1507
- "better-tailwindcss": "tailwind",
1507
+ "better-tailwindcss": "tailwindcss",
1508
1508
  "import-lite": "import",
1509
1509
  "n": "node",
1510
1510
  "vitest": "test",
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.6",
4
+ "version": "0.1.8",
5
5
  "description": "ESLint config for @ariel-salgado.",
6
6
  "author": "Ariel Salgado <ariel.salgado.acevedo@gmail.com>",
7
7
  "license": "MIT",
@@ -44,10 +44,10 @@
44
44
  "@antfu/install-pkg": "^1.1.0",
45
45
  "@clack/prompts": "^0.11.0",
46
46
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
47
- "@eslint/markdown": "^7.4.0",
47
+ "@eslint/markdown": "^7.4.1",
48
48
  "@stylistic/eslint-plugin": "^5.5.0",
49
- "@typescript-eslint/eslint-plugin": "^8.46.1",
50
- "@typescript-eslint/parser": "^8.46.1",
49
+ "@typescript-eslint/eslint-plugin": "^8.46.2",
50
+ "@typescript-eslint/parser": "^8.46.2",
51
51
  "@vitest/eslint-plugin": "^1.3.23",
52
52
  "eslint-config-flat-gitignore": "^2.1.0",
53
53
  "eslint-flat-config-utils": "^2.1.4",
@@ -55,7 +55,7 @@
55
55
  "eslint-plugin-ariel": "^0.0.3",
56
56
  "eslint-plugin-de-morgan": "^2.0.0",
57
57
  "eslint-plugin-import-lite": "^0.3.0",
58
- "eslint-plugin-jsdoc": "^61.1.4",
58
+ "eslint-plugin-jsdoc": "^61.1.5",
59
59
  "eslint-plugin-jsonc": "^2.21.0",
60
60
  "eslint-plugin-n": "^17.23.1",
61
61
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -73,19 +73,19 @@
73
73
  "yaml-eslint-parser": "^1.3.0"
74
74
  },
75
75
  "devDependencies": {
76
- "@types/node": "^24.8.1",
77
- "@typescript/native-preview": "7.0.0-dev.20251019.1",
76
+ "@types/node": "^24.9.1",
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",
81
81
  "eslint-plugin-svelte": "^3.12.5",
82
82
  "eslint-typegen": "^2.3.0",
83
- "lint-staged": "^16.2.4",
83
+ "lint-staged": "^16.2.5",
84
84
  "simple-git-hooks": "^2.13.1",
85
- "svelte": "^5.41.0",
85
+ "svelte": "^5.41.1",
86
86
  "svelte-eslint-parser": "^1.4.0",
87
- "tailwindcss": "^4.1.14",
88
- "tsdown": "^0.15.8",
87
+ "tailwindcss": "^4.1.15",
88
+ "tsdown": "^0.15.9",
89
89
  "tsx": "^4.20.6",
90
90
  "typescript": "~5.9.3"
91
91
  },