@shayanthenerd/eslint-config 0.28.4 → 0.28.5

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.
@@ -9,6 +9,7 @@ const defaultIgnorePatterns = [
9
9
  "**/next-env.d.ts",
10
10
  "**/components.d.ts",
11
11
  "**/routeTree.gen.ts",
12
+ "**/eslint-typegen.d.ts",
12
13
  "**/auto-import?(s).d.ts",
13
14
  "**/out",
14
15
  "**/dist",
@@ -22,6 +22,7 @@ function getPlaywrightRules(options) {
22
22
  "playwright/no-skipped-test": "error",
23
23
  "playwright/no-slowed-test": "warn",
24
24
  "playwright/no-standalone-expect": "error",
25
+ "playwright/no-unnecessary-assertions": "error",
25
26
  "playwright/no-unsafe-references": "error",
26
27
  "playwright/no-unused-locators": "warn",
27
28
  "playwright/no-useless-await": "warn",
@@ -20,6 +20,7 @@ function getZodRules(options) {
20
20
  "zod-mini/no-unnecessary-readonly": "warn",
21
21
  "zod-mini/prefer-enum-over-literal-union": "warn",
22
22
  "zod-mini/prefer-meta": "warn",
23
+ "zod-mini/prefer-nullish": "warn",
23
24
  "zod-mini/prefer-tuple-over-array-length": "warn",
24
25
  "zod-mini/require-brand-type-parameter": "error",
25
26
  "zod-mini/require-error-message": "warn"
@@ -51,6 +52,7 @@ function getZodRules(options) {
51
52
  "zod/prefer-enum-over-literal-union": "warn",
52
53
  "zod/prefer-loose-object": "warn",
53
54
  "zod/prefer-meta": "warn",
55
+ "zod/prefer-nullish": "warn",
54
56
  "zod/prefer-meta-last": "warn",
55
57
  "zod/prefer-strict-object": "warn",
56
58
  "zod/prefer-top-level-string-formats": "warn",
@@ -5670,6 +5670,11 @@ interface ESLintSchema {
5670
5670
  * @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-standalone-expect.md
5671
5671
  */
5672
5672
  'playwright/no-standalone-expect'?: Linter.RuleEntry<[]>;
5673
+ /**
5674
+ * Disallow assertions on a Locator that can never fail
5675
+ * @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-unnecessary-assertions.md
5676
+ */
5677
+ 'playwright/no-unnecessary-assertions'?: Linter.RuleEntry<[]>;
5673
5678
  /**
5674
5679
  * Prevent unsafe variable references in page.evaluate() and page.addInitScript()
5675
5680
  * @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md
@@ -9810,6 +9815,11 @@ interface ESLintSchema {
9810
9815
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod-mini/docs/rules/prefer-meta.md
9811
9816
  */
9812
9817
  'zod-mini/prefer-meta'?: Linter.RuleEntry<[]>;
9818
+ /**
9819
+ * Enforce `z.nullish()` instead of combining `z.optional()` and `z.nullable()`
9820
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod-mini/docs/rules/prefer-nullish.md
9821
+ */
9822
+ 'zod-mini/prefer-nullish'?: Linter.RuleEntry<[]>;
9813
9823
  /**
9814
9824
  * Prefer `z.tuple()` over a length-constrained `z.array()` so the length is preserved in the inferred type.
9815
9825
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod-mini/docs/rules/prefer-tuple-over-array-length.md
@@ -9986,6 +9996,11 @@ interface ESLintSchema {
9986
9996
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-meta-last.md
9987
9997
  */
9988
9998
  'zod/prefer-meta-last'?: Linter.RuleEntry<[]>;
9999
+ /**
10000
+ * Enforce `.nullish()` instead of combining `.optional()` and `.nullable()`
10001
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-nullish.md
10002
+ */
10003
+ 'zod/prefer-nullish'?: Linter.RuleEntry<[]>;
9989
10004
  /**
9990
10005
  * Prefer `z.strictObject()` over `z.object().strict()`
9991
10006
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-strict-object.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shayanthenerd/eslint-config",
3
- "version": "0.28.4",
3
+ "version": "0.28.5",
4
4
  "description": "A modern, flexible ESLint configuration for enforcing best practices and maintaining a consistent coding style",
5
5
  "keywords": [
6
6
  "eslint",
@@ -49,15 +49,15 @@
49
49
  "{**/*.ts,package.json}": "pnpm lint"
50
50
  },
51
51
  "dependencies": {
52
- "@eslint-react/eslint-plugin": "5.17.3",
52
+ "@eslint-react/eslint-plugin": "5.18.0",
53
53
  "@eslint/css": "1.4.0",
54
54
  "@eslint/markdown": "8.0.3",
55
55
  "@html-eslint/eslint-plugin": "0.64.0",
56
56
  "@html-eslint/eslint-plugin-react": "0.64.0",
57
- "@next/eslint-plugin-next": "16.2.10",
57
+ "@next/eslint-plugin-next": "16.2.12",
58
58
  "@nuxt/eslint-plugin": "1.16.0",
59
59
  "@stylistic/eslint-plugin": "5.10.0",
60
- "@vitest/eslint-plugin": "1.6.23",
60
+ "@vitest/eslint-plugin": "1.6.24",
61
61
  "astro-eslint-parser": "3.0.0",
62
62
  "defu": "6.1.7",
63
63
  "eslint-flat-config-utils": "3.2.0",
@@ -69,17 +69,17 @@
69
69
  "eslint-plugin-import-x": "4.17.1",
70
70
  "eslint-plugin-jsx-a11y": "6.10.2",
71
71
  "eslint-plugin-n": "18.2.2",
72
- "eslint-plugin-package-json": "1.6.0",
72
+ "eslint-plugin-package-json": "1.6.2",
73
73
  "eslint-plugin-perfectionist": "5.10.0",
74
- "eslint-plugin-playwright": "2.10.5",
74
+ "eslint-plugin-playwright": "2.11.0",
75
75
  "eslint-plugin-promise": "7.3.0",
76
- "eslint-plugin-storybook": "10.5.3",
76
+ "eslint-plugin-storybook": "10.5.5",
77
77
  "eslint-plugin-unicorn": "72.0.0",
78
78
  "eslint-plugin-vue": "10.10.0",
79
79
  "eslint-plugin-vuejs-accessibility": "2.5.0",
80
- "eslint-plugin-zod": "4.8.0",
81
- "eslint-plugin-zod-mini": "1.5.0",
82
- "globals": "17.7.0",
80
+ "eslint-plugin-zod": "4.9.0",
81
+ "eslint-plugin-zod-mini": "1.6.0",
82
+ "globals": "17.8.0",
83
83
  "local-pkg": "1.2.1",
84
84
  "nuxt-link-checker": "5.1.3",
85
85
  "tailwind-csstree": "0.3.3",
@@ -89,19 +89,19 @@
89
89
  "@arethetypeswrong/cli": "0.18.5",
90
90
  "@eslint/config-inspector": "3.1.0",
91
91
  "@types/eslint-plugin-jsx-a11y": "6.10.1",
92
- "@types/node": "26.1.1",
92
+ "@types/node": "26.1.2",
93
93
  "actions-up": "1.16.0",
94
- "eslint": "10.7.0",
94
+ "eslint": "10.8.0",
95
95
  "eslint-typegen": "2.3.1",
96
96
  "nano-staged": "1.0.2",
97
97
  "prettier": "3.9.6",
98
- "publint": "0.3.21",
98
+ "publint": "0.3.22",
99
99
  "serve": "14.2.6",
100
100
  "simple-git-hooks": "2.13.1",
101
101
  "ts-morph": "28.0.0",
102
- "tsdown": "0.22.12",
102
+ "tsdown": "0.22.14",
103
103
  "typescript": "6.0.3",
104
- "unplugin-unused": "0.5.7"
104
+ "unplugin-unused": "0.6.0"
105
105
  },
106
106
  "peerDependencies": {
107
107
  "eslint": "^10.6.0"
@@ -112,7 +112,7 @@
112
112
  "devEngines": {
113
113
  "packageManager": {
114
114
  "name": "pnpm",
115
- "version": "11.15.1",
115
+ "version": "11.16.0",
116
116
  "onFail": "warn"
117
117
  },
118
118
  "runtime": {
@@ -140,6 +140,6 @@
140
140
  "check:exports": "attw --pack --profile=esm-only",
141
141
  "format": "prettier --write '**/*.{json,yaml}' '!pnpm-lock.yaml' --cache",
142
142
  "lint": "eslint --fix --max-warnings=0 --cache --cache-location=./node_modules/.cache/.eslintcache",
143
- "ci:validate": "pnpm generate:types && pnpm format && pnpm build:package && pnpm lint && pnpm check:types && pnpm build:inspector && pnpm build:package && pnpm check:exports"
143
+ "ci:validate": "pnpm format && pnpm build:package && pnpm lint && pnpm check:types && pnpm build:inspector && pnpm build:package && pnpm check:exports"
144
144
  }
145
145
  }