@jsse/eslint-config 0.3.6 → 0.4.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 (47) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +17 -12
  3. package/dist/cli.js +3 -3
  4. package/dist/esm/config-fns.d.ts +109 -34
  5. package/dist/esm/config-fns.js +111 -35
  6. package/dist/esm/configs/{comments.d.ts → de-morgan.d.ts} +1 -1
  7. package/dist/esm/configs/de-morgan.js +9 -0
  8. package/dist/esm/configs/eslint-comments.d.ts +2 -0
  9. package/dist/esm/configs/{comments.js → eslint-comments.js} +1 -1
  10. package/dist/esm/configs/gql.d.ts +2 -2
  11. package/dist/esm/configs/markdown.js +1 -1
  12. package/dist/esm/configs/prettier.d.ts +2 -2
  13. package/dist/esm/configs/react.d.ts +3 -3
  14. package/dist/esm/configs/sort-package-json.js +19 -6
  15. package/dist/esm/configs/stylistic.js +1 -1
  16. package/dist/esm/configs/ts/parser.d.ts +2 -2
  17. package/dist/esm/configs/ts/parser.js +7 -5
  18. package/dist/esm/configs/ts/requires-type-checking.js +1 -0
  19. package/dist/esm/configs/ts/typescript-rules.d.ts +9 -4
  20. package/dist/esm/configs/ts/typescript-rules.js +26 -62
  21. package/dist/esm/configs/ts/typescript.js +56 -43
  22. package/dist/esm/define-config.d.ts +3 -3
  23. package/dist/esm/define-config.js +38 -28
  24. package/dist/esm/fixable.d.ts +2 -1
  25. package/dist/esm/fixable.js +3 -391
  26. package/dist/esm/generated/fixable-rules-map.d.ts +2 -0
  27. package/dist/esm/generated/fixable-rules-map.js +436 -0
  28. package/dist/esm/generated/version.d.ts +1 -1
  29. package/dist/esm/generated/version.js +1 -1
  30. package/dist/esm/index.d.ts +1 -1
  31. package/dist/esm/index.js +0 -1
  32. package/dist/esm/lager.d.ts +1 -1
  33. package/dist/esm/lager.js +1 -1
  34. package/dist/esm/plugins-all.d.ts +11 -8
  35. package/dist/esm/plugins-all.js +99 -10
  36. package/dist/esm/plugins.d.ts +1 -0
  37. package/dist/esm/plugins.js +4 -1
  38. package/dist/esm/presets.d.ts +16 -0
  39. package/dist/esm/presets.js +96 -1
  40. package/dist/esm/types.d.ts +34 -22
  41. package/dist/esm/utils.d.ts +5 -5
  42. package/dist/esm/utils.js +1 -1
  43. package/dist/index.d.ts +7445 -6300
  44. package/dist/index.js +373 -238
  45. package/package.json +23 -30
  46. package/dist/esm/plugindex.d.ts +0 -7
  47. package/dist/esm/plugindex.js +0 -60
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.3.6",
4
+ "version": "0.4.0",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -40,9 +40,7 @@
40
40
  "eslint": "^9.10.0",
41
41
  "eslint-plugin-react": "~7.37.1",
42
42
  "eslint-plugin-react-hooks": "^5.0.0",
43
- "eslint-plugin-react-refresh": "~0.4.12",
44
- "eslint-plugin-tailwindcss": "^3.17.5",
45
- "tailwindcss": "^3.4.10"
43
+ "eslint-plugin-react-refresh": "~0.4.12"
46
44
  },
47
45
  "peerDependenciesMeta": {
48
46
  "eslint": {
@@ -56,66 +54,61 @@
56
54
  },
57
55
  "eslint-plugin-react-refresh": {
58
56
  "optional": true
59
- },
60
- "eslint-plugin-tailwindcss": {
61
- "optional": true
62
- },
63
- "tailwindcss": {
64
- "optional": true
65
57
  }
66
58
  },
67
59
  "dependencies": {
68
60
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
69
61
  "@eslint/compat": "^1.2.8",
70
- "@eslint/js": "~9.25.1",
62
+ "@eslint/js": "~9.27.0",
71
63
  "@eslint/markdown": "^6.4.0",
72
64
  "@stylistic/eslint-plugin": "4.2.0",
73
- "@typescript-eslint/eslint-plugin": "^8.31.1",
74
- "@typescript-eslint/parser": "^8.31.1",
75
- "@vitest/eslint-plugin": "^1.1.43",
65
+ "@typescript-eslint/eslint-plugin": "^8.32.1",
66
+ "@typescript-eslint/parser": "^8.32.1",
67
+ "@vitest/eslint-plugin": "^1.2.0",
76
68
  "debug": "^4.4.0",
77
69
  "eslint-config-flat-gitignore": "^2.1.0",
78
70
  "eslint-merge-processors": "^2.0.0",
79
71
  "eslint-plugin-antfu": "^3.1.1",
80
72
  "eslint-plugin-command": "^3.2.0",
81
- "eslint-plugin-import-x": "^4.11.0",
82
- "eslint-plugin-jsdoc": "^50.6.11",
83
- "eslint-plugin-jsonc": "^2.20.0",
84
- "eslint-plugin-n": "^17.17.0",
73
+ "eslint-plugin-de-morgan": "^1.2.1",
74
+ "eslint-plugin-import-x": "^4.12.2",
75
+ "eslint-plugin-jsdoc": "^50.6.17",
76
+ "eslint-plugin-jsonc": "^2.20.1",
77
+ "eslint-plugin-n": "^17.18.0",
85
78
  "eslint-plugin-no-only-tests": "^3.3.0",
86
- "eslint-plugin-perfectionist": "^4.12.3",
79
+ "eslint-plugin-perfectionist": "^4.13.0",
87
80
  "eslint-plugin-react": "~7.37.5",
88
81
  "eslint-plugin-react-hooks": "~5.2.0",
89
82
  "eslint-plugin-react-refresh": "~0.4.20",
90
83
  "eslint-plugin-toml": "^0.12.0",
91
84
  "eslint-plugin-tsdoc": "^0.4.0",
92
- "eslint-plugin-unicorn": "^58.0.0",
85
+ "eslint-plugin-unicorn": "^59.0.1",
93
86
  "eslint-plugin-unused-imports": "^4.1.4",
94
87
  "eslint-plugin-yml": "^1.18.0",
95
88
  "jsonc-eslint-parser": "^2.4.0",
96
89
  "toml-eslint-parser": "^0.10.0",
97
- "typescript-eslint": "^8.31.1",
90
+ "typescript-eslint": "^8.32.1",
98
91
  "yaml-eslint-parser": "^1.3.0"
99
92
  },
100
93
  "devDependencies": {
101
94
  "@biomejs/biome": "1.9.4",
102
- "@changesets/cli": "^2.29.2",
103
- "@jsse/prettier-config": "^0.1.0",
95
+ "@changesets/cli": "^2.29.4",
96
+ "@jsse/prettier-config": "^1.0.0",
104
97
  "@jsse/tsconfig": "^0.3.0",
105
98
  "@stylistic/eslint-plugin-jsx": "^4.2.0",
106
99
  "@types/debug": "^4.1.12",
107
100
  "@types/eslint": "^9.6.1",
108
101
  "@types/fs-extra": "^11.0.4",
109
- "@types/node": "^22.15.3",
102
+ "@types/node": "^22.15.19",
110
103
  "cac": "^6.7.14",
111
- "eslint": "^9.25.1",
104
+ "eslint": "^9.27.0",
112
105
  "eslint-flat-config-utils": "^2.0.1",
113
106
  "eslint-plugin-tailwindcss": "^3.18.0",
114
- "eslint-typegen": "^2.1.0",
115
- "execa": "~9.5.2",
107
+ "eslint-typegen": "^2.2.0",
108
+ "execa": "~9.5.3",
116
109
  "fast-glob": "^3.3.3",
117
110
  "fs-extra": "^11.3.0",
118
- "globals": "^16.0.0",
111
+ "globals": "^16.1.0",
119
112
  "local-pkg": "^1.1.1",
120
113
  "neverthrow": "^8.2.0",
121
114
  "picocolors": "^1.1.1",
@@ -123,10 +116,10 @@
123
116
  "react": "~19.1.0",
124
117
  "rimraf": "^6.0.1",
125
118
  "tailwindcss": "^3.4.17",
126
- "tsup": "^8.4.0",
119
+ "tsup": "^8.5.0",
127
120
  "tsx": "^4.19.4",
128
121
  "typescript": "5.8.3",
129
- "vitest": "^3.1.2"
122
+ "vitest": "^3.1.4"
130
123
  },
131
124
  "prettier": "@jsse/prettier-config",
132
125
  "scripts": {
@@ -1,7 +0,0 @@
1
- type PluginIndexEntry = {
2
- plugin: any;
3
- prefix: string;
4
- };
5
- type PlugIndex = Record<string, PluginIndexEntry>;
6
- export declare const plugindex: PlugIndex;
7
- export {};
@@ -1,60 +0,0 @@
1
- import { pluginEslintComments, pluginImport, pluginJsdoc, pluginJsonc, pluginN, pluginNoOnlyTests, pluginReact, pluginReactHooks, pluginStylistic, pluginTs, pluginTsdoc, pluginUnicorn, pluginVitest, } from "./plugins-all.js";
2
- export const plugindex = {
3
- eslintComments: {
4
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
5
- plugin: pluginEslintComments,
6
- prefix: "eslint-comments/",
7
- },
8
- import: {
9
- plugin: pluginImport,
10
- prefix: "import/",
11
- },
12
- jsdoc: {
13
- plugin: pluginJsdoc,
14
- prefix: "jsdoc/",
15
- },
16
- jsonc: {
17
- plugin: pluginJsonc,
18
- prefix: "jsonc/",
19
- },
20
- node: {
21
- plugin: pluginN,
22
- prefix: "n/",
23
- },
24
- noOnlyTests: {
25
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
26
- plugin: pluginNoOnlyTests,
27
- prefix: "no-only-tests/",
28
- },
29
- react: {
30
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
31
- plugin: pluginReact,
32
- prefix: "react/",
33
- },
34
- reactHooks: {
35
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
36
- plugin: pluginReactHooks,
37
- prefix: "react-hooks/",
38
- },
39
- stylistic: {
40
- plugin: pluginStylistic,
41
- prefix: "@stylistic/",
42
- },
43
- tsdoc: {
44
- plugin: pluginTsdoc,
45
- prefix: "tsdoc/",
46
- },
47
- typescript: {
48
- plugin: pluginTs,
49
- prefix: "@typescript-eslint/",
50
- },
51
- unicorn: {
52
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
53
- plugin: pluginUnicorn,
54
- prefix: "unicorn/",
55
- },
56
- vitest: {
57
- plugin: pluginVitest,
58
- prefix: "vitest/",
59
- },
60
- };