@santi020k/eslint-config-libraries 3.1.3 → 3.1.4
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/zod.js +11 -1
- package/dist/zod.js.map +1 -1
- package/package.json +11 -11
package/dist/zod.js
CHANGED
|
@@ -10,7 +10,17 @@ const zod = defineLazyConfig("zod", async () => {
|
|
|
10
10
|
zod: pluginZod
|
|
11
11
|
},
|
|
12
12
|
rules: {
|
|
13
|
-
...pluginZod.configs.recommended.rules
|
|
13
|
+
...pluginZod.configs.recommended.rules,
|
|
14
|
+
// Zod 5 split these established defaults into strict and stylistic presets.
|
|
15
|
+
"zod/array-style": "error",
|
|
16
|
+
"zod/prefer-enum-over-literal-union": "error",
|
|
17
|
+
"zod/prefer-loose-object": "error",
|
|
18
|
+
"zod/prefer-meta": "error",
|
|
19
|
+
"zod/prefer-meta-last": "error",
|
|
20
|
+
"zod/prefer-nullish": "error",
|
|
21
|
+
"zod/prefer-strict-object": "error",
|
|
22
|
+
"zod/prefer-string-schema-with-trim": "error",
|
|
23
|
+
"zod/prefer-trim-before-string-length-checks": "error"
|
|
14
24
|
}
|
|
15
25
|
}
|
|
16
26
|
];
|
package/dist/zod.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/zod.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\nimport type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadDefault, type PluginWithConfigs } from './lazy.js'\n\n/**\n * Zod ESLint configuration\n * Provides validation rules for Zod schemas\n */\nexport const zod: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('zod', async () => {\n const pluginZod = await loadDefault<PluginWithConfigs<'recommended'>>('eslint-plugin-zod')\n\n return [\n {\n files: GLOB_JS_TS,\n name: 'eslint-config-integrations/zod',\n plugins: {\n zod: pluginZod\n },\n rules: {\n ...pluginZod.configs.recommended.rules\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAG3B,SAAS,kBAAkB,mBAA2C;AAM/D,MAAM,MAAsD,iBAAiB,OAAO,YAAY;AACrG,QAAM,YAAY,MAAM,YAA8C,mBAAmB;AAEzF,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,QACP,KAAK;AAAA,MACP;AAAA,MACA,OAAO;AAAA,QACL,GAAG,UAAU,QAAQ,YAAY;AAAA,
|
|
1
|
+
{"version":3,"sources":["../src/zod.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\nimport type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadDefault, type PluginWithConfigs } from './lazy.js'\n\n/**\n * Zod ESLint configuration\n * Provides validation rules for Zod schemas\n */\nexport const zod: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('zod', async () => {\n const pluginZod = await loadDefault<PluginWithConfigs<'recommended'>>('eslint-plugin-zod')\n\n return [\n {\n files: GLOB_JS_TS,\n name: 'eslint-config-integrations/zod',\n plugins: {\n zod: pluginZod\n },\n rules: {\n ...pluginZod.configs.recommended.rules,\n // Zod 5 split these established defaults into strict and stylistic presets.\n 'zod/array-style': 'error',\n 'zod/prefer-enum-over-literal-union': 'error',\n 'zod/prefer-loose-object': 'error',\n 'zod/prefer-meta': 'error',\n 'zod/prefer-meta-last': 'error',\n 'zod/prefer-nullish': 'error',\n 'zod/prefer-strict-object': 'error',\n 'zod/prefer-string-schema-with-trim': 'error',\n 'zod/prefer-trim-before-string-length-checks': 'error'\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAG3B,SAAS,kBAAkB,mBAA2C;AAM/D,MAAM,MAAsD,iBAAiB,OAAO,YAAY;AACrG,QAAM,YAAY,MAAM,YAA8C,mBAAmB;AAEzF,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,QACP,KAAK;AAAA,MACP;AAAA,MACA,OAAO;AAAA,QACL,GAAG,UAAU,QAAQ,YAAY;AAAA;AAAA,QAEjC,mBAAmB;AAAA,QACnB,sCAAsC;AAAA,QACtC,2BAA2B;AAAA,QAC3B,mBAAmB;AAAA,QACnB,wBAAwB;AAAA,QACxB,sBAAsB;AAAA,QACtB,4BAA4B;AAAA,QAC5B,sCAAsC;AAAA,QACtC,+CAA+C;AAAA,MACjD;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/eslint-config-libraries",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@stencil/eslint-plugin": "^1.4.0",
|
|
29
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
29
|
+
"@tanstack/eslint-plugin-query": "^5.104.1",
|
|
30
30
|
"@tanstack/eslint-plugin-router": "^1.162.0",
|
|
31
|
-
"@typescript-eslint/utils": "^8.
|
|
32
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
31
|
+
"@typescript-eslint/utils": "^8.71.1",
|
|
32
|
+
"eslint-plugin-better-tailwindcss": "^4.9.0",
|
|
33
33
|
"eslint-plugin-i18next": "^6.1.5",
|
|
34
|
-
"eslint-plugin-storybook": "^10.6.
|
|
35
|
-
"eslint-plugin-turbo": "^2.11.
|
|
34
|
+
"eslint-plugin-storybook": "^10.6.1",
|
|
35
|
+
"eslint-plugin-turbo": "^2.11.7",
|
|
36
36
|
"eslint-plugin-vercel-ai-security": "^2.1.3",
|
|
37
|
-
"eslint-plugin-zod": "^
|
|
38
|
-
"@santi020k/eslint-config-core": "^3.
|
|
37
|
+
"eslint-plugin-zod": "^5.0.0",
|
|
38
|
+
"@santi020k/eslint-config-core": "^3.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/node": "^26.6.
|
|
42
|
-
"eslint": "^10.
|
|
43
|
-
"publint": "^0.3.
|
|
41
|
+
"@types/node": "^26.6.4",
|
|
42
|
+
"eslint": "^10.12.0",
|
|
43
|
+
"publint": "^0.3.25",
|
|
44
44
|
"tailwindcss": "^4.3.3",
|
|
45
45
|
"tsup": "^8.5.1",
|
|
46
46
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|