@rootreeweb/linting 5.4.0 → 5.5.1
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 +16 -0
- package/README.md +2 -2
- package/dist/esm/prettier.d.ts.map +1 -1
- package/dist/esm/prettier.js +1 -0
- package/dist/esm/prettier.js.map +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @rootreeweb/linting
|
|
2
2
|
|
|
3
|
+
## 5.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Chore: Dependency updates
|
|
8
|
+
|
|
9
|
+
## 5.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Update code example settings
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Chore: Dependency Updates
|
|
18
|
+
|
|
3
19
|
## 5.4.0
|
|
4
20
|
|
|
5
21
|
### 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
|
|
121
|
-
yarn skills experimental_sync
|
|
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,
|
|
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"}
|
package/dist/esm/prettier.js
CHANGED
package/dist/esm/prettier.js.map
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "5.5.1",
|
|
4
4
|
"description": "Shared configurations for ESLint and Stylelint",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": "github:rootreeweb/meta-tools",
|
|
@@ -47,30 +47,30 @@
|
|
|
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.
|
|
51
|
-
"@rootreeweb/js-lib": "^4.0.
|
|
52
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
53
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
50
|
+
"@next/eslint-plugin-next": "^16.4.4",
|
|
51
|
+
"@rootreeweb/js-lib": "^4.0.21",
|
|
52
|
+
"@tanstack/eslint-plugin-query": "^5.105.2",
|
|
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.
|
|
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",
|
|
62
62
|
"eslint-plugin-react": "^7.37.5",
|
|
63
63
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
64
64
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
65
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^1.0
|
|
66
|
-
"eslint-plugin-security": "^4.2.
|
|
65
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^1.1.0",
|
|
66
|
+
"eslint-plugin-security": "^4.2.1",
|
|
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.
|
|
71
|
-
"globals": "^17.
|
|
72
|
-
"postcss": "^8.5.
|
|
73
|
-
"prettier-plugin-astro": "^1.1.
|
|
70
|
+
"eslint-plugin-turbo": "^2.11.10",
|
|
71
|
+
"globals": "^17.14.0",
|
|
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,29 +78,29 @@
|
|
|
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.
|
|
81
|
+
"typescript-eslint": "^8.72.1"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@rootreeweb/tsconfigs": "^3.4.
|
|
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
|
-
"@types/node": "^26.6.
|
|
87
|
+
"@types/node": "^26.6.6",
|
|
88
88
|
"@types/react": "^19.3.0",
|
|
89
89
|
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
|
|
90
90
|
"@vitest/coverage-v8": "^5.0.5",
|
|
91
91
|
"@vitest/ui": "^5.0.5",
|
|
92
92
|
"del-cli": "^8.0.1",
|
|
93
|
-
"eslint": "^10.
|
|
93
|
+
"eslint": "^10.14.0",
|
|
94
94
|
"husky": "^9.1.7",
|
|
95
|
-
"jscpd": "^5.4.
|
|
96
|
-
"knip": "^6.
|
|
95
|
+
"jscpd": "^5.4.2",
|
|
96
|
+
"knip": "^6.44.1",
|
|
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.
|
|
101
|
+
"turbo": "~2.11.10",
|
|
102
102
|
"typescript": "^6.0.3",
|
|
103
|
-
"vite": "^8.3.
|
|
103
|
+
"vite": "^8.3.5",
|
|
104
104
|
"vitest": "^5.0.5"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|