@shayanthenerd/eslint-config 0.30.2 → 0.31.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.
Files changed (42) hide show
  1. package/dist/configs/astro.mjs +6 -5
  2. package/dist/configs/baseline.mjs +1 -1
  3. package/dist/configs/css.mjs +5 -4
  4. package/dist/configs/cypress.mjs +4 -3
  5. package/dist/configs/html.mjs +4 -3
  6. package/dist/configs/importX.mjs +5 -4
  7. package/dist/configs/javascript.mjs +4 -3
  8. package/dist/configs/markdown.mjs +4 -3
  9. package/dist/configs/next.mjs +4 -3
  10. package/dist/configs/node.mjs +6 -5
  11. package/dist/configs/nuxt.mjs +23 -22
  12. package/dist/configs/packageJson.mjs +4 -3
  13. package/dist/configs/perfectionist.mjs +5 -4
  14. package/dist/configs/playwright.mjs +4 -3
  15. package/dist/configs/promise.mjs +5 -4
  16. package/dist/configs/react.mjs +4 -3
  17. package/dist/configs/storybook.mjs +4 -3
  18. package/dist/configs/stylistic.mjs +5 -4
  19. package/dist/configs/tailwind.mjs +5 -4
  20. package/dist/configs/typescript.mjs +5 -4
  21. package/dist/configs/unicorn.mjs +5 -4
  22. package/dist/configs/vitest.mjs +4 -3
  23. package/dist/configs/vue.mjs +5 -4
  24. package/dist/configs/zod.mjs +5 -4
  25. package/dist/helpers/options/enableDetectedConfigs.mjs +1 -1
  26. package/dist/helpers/options/mergeWithDefaults.mjs +1 -1
  27. package/dist/index.mjs +19 -18
  28. package/dist/rules/baseline.mjs +1 -1
  29. package/dist/rules/css.mjs +1 -1
  30. package/dist/rules/html.mjs +1 -1
  31. package/dist/rules/markdown.mjs +1 -1
  32. package/dist/rules/perfectionist.mjs +8 -13
  33. package/dist/rules/react.mjs +1 -1
  34. package/dist/rules/stylistic.mjs +4 -2
  35. package/dist/rules/tailwind.mjs +1 -1
  36. package/dist/rules/typescript.mjs +2 -2
  37. package/dist/rules/unicorn.mjs +1 -1
  38. package/dist/rules/vue.mjs +4 -3
  39. package/dist/rules/zod.mjs +3 -1
  40. package/dist/types/eslint-schema.d.mts +969 -776
  41. package/dist/types/index.d.mts +8 -6
  42. package/package.json +24 -22
@@ -1,14 +1,14 @@
1
1
  import { JavascriptRules, PluginRules, RuleOptions } from "./eslintRules.mjs";
2
- import { VueOptions } from "./options/vue.mjs";
3
- import { ZodOptions } from "./options/zod.mjs";
4
- import { NuxtOptions } from "./options/nuxt.mjs";
5
- import { TestOptions } from "./options/test.mjs";
6
- import { ReactOptions } from "./options/react.mjs";
7
2
  import { BaselineOptions } from "./options/baseline.mjs";
8
3
  import { MarkdownOptions } from "./options/markdown.mjs";
9
- import { TailwindOptions } from "./options/tailwind.mjs";
4
+ import { NuxtOptions } from "./options/nuxt.mjs";
5
+ import { ReactOptions } from "./options/react.mjs";
10
6
  import { StylisticOptions } from "./options/stylistic.mjs";
7
+ import { TailwindOptions } from "./options/tailwind.mjs";
8
+ import { TestOptions } from "./options/test.mjs";
11
9
  import { TypescriptOptions } from "./options/typescript.mjs";
10
+ import { VueOptions } from "./options/vue.mjs";
11
+ import { ZodOptions } from "./options/zod.mjs";
12
12
  import { Linter } from "eslint";
13
13
  //#region src/types/index.d.ts
14
14
  type ConfigOverrides = Pick<Linter.Config, 'name' | 'files' | 'ignores' | 'plugins' | 'settings' | 'languageOptions'>;
@@ -346,6 +346,8 @@ interface Options {
346
346
  /**
347
347
  * The type of sorting.
348
348
  *
349
+ * It doesn't apply to [perfectionist/sort-imports](https://perfectionist.dev/rules/sort-imports).
350
+ *
349
351
  * @default 'line-length'
350
352
  *
351
353
  * @see [Perfectionist Settings: `type` option](https://perfectionist.dev/guide/getting-started#settings)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shayanthenerd/eslint-config",
3
- "version": "0.30.2",
3
+ "version": "0.31.0",
4
4
  "description": "A modern, flexible ESLint configuration for enforcing best practices and maintaining a consistent coding style",
5
5
  "keywords": [
6
6
  "eslint",
@@ -43,7 +43,9 @@
43
43
  "pre-commit": "./node_modules/.bin/nano-staged"
44
44
  },
45
45
  "nano-staged": {
46
- "**/*.{json,yaml}!pnpm-lock.yaml": "pnpm format",
46
+ "**/*.json": "pnpm format",
47
+ "**/*.ts": "pnpm lint",
48
+ "package.json": "pnpm lint",
47
49
  "pnpm-lock.yaml": [
48
50
  "pnpm generate:types",
49
51
  "pnpm generate:docs",
@@ -53,15 +55,15 @@
53
55
  "pnpm generate:docs",
54
56
  "git add README.md"
55
57
  ],
56
- "{**/*.ts,package.json}": "pnpm lint"
58
+ "{.github/workflows/**/*.yaml,pnpm-workspace.yaml}": "pnpm format"
57
59
  },
58
60
  "dependencies": {
59
- "@eslint-react/eslint-plugin": "5.18.6",
60
- "@eslint/css": "1.4.0",
61
+ "@eslint-react/eslint-plugin": "5.19.0",
62
+ "@eslint/css": "2.0.0",
61
63
  "@eslint/markdown": "8.0.3",
62
64
  "@html-eslint/eslint-plugin": "0.65.0",
63
65
  "@html-eslint/eslint-plugin-react": "0.65.0",
64
- "@next/eslint-plugin-next": "16.3.2",
66
+ "@next/eslint-plugin-next": "16.3.4",
65
67
  "@nuxt/eslint-plugin": "1.17.0",
66
68
  "@stylistic/eslint-plugin": "5.10.0",
67
69
  "@vitest/eslint-plugin": "1.6.27",
@@ -76,36 +78,36 @@
76
78
  "eslint-plugin-import-x": "4.17.1",
77
79
  "eslint-plugin-jsx-a11y": "6.10.2",
78
80
  "eslint-plugin-n": "18.3.0",
79
- "eslint-plugin-package-json": "1.7.1",
80
- "eslint-plugin-perfectionist": "5.10.1",
81
+ "eslint-plugin-package-json": "1.8.0",
82
+ "eslint-plugin-perfectionist": "5.11.0",
81
83
  "eslint-plugin-playwright": "2.11.0",
82
84
  "eslint-plugin-promise": "7.3.0",
83
- "eslint-plugin-storybook": "10.5.10",
84
- "eslint-plugin-unicorn": "73.0.0",
85
- "eslint-plugin-vue": "10.10.0",
85
+ "eslint-plugin-storybook": "10.6.0",
86
+ "eslint-plugin-unicorn": "74.0.0",
87
+ "eslint-plugin-vue": "10.11.0",
86
88
  "eslint-plugin-vuejs-accessibility": "2.6.0",
87
- "eslint-plugin-zod": "4.10.0",
88
- "eslint-plugin-zod-mini": "1.7.0",
89
- "globals": "17.11.0",
89
+ "eslint-plugin-zod": "4.12.0",
90
+ "eslint-plugin-zod-mini": "1.9.0",
91
+ "globals": "17.12.0",
90
92
  "local-pkg": "1.2.1",
91
93
  "nuxt-link-checker": "5.3.0",
92
- "tailwind-csstree": "0.3.3",
93
- "typescript-eslint": "8.68.0"
94
+ "tailwind-csstree": "0.4.0",
95
+ "typescript-eslint": "8.70.0"
94
96
  },
95
97
  "devDependencies": {
96
98
  "@arethetypeswrong/cli": "0.18.5",
97
- "@eslint/config-inspector": "3.3.0",
99
+ "@eslint/config-inspector": "3.4.0",
98
100
  "@types/eslint-plugin-jsx-a11y": "6.10.1",
99
- "@types/node": "26.3.0",
100
- "eslint": "10.9.1",
101
+ "@types/node": "26.5.0",
102
+ "eslint": "10.10.0",
101
103
  "eslint-typegen": "2.3.1",
102
104
  "nano-staged": "1.0.2",
103
105
  "prettier": "3.9.6",
104
106
  "publint": "0.3.24",
105
107
  "serve": "14.2.6",
106
- "simple-git-hooks": "2.13.1",
108
+ "simple-git-hooks": "2.14.0",
107
109
  "ts-morph": "28.0.0",
108
- "tsdown": "0.22.14",
110
+ "tsdown": "0.23.0",
109
111
  "typescript": "6.0.3",
110
112
  "unplugin-unused": "0.6.0"
111
113
  },
@@ -118,7 +120,7 @@
118
120
  "devEngines": {
119
121
  "packageManager": {
120
122
  "name": "pnpm",
121
- "version": "11.23.0",
123
+ "version": "12.3.4",
122
124
  "onFail": "warn"
123
125
  },
124
126
  "runtime": {