@kazupon/eslint-config 0.4.1 → 0.5.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.
- package/README.md +2 -0
- package/dist/configs/index.d.cts +1 -0
- package/dist/configs/index.d.ts +1 -0
- package/dist/configs/regexp.d.cts +4 -0
- package/dist/configs/regexp.d.ts +4 -0
- package/dist/index.cjs +15 -0
- package/dist/index.js +15 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ ESLint config for @kazupon
|
|
|
13
13
|
- `comments`
|
|
14
14
|
- `typescript`
|
|
15
15
|
- `jsdoc`
|
|
16
|
+
- `regexp`
|
|
16
17
|
- `prettier`
|
|
17
18
|
- `vue`
|
|
18
19
|
- Support primitive eslint flat configuration
|
|
@@ -98,6 +99,7 @@ The following built-in configurations are supported:
|
|
|
98
99
|
| `comments` | [`eslint-plugin-eslint-comments`](https://www.npmjs.com/package/eslint-plugin-eslint-comments) | no (built-in) |
|
|
99
100
|
| `typescript` | [`typescript-eslint`](https://www.npmjs.com/package/typescript-eslint) | yes |
|
|
100
101
|
| `jsdoc` | [`eslint-plugin-jsdoc`](https://www.npmjs.com/package/eslint-plugin-jsdoc) | yes |
|
|
102
|
+
| `regexp` | [`eslint-plugin-regexp`](https://www.npmjs.com/package/eslint-plugin-regexp) | yes |
|
|
101
103
|
| `prettier` | [`eslint-config-prettier`](https://www.npmjs.com/package/eslint-config-prettier) | yes |
|
|
102
104
|
| `vue` | [`eslint-plugin-vue`](https://www.npmjs.com/package/eslint-plugin-vue) | yes |
|
|
103
105
|
|
package/dist/configs/index.d.cts
CHANGED
package/dist/configs/index.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -159,6 +159,20 @@ async function jsdoc(options = {}) {
|
|
|
159
159
|
}];
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/configs/regexp.ts
|
|
164
|
+
async function regexp(options = {}) {
|
|
165
|
+
const { rules: overrideRules = {} } = options;
|
|
166
|
+
const regexp$1 = await loadPlugin('eslint-plugin-regexp');
|
|
167
|
+
return [{
|
|
168
|
+
name: 'regexp/flat/recommended',
|
|
169
|
+
...(regexp$1.configs['flat/recommended'])
|
|
170
|
+
}, {
|
|
171
|
+
name: '@kazupon/eslint-regexp',
|
|
172
|
+
rules: {...overrideRules}
|
|
173
|
+
}];
|
|
174
|
+
}
|
|
175
|
+
|
|
162
176
|
//#endregion
|
|
163
177
|
//#region src/configs/prettier.ts
|
|
164
178
|
async function prettier(options = {}) {
|
|
@@ -208,5 +222,6 @@ exports.defineConfig = defineConfig;
|
|
|
208
222
|
exports.javascript = javascript;
|
|
209
223
|
exports.jsdoc = jsdoc;
|
|
210
224
|
exports.prettier = prettier;
|
|
225
|
+
exports.regexp = regexp;
|
|
211
226
|
exports.typescript = typescript;
|
|
212
227
|
exports.vue = vue;
|
package/dist/index.js
CHANGED
|
@@ -134,6 +134,20 @@ async function jsdoc(options = {}) {
|
|
|
134
134
|
}];
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/configs/regexp.ts
|
|
139
|
+
async function regexp(options = {}) {
|
|
140
|
+
const { rules: overrideRules = {} } = options;
|
|
141
|
+
const regexp$1 = await loadPlugin('eslint-plugin-regexp');
|
|
142
|
+
return [{
|
|
143
|
+
name: 'regexp/flat/recommended',
|
|
144
|
+
...(regexp$1.configs['flat/recommended'])
|
|
145
|
+
}, {
|
|
146
|
+
name: '@kazupon/eslint-regexp',
|
|
147
|
+
rules: {...overrideRules}
|
|
148
|
+
}];
|
|
149
|
+
}
|
|
150
|
+
|
|
137
151
|
//#endregion
|
|
138
152
|
//#region src/configs/prettier.ts
|
|
139
153
|
async function prettier(options = {}) {
|
|
@@ -177,4 +191,4 @@ async function vue(options = {}) {
|
|
|
177
191
|
}
|
|
178
192
|
|
|
179
193
|
//#endregion
|
|
180
|
-
export { comments, defineConfig, javascript, jsdoc, prettier, typescript, vue };
|
|
194
|
+
export { comments, defineConfig, javascript, jsdoc, prettier, regexp, typescript, vue };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kazupon/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "ESLint config for @kazupon",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"eslint": ">=8.56.0 || >=9.0.0",
|
|
46
46
|
"eslint-config-prettier": ">=9.1.0",
|
|
47
47
|
"eslint-plugin-jsdoc": ">=48.5.0",
|
|
48
|
+
"eslint-plugin-regexp": ">=2.6.0",
|
|
48
49
|
"eslint-plugin-vue": ">=9.24.0",
|
|
49
50
|
"typescript-eslint": ">=7.0.0"
|
|
50
51
|
},
|
|
@@ -58,6 +59,9 @@
|
|
|
58
59
|
"eslint-plugin-jsdoc": {
|
|
59
60
|
"optional": true
|
|
60
61
|
},
|
|
62
|
+
"eslint-plugin-regexp": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
61
65
|
"eslint-plugin-vue": {
|
|
62
66
|
"optional": true
|
|
63
67
|
}
|
|
@@ -70,6 +74,7 @@
|
|
|
70
74
|
"eslint": "^9.6.0",
|
|
71
75
|
"eslint-config-prettier": "^9.1.0",
|
|
72
76
|
"eslint-plugin-jsdoc": "^48.5.2",
|
|
77
|
+
"eslint-plugin-regexp": "^2.6.0",
|
|
73
78
|
"eslint-plugin-vue": "^9.27.0",
|
|
74
79
|
"gh-changelogen": "^0.2.8",
|
|
75
80
|
"lint-staged": "^15.2.7",
|
|
@@ -79,7 +84,7 @@
|
|
|
79
84
|
"tsx": "^4.16.2",
|
|
80
85
|
"typescript": "^5.5.3",
|
|
81
86
|
"typescript-eslint": "^7.15.0",
|
|
82
|
-
"vitest": "^
|
|
87
|
+
"vitest": "^2.0.0"
|
|
83
88
|
},
|
|
84
89
|
"lint-staged": {
|
|
85
90
|
"*.{json,md,yml}": [
|