@rootreeweb/linting 5.4.0 → 5.5.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @rootreeweb/linting
2
2
 
3
+ ## 5.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Update code example settings
8
+
9
+ ### Patch Changes
10
+
11
+ - Chore: Dependency Updates
12
+
3
13
  ## 5.4.0
4
14
 
5
15
  ### Minor Changes
package/README.md CHANGED
@@ -117,8 +117,8 @@ This package ships agent skills (`format-and-lint-js` and `solid-audit`, plus `d
117
117
 
118
118
  ```bash
119
119
  yarn add -D skills
120
- npm pkg set scripts.prepare="husky && skills experimental_sync -y"
121
- yarn skills experimental_sync -y
120
+ npm pkg set scripts.prepare="husky && skills experimental_sync --yes"
121
+ yarn skills experimental_sync --yes
122
122
  ```
123
123
 
124
124
  This links the skills into `.agents/skills` (and `.claude/skills` for Claude Code).
@@ -1 +1 @@
1
- {"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAO/C,eAAO,MAAM,QAAQ,EAAE,MAatB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAE/D;;;;;GAKG;AACH,wBAAgB,aAAa,CAC5B,GAAG,MAAM,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,GAC5C,MAAM,CAeR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAC/B,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,uBAAuB,GAC/B,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAQhC"}
1
+ {"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAO/C,eAAO,MAAM,QAAQ,EAAE,MActB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAE/D;;;;;GAKG;AACH,wBAAgB,aAAa,CAC5B,GAAG,MAAM,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,GAC5C,MAAM,CAeR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAC/B,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,uBAAuB,GAC/B,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAQhC"}
@@ -13,6 +13,7 @@ export const prettier = {
13
13
  "^[../]",
14
14
  "^[./]",
15
15
  ],
16
+ jsdocPreferCodeFences: true,
16
17
  plugins,
17
18
  useTabs: true,
18
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"prettier.js","sourceRoot":"","sources":["../../src/prettier.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAmC;IAC/C,qCAAqC;IACrC,uBAAuB;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAW;IAC/B,WAAW,EAAE;QACZ,mBAAmB;QACnB,uBAAuB;QACvB,EAAE;QACF,oBAAoB;QACpB,EAAE;QACF,UAAU;QACV,QAAQ;QACR,OAAO;KACP;IACD,OAAO;IACP,OAAO,EAAE,IAAI;CACb,CAAC;AAIF;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAC5B,GAAG,MAA2C;IAE9C,MAAM,IAAI,GAAG,gBAAgB,CAAC,GAAG,MAAM,CAAC,CAAC;IACzC,OAAO;QACN,GAAG,IAAI;QACP,SAAS,EAAE;YACV,GAAG,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC;YACzB;gBACC,KAAK,EAAE,SAAS;gBAChB,OAAO,EAAE;oBACR,MAAM,EAAE,OAAO;iBACf;aACD;SACD;QACD,OAAO,EAAE,CAAC,uBAAuB,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;KACnD,CAAC;AACH,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,gBAAgB,CAC/B,kBAA0B,EAC1B,OAAiC;IAEjC,OAAO;QACN,GAAG,QAAQ;QACX,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,6BAA6B,CAAC;QACpD,iBAAiB,EAAE,CAAC,SAAS,EAAE,GAAG,CAAC,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC,CAAC;QAE7D,kBAAkB;KAClB,CAAC;AACH,CAAC","sourcesContent":["import type { Config, Plugin } from \"prettier\";\n\nconst plugins: NonNullable<Config[\"plugins\"]> = [\n\t\"@ianvs/prettier-plugin-sort-imports\",\n\t\"prettier-plugin-jsdoc\",\n];\n\nexport const prettier: Config = {\n\timportOrder: [\n\t\t\"<BUILTIN_MODULES>\",\n\t\t\"<THIRD_PARTY_MODULES>\",\n\t\t\"\",\n\t\t\"^@rootreeweb/(.*)$\",\n\t\t\"\",\n\t\t\"^@/(.*)$\",\n\t\t\"^[../]\",\n\t\t\"^[./]\",\n\t],\n\tplugins,\n\tuseTabs: true,\n};\n\nexport type PrettierTailwindOptions = { functions?: string[] };\n\n/**\n * Provides a prettier config for Astro projects.\n *\n * @param params The tailwindcss info.\n * @returns The configuration.\n */\nexport function prettierAstro(\n\t...params: Parameters<typeof prettierTailwind>\n): Config {\n\tconst base = prettierTailwind(...params);\n\treturn {\n\t\t...base,\n\t\toverrides: [\n\t\t\t...(base.overrides ?? []),\n\t\t\t{\n\t\t\t\tfiles: \"*.astro\",\n\t\t\t\toptions: {\n\t\t\t\t\tparser: \"astro\",\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t\tplugins: [\"prettier-plugin-astro\", ...base.plugins],\n\t};\n}\n\n/**\n * Creates a prettier configuration for tailwind.\n *\n * @example\n * \timport { prettierTailwind } from \"@rootreeweb/linting\";\n *\n * \texport default prettierTailwind(\"./src/app/globals.css\");\n *\n * @param tailwindStylesheet The path to the stylesheet that imports Tailwind.\n * @param options Additional options for generating the configuration.\n * @returns The configuration.\n */\nexport function prettierTailwind(\n\ttailwindStylesheet: string,\n\toptions?: PrettierTailwindOptions,\n): Config & { plugins: Plugin[] } {\n\treturn {\n\t\t...prettier,\n\t\tplugins: [...plugins, \"prettier-plugin-tailwindcss\"],\n\t\ttailwindFunctions: [\"twMerge\", ...(options?.functions ?? [])],\n\n\t\ttailwindStylesheet,\n\t};\n}\n"]}
1
+ {"version":3,"file":"prettier.js","sourceRoot":"","sources":["../../src/prettier.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAmC;IAC/C,qCAAqC;IACrC,uBAAuB;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAW;IAC/B,WAAW,EAAE;QACZ,mBAAmB;QACnB,uBAAuB;QACvB,EAAE;QACF,oBAAoB;QACpB,EAAE;QACF,UAAU;QACV,QAAQ;QACR,OAAO;KACP;IACD,qBAAqB,EAAE,IAAI;IAC3B,OAAO;IACP,OAAO,EAAE,IAAI;CACb,CAAC;AAIF;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAC5B,GAAG,MAA2C;IAE9C,MAAM,IAAI,GAAG,gBAAgB,CAAC,GAAG,MAAM,CAAC,CAAC;IACzC,OAAO;QACN,GAAG,IAAI;QACP,SAAS,EAAE;YACV,GAAG,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC;YACzB;gBACC,KAAK,EAAE,SAAS;gBAChB,OAAO,EAAE;oBACR,MAAM,EAAE,OAAO;iBACf;aACD;SACD;QACD,OAAO,EAAE,CAAC,uBAAuB,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;KACnD,CAAC;AACH,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,gBAAgB,CAC/B,kBAA0B,EAC1B,OAAiC;IAEjC,OAAO;QACN,GAAG,QAAQ;QACX,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,6BAA6B,CAAC;QACpD,iBAAiB,EAAE,CAAC,SAAS,EAAE,GAAG,CAAC,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC,CAAC;QAE7D,kBAAkB;KAClB,CAAC;AACH,CAAC","sourcesContent":["import type { Config, Plugin } from \"prettier\";\n\nconst plugins: NonNullable<Config[\"plugins\"]> = [\n\t\"@ianvs/prettier-plugin-sort-imports\",\n\t\"prettier-plugin-jsdoc\",\n];\n\nexport const prettier: Config = {\n\timportOrder: [\n\t\t\"<BUILTIN_MODULES>\",\n\t\t\"<THIRD_PARTY_MODULES>\",\n\t\t\"\",\n\t\t\"^@rootreeweb/(.*)$\",\n\t\t\"\",\n\t\t\"^@/(.*)$\",\n\t\t\"^[../]\",\n\t\t\"^[./]\",\n\t],\n\tjsdocPreferCodeFences: true,\n\tplugins,\n\tuseTabs: true,\n};\n\nexport type PrettierTailwindOptions = { functions?: string[] };\n\n/**\n * Provides a prettier config for Astro projects.\n *\n * @param params The tailwindcss info.\n * @returns The configuration.\n */\nexport function prettierAstro(\n\t...params: Parameters<typeof prettierTailwind>\n): Config {\n\tconst base = prettierTailwind(...params);\n\treturn {\n\t\t...base,\n\t\toverrides: [\n\t\t\t...(base.overrides ?? []),\n\t\t\t{\n\t\t\t\tfiles: \"*.astro\",\n\t\t\t\toptions: {\n\t\t\t\t\tparser: \"astro\",\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t\tplugins: [\"prettier-plugin-astro\", ...base.plugins],\n\t};\n}\n\n/**\n * Creates a prettier configuration for tailwind.\n *\n * @example\n * \timport { prettierTailwind } from \"@rootreeweb/linting\";\n *\n * \texport default prettierTailwind(\"./src/app/globals.css\");\n *\n * @param tailwindStylesheet The path to the stylesheet that imports Tailwind.\n * @param options Additional options for generating the configuration.\n * @returns The configuration.\n */\nexport function prettierTailwind(\n\ttailwindStylesheet: string,\n\toptions?: PrettierTailwindOptions,\n): Config & { plugins: Plugin[] } {\n\treturn {\n\t\t...prettier,\n\t\tplugins: [...plugins, \"prettier-plugin-tailwindcss\"],\n\t\ttailwindFunctions: [\"twMerge\", ...(options?.functions ?? [])],\n\n\t\ttailwindStylesheet,\n\t};\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rootreeweb/linting",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
4
4
  "description": "Shared configurations for ESLint and Stylelint",
5
5
  "license": "UNLICENSED",
6
6
  "repository": "github:rootreeweb/meta-tools",
@@ -47,15 +47,15 @@
47
47
  "dependencies": {
48
48
  "@eslint/js": "^10.0.1",
49
49
  "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
50
- "@next/eslint-plugin-next": "^16.4.2",
50
+ "@next/eslint-plugin-next": "^16.4.3",
51
51
  "@rootreeweb/js-lib": "^4.0.20",
52
- "@tanstack/eslint-plugin-query": "^5.104.5",
53
- "@vitest/eslint-plugin": "^1.6.27",
52
+ "@tanstack/eslint-plugin-query": "^5.105.0",
53
+ "@vitest/eslint-plugin": "^1.6.28",
54
54
  "eslint-import-resolver-typescript": "^4.4.5",
55
55
  "eslint-package-json": "^3.0.0",
56
56
  "eslint-plugin-astro": "^3.2.1",
57
57
  "eslint-plugin-import": "^2.32.0",
58
- "eslint-plugin-jsdoc": "^65.4.0",
58
+ "eslint-plugin-jsdoc": "^65.4.2",
59
59
  "eslint-plugin-jsx-a11y": "^6.10.2",
60
60
  "eslint-plugin-perfectionist": "^5.13.0",
61
61
  "eslint-plugin-promise": "^7.3.0",
@@ -67,10 +67,10 @@
67
67
  "eslint-plugin-sonarjs": "^4.2.2",
68
68
  "eslint-plugin-tailwindcss": "^4.4.0",
69
69
  "eslint-plugin-testing-library": "^7.16.2",
70
- "eslint-plugin-turbo": "^2.11.9",
70
+ "eslint-plugin-turbo": "^2.11.10",
71
71
  "globals": "^17.13.0",
72
- "postcss": "^8.5.31",
73
- "prettier-plugin-astro": "^1.1.1",
72
+ "postcss": "^8.5.32",
73
+ "prettier-plugin-astro": "^1.1.2",
74
74
  "prettier-plugin-jsdoc": "^1.8.1",
75
75
  "prettier-plugin-tailwindcss": "^0.8.1",
76
76
  "stylelint-config-standard": "^40.0.0",
@@ -78,10 +78,10 @@
78
78
  "stylelint-config-tailwindcss": "^1.0.1",
79
79
  "stylelint-prettier": "^5.0.3",
80
80
  "tailwindcss": "^4.3.3",
81
- "typescript-eslint": "^8.72.0"
81
+ "typescript-eslint": "^8.72.1"
82
82
  },
83
83
  "devDependencies": {
84
- "@rootreeweb/tsconfigs": "^3.4.1",
84
+ "@rootreeweb/tsconfigs": "^3.4.2",
85
85
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
86
86
  "@types/eslint-plugin-security": "^3.0.1",
87
87
  "@types/node": "^26.6.5",
@@ -92,15 +92,15 @@
92
92
  "del-cli": "^8.0.1",
93
93
  "eslint": "^10.13.0",
94
94
  "husky": "^9.1.7",
95
- "jscpd": "^5.4.1",
96
- "knip": "^6.42.1",
95
+ "jscpd": "^5.4.2",
96
+ "knip": "^6.43.0",
97
97
  "lint-staged": "^17.6.0",
98
98
  "prettier": "~3.8.5",
99
99
  "react": "^19.3.1",
100
100
  "stylelint": "~17.16.0",
101
- "turbo": "~2.11.9",
101
+ "turbo": "~2.11.10",
102
102
  "typescript": "^6.0.3",
103
- "vite": "^8.3.4",
103
+ "vite": "^8.3.5",
104
104
  "vitest": "^5.0.5"
105
105
  },
106
106
  "peerDependencies": {