@moso/eslint-config 2.0.5 → 3.0.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.
Files changed (4) hide show
  1. package/README.md +218 -46
  2. package/dist/index.d.mts +4869 -1579
  3. package/dist/index.mjs +1958 -12662
  4. package/package.json +98 -84
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@moso/eslint-config",
3
3
  "type": "module",
4
- "version": "2.0.5",
5
- "description": "My shareable ESLint config",
4
+ "version": "3.0.1",
5
+ "description": "@moso's sharable ESLint config",
6
6
  "author": {
7
7
  "name": "Morten Sørensen",
8
8
  "email": "morten@moso.dev",
@@ -34,40 +34,47 @@
34
34
  ".": "./dist/index.mjs",
35
35
  "./package.json": "./package.json"
36
36
  },
37
- "main": "./dist/index.mjs",
38
- "module": "./dist/index.mjs",
39
37
  "types": "./dist/index.d.mts",
40
38
  "files": [
41
- "LICENSE",
42
- "README.md",
43
- "dist/",
44
- "package.json"
39
+ "./LICENSE",
40
+ "./README.md",
41
+ "./package.json",
42
+ "dist/"
45
43
  ],
44
+ "engines": {
45
+ "node": "^22.22.3 || >=24"
46
+ },
46
47
  "scripts": {
47
48
  "build": "bun run typegen && tsdown --clean --dts",
48
- "build:inspector": "bun run build && bunx @eslint/config-inspector build",
49
+ "build:inspector": "bun run build && bunx @eslint/config-inspector build --config eslint.config.ts --out-dir ./.eslint-config-inspector",
49
50
  "dev": "bunx @eslint/config-inspector --config eslint.config.ts",
50
51
  "lint": "eslint",
51
52
  "prepack": "bun run build",
52
53
  "prepare": "bun run simple-git-hooks",
53
- "release": "bumpp && bun publish",
54
- "test": "vitest",
54
+ "release": "bumpp --recursive && bun publish",
55
+ "test": "vitest run",
56
+ "test:update-snapshots": "vitest --update",
55
57
  "typecheck": "tsc --noEmit",
56
58
  "typegen": "tsx scripts/typegen.ts",
57
59
  "watch": "tsdown --watch"
58
60
  },
59
- "workspaces": ["src/rules"],
61
+ "workspaces": [
62
+ "src/rules"
63
+ ],
60
64
  "peerDependencies": {
61
- "@eslint-react/eslint-plugin": "^2.4.0",
62
- "@next/eslint-plugin-next": "^16.1.1",
63
- "astro-eslint-parser": "^1.2.2",
64
- "eslint": ">=9.30.0",
65
- "eslint-plugin-astro": "^1.5.0",
65
+ "@eslint-react/eslint-plugin": "^5.14.7",
66
+ "@next/eslint-plugin-next": "^16.2.10",
67
+ "astro-eslint-parser": "^3.0.0",
68
+ "eslint": "^10.0.0",
69
+ "eslint-plugin-astro": "^3.0.0",
70
+ "eslint-plugin-erasable-syntax-only": "^0.4.2",
66
71
  "eslint-plugin-jsx-a11y": "^6.10.2",
67
- "eslint-plugin-react-hooks": "^7.0.1",
68
- "eslint-plugin-react-refresh": "^0.4.26",
69
- "eslint-plugin-react-you-might-not-need-an-effect": "^0.8.1",
70
- "eslint-plugin-vuejs-accessibility": "^2.4.1"
72
+ "eslint-plugin-react-hooks": "^7.1.1",
73
+ "eslint-plugin-react-refresh": "^0.5.3",
74
+ "eslint-plugin-react-you-might-not-need-an-effect": "^1.0.1",
75
+ "eslint-plugin-vue": "^10.9.2",
76
+ "eslint-plugin-vuejs-accessibility": "^2.5.0",
77
+ "typescript": "^6.0.0"
71
78
  },
72
79
  "peerDependenciesMeta": {
73
80
  "@eslint-react/eslint-plugin": {
@@ -82,6 +89,9 @@
82
89
  "eslint-plugin-astro": {
83
90
  "optional": true
84
91
  },
92
+ "eslint-plugin-erasable-syntax-only": {
93
+ "optional": true
94
+ },
85
95
  "eslint-plugin-jsx-a11y": {
86
96
  "optional": true
87
97
  },
@@ -94,82 +104,86 @@
94
104
  "eslint-plugin-react-you-might-not-need-an-effect": {
95
105
  "optional": true
96
106
  },
107
+ "eslint-plugin-vue": {
108
+ "optional": true
109
+ },
97
110
  "eslint-plugin-vuejs-accessibility": {
98
111
  "optional": true
112
+ },
113
+ "typescript": {
114
+ "optional": true
99
115
  }
100
116
  },
101
117
  "dependencies": {
102
118
  "@antfu/install-pkg": "^1.1.0",
103
- "@clack/prompts": "^0.11.0",
104
- "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
105
- "@stylistic/eslint-plugin": "^5.6.1",
106
- "@typescript-eslint/eslint-plugin": "^8.50.1",
107
- "@typescript-eslint/parser": "^8.50.1",
108
- "@vitest/eslint-plugin": "^1.6.4",
109
- "eslint-flat-config-utils": "^2.1.4",
119
+ "@clack/prompts": "^1.7.0",
120
+ "@e18e/eslint-plugin": "^0.5.1",
121
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
122
+ "@eslint/js": "^10.0.1",
123
+ "@stylistic/eslint-plugin": "^5.10.0",
124
+ "@typescript-eslint/eslint-plugin": "^8.63.0",
125
+ "@typescript-eslint/parser": "^8.63.0",
126
+ "@typescript-eslint/utils": "^8.63.0",
127
+ "@vitest/eslint-plugin": "^1.6.23",
128
+ "eslint-config-flat-gitignore": "^2.3.0",
129
+ "eslint-flat-config-utils": "^3.2.0",
110
130
  "eslint-merge-processors": "^2.0.0",
111
- "eslint-plugin-de-morgan": "^2.0.0",
112
- "eslint-plugin-functional": "^9.0.2",
113
- "eslint-plugin-import-lite": "^0.4.0",
114
- "eslint-plugin-jsdoc": "^61.5.0",
115
- "eslint-plugin-jsonc": "^2.21.0",
116
- "eslint-plugin-n": "^17.23.1",
117
- "eslint-plugin-no-only-tests": "^3.3.0",
118
- "eslint-plugin-perfectionist": "^5.1.0",
119
- "eslint-plugin-promise": "^7.2.1",
120
- "eslint-plugin-regexp": "^2.10.0",
121
- "eslint-plugin-unicorn": "^62.0.0",
122
- "eslint-plugin-unused-imports": "^4.3.0",
123
- "eslint-plugin-yml": "^1.19.1",
131
+ "eslint-plugin-de-morgan": "^2.1.3",
132
+ "eslint-plugin-functional": "^10.0.0",
133
+ "eslint-plugin-import-lite": "^0.6.0",
134
+ "eslint-plugin-jsdoc": "^63.0.13",
135
+ "eslint-plugin-jsonc": "^3.3.0",
136
+ "eslint-plugin-n": "^18.2.2",
137
+ "eslint-plugin-no-only-tests": "^3.4.0",
138
+ "eslint-plugin-perfectionist": "^5.10.0",
139
+ "eslint-plugin-promise": "^7.3.0",
140
+ "eslint-plugin-regexp": "^3.1.1",
141
+ "eslint-plugin-toml": "^1.4.0",
142
+ "eslint-plugin-unicorn": "^71.1.0",
143
+ "eslint-plugin-unused-imports": "^4.4.1",
144
+ "eslint-plugin-yml": "^3.6.0",
124
145
  "eslint-processor-vue-blocks": "^2.0.0",
125
- "globals": "^16.5.0",
126
- "jsonc-eslint-parser": "^2.4.2",
127
- "local-pkg": "^1.1.2",
128
- "toml-eslint-parser": "^0.10.1",
129
- "vue-eslint-parser": "^10.2.0",
130
- "yaml-eslint-parser": "^1.3.2"
146
+ "globals": "^17.7.0",
147
+ "jsonc-eslint-parser": "^3.1.0",
148
+ "local-pkg": "^1.2.1",
149
+ "toml-eslint-parser": "^1.0.3",
150
+ "vue-eslint-parser": "^10.4.1",
151
+ "yaml-eslint-parser": "^2.1.0"
131
152
  },
132
153
  "devDependencies": {
133
- "@eslint-react/eslint-plugin": "^2.4.0",
134
- "@eslint/compat": "^2.0.0",
135
- "@eslint/config-inspector": "^1.4.2",
136
- "@eslint/js": "^9.39.2",
137
- "@moso/eslint-plugin": "2.0.1",
138
- "@next/eslint-plugin-next": "^16.1.1",
139
- "@types/node": "^25.0.3",
140
- "@typescript-eslint/rule-tester": "^8.50.1",
141
- "@typescript-eslint/utils": "^8.50.1",
142
- "astro-eslint-parser": "^1.2.2",
143
- "bumpp": "^10.3.2",
144
- "eslint": "^9.39.2",
145
- "eslint-plugin-astro": "^1.5.0",
146
- "eslint-plugin-erasable-syntax-only": "^0.4.0",
154
+ "@eslint-react/eslint-plugin": "^5.14.7",
155
+ "@eslint/compat": "^2.1.0",
156
+ "@eslint/config-inspector": "^3.0.4",
157
+ "@moso/eslint-plugin": "3.0.0",
158
+ "@next/eslint-plugin-next": "^16.2.10",
159
+ "@types/eslint-plugin-jsx-a11y": "^6.10.1",
160
+ "@types/node": "^26.1.1",
161
+ "@typescript-eslint/rule-tester": "^8.63.0",
162
+ "astro-eslint-parser": "^3.0.0",
163
+ "bumpp": "^11.1.0",
164
+ "eslint": "^10.7.0",
165
+ "eslint-plugin-astro": "^3.0.0",
166
+ "eslint-plugin-erasable-syntax-only": "^0.4.2",
147
167
  "eslint-plugin-jsx-a11y": "^6.10.2",
148
- "eslint-plugin-react-hooks": "^7.0.1",
149
- "eslint-plugin-react-refresh": "^0.4.26",
150
- "eslint-plugin-react-you-might-not-need-an-effect": "^0.8.1",
151
- "eslint-plugin-toml": "^0.12.0",
152
- "eslint-plugin-vue": "^10.6.2",
153
- "eslint-plugin-vuejs-accessibility": "^2.4.1",
154
- "eslint-typegen": "^2.3.0",
155
- "jiti": "^2.6.1",
156
- "lint-staged": "^16.2.7",
157
- "simple-git-hooks": "git+https://github.com/toplenboren/simple-git-hooks.git",
158
- "ts-dedent": "^2.2.0",
159
- "tsdown": "^0.18.3",
160
- "tsx": "^4.21.0",
161
- "typescript": "^5.9.3",
162
- "vitest": "^4.0.16"
168
+ "eslint-plugin-react-hooks": "^7.1.1",
169
+ "eslint-plugin-react-refresh": "^0.5.3",
170
+ "eslint-plugin-react-you-might-not-need-an-effect": "^1.0.1",
171
+ "eslint-plugin-vue": "^10.9.2",
172
+ "eslint-plugin-vuejs-accessibility": "^2.5.0",
173
+ "eslint-typegen": "^2.3.1",
174
+ "jiti": "^2.7.0",
175
+ "nano-staged": "^1.0.2",
176
+ "simple-git-hooks": "^2.13.1",
177
+ "ts-dedent": "^2.3.0",
178
+ "tsdown": "^0.22.7",
179
+ "tsx": "^4.23.1",
180
+ "typescript": "^6.0.3",
181
+ "vitest": "^4.1.10"
163
182
  },
164
183
  "simple-git-hooks": {
165
- "pre-commit": "bunx lint-staged"
184
+ "pre-commit": "bunx nano-staged"
166
185
  },
167
- "lint-staged": {
186
+ "nano-staged": {
168
187
  "*": "eslint --fix"
169
- },
170
- "trustedDependencies": [
171
- "esbuild",
172
- "simple-git-hooks",
173
- "unrs-resolver"
174
- ]
188
+ }
175
189
  }