@w5s/eslint-config 1.0.9 → 1.0.11
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/lib/typescript.js +1 -0
- package/package.json +11 -11
- package/src/typescript.ts +1 -0
package/lib/typescript.js
CHANGED
|
@@ -166,6 +166,7 @@ const config = dev_1.ESLintConfig.concat(
|
|
|
166
166
|
...baseImportRules['import/no-extraneous-dependencies'][1],
|
|
167
167
|
devDependencies: baseImportRules['import/no-extraneous-dependencies'][1].devDependencies.reduce((result, devDep) => {
|
|
168
168
|
const toAppend = [devDep];
|
|
169
|
+
// eslint-disable-next-line unicorn/prefer-string-replace-all
|
|
169
170
|
const devDepWithTs = devDep.replace(/\bjs(x?)\b/g, 'ts$1');
|
|
170
171
|
if (devDepWithTs !== devDep) {
|
|
171
172
|
toAppend.push(devDepWithTs);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@rushstack/eslint-patch": "^1.1.0",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
55
55
|
"@typescript-eslint/parser": "^5.0.0",
|
|
56
|
-
"@w5s/dev": "^1.0.
|
|
57
|
-
"@w5s/prettier-config": "^1.0.
|
|
56
|
+
"@w5s/dev": "^1.0.5",
|
|
57
|
+
"@w5s/prettier-config": "^1.0.19",
|
|
58
58
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
59
59
|
"eslint-config-prettier": "^8.0.0",
|
|
60
60
|
"eslint-plugin-import": "^2.25.0",
|
|
@@ -63,25 +63,25 @@
|
|
|
63
63
|
"eslint-plugin-jsonc": "^2.4.0",
|
|
64
64
|
"eslint-plugin-prettier": "^4.0.0",
|
|
65
65
|
"eslint-plugin-promise": "^6.0.0",
|
|
66
|
-
"eslint-plugin-unicorn": "^
|
|
66
|
+
"eslint-plugin-unicorn": "^47.0.0",
|
|
67
67
|
"eslint-plugin-yml": "^1.1.0",
|
|
68
68
|
"find-up": "^5.0.0",
|
|
69
69
|
"parse-gitignore": "^2.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@types/eslint": "8.
|
|
72
|
+
"@types/eslint": "8.40.0",
|
|
73
73
|
"@types/eslint-plugin-prettier": "3.1.0",
|
|
74
74
|
"@types/parse-gitignore": "1.0.0",
|
|
75
75
|
"@types/prettier": "2.7.2",
|
|
76
|
-
"@types/react": "18.2.
|
|
77
|
-
"@typescript-eslint/parser": "5.59.
|
|
78
|
-
"eslint": "8.
|
|
76
|
+
"@types/react": "18.2.7",
|
|
77
|
+
"@typescript-eslint/parser": "5.59.7",
|
|
78
|
+
"eslint": "8.41.0",
|
|
79
79
|
"eslint-config-prettier": "8.8.0",
|
|
80
80
|
"eslint-find-rules": "4.1.0",
|
|
81
81
|
"prettier": "2.8.8",
|
|
82
82
|
"react": "18.2.0",
|
|
83
|
-
"vite": "4.3.
|
|
84
|
-
"vitest": "0.31.
|
|
83
|
+
"vite": "4.3.9",
|
|
84
|
+
"vitest": "0.31.2"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"eslint": "8.x",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "7e5cf7f6b4725b79da890724f6377c2893e6daf4"
|
|
106
106
|
}
|
package/src/typescript.ts
CHANGED
|
@@ -168,6 +168,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
168
168
|
devDependencies: baseImportRules['import/no-extraneous-dependencies'][1].devDependencies.reduce(
|
|
169
169
|
(result: string[], devDep: string) => {
|
|
170
170
|
const toAppend = [devDep];
|
|
171
|
+
// eslint-disable-next-line unicorn/prefer-string-replace-all
|
|
171
172
|
const devDepWithTs = devDep.replace(/\bjs(x?)\b/g, 'ts$1');
|
|
172
173
|
if (devDepWithTs !== devDep) {
|
|
173
174
|
toAppend.push(devDepWithTs);
|