@w5s/eslint-config 3.20.0 → 3.21.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/dist/index.d.ts +410 -336
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/typegen/e18e.d.ts +12 -0
- package/src/typegen/jsdoc.d.ts +2 -0
- package/src/typegen/ts.d.ts +1 -0
- package/src/typegen/unicorn.d.ts +400 -336
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"postpack": "clean-package restore"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@e18e/eslint-plugin": "^0.
|
|
40
|
-
"@eslint-react/eslint-plugin": "5.17.
|
|
39
|
+
"@e18e/eslint-plugin": "^0.6.0",
|
|
40
|
+
"@eslint-react/eslint-plugin": "5.17.3",
|
|
41
41
|
"@eslint/js": "^10.0.0",
|
|
42
42
|
"@eslint/markdown": "^8.0.0",
|
|
43
43
|
"@next/eslint-plugin-next": "^16.0.0",
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
46
46
|
"@typescript-eslint/parser": "^8.0.0",
|
|
47
47
|
"@vitest/eslint-plugin": "~1.6.20",
|
|
48
|
-
"@w5s/dev": "^3.
|
|
49
|
-
"@w5s/eslint-config-ignore": "^1.
|
|
50
|
-
"@w5s/prettier-config": "^3.
|
|
48
|
+
"@w5s/dev": "^3.12.0",
|
|
49
|
+
"@w5s/eslint-config-ignore": "^1.11.0",
|
|
50
|
+
"@w5s/prettier-config": "^3.6.0",
|
|
51
51
|
"eslint-merge-processors": "^2.0.0",
|
|
52
52
|
"eslint-plugin-import": "~2.32.0",
|
|
53
|
-
"eslint-plugin-jsdoc": "~63.
|
|
53
|
+
"eslint-plugin-jsdoc": "~63.2.0",
|
|
54
54
|
"eslint-plugin-jsonc": "~3.3.0",
|
|
55
55
|
"eslint-plugin-n": "~18.2.0",
|
|
56
56
|
"eslint-plugin-perfectionist": "~5.10.0",
|
|
57
|
-
"eslint-plugin-unicorn": "~
|
|
57
|
+
"eslint-plugin-unicorn": "~72.0.0",
|
|
58
58
|
"eslint-plugin-unused-imports": "~4.4.1",
|
|
59
59
|
"eslint-plugin-yml": "~3.6.0",
|
|
60
60
|
"globals": "^17.0.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
87
|
"sideEffect": false,
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "aace76353b4595cc13eb79772d8a4f107e220f35"
|
|
89
89
|
}
|
package/src/typegen/e18e.d.ts
CHANGED
|
@@ -53,6 +53,10 @@ export interface RuleOptions {
|
|
|
53
53
|
* Prefer Array.prototype.toSpliced() over copying and splicing arrays
|
|
54
54
|
*/
|
|
55
55
|
'e18e/prefer-array-to-spliced'?: Linter.RuleEntry<[]>
|
|
56
|
+
/**
|
|
57
|
+
* Prefer `charCodeAt()` over indexed string access for single-character comparisons inside loops
|
|
58
|
+
*/
|
|
59
|
+
'e18e/prefer-charcode-at-in-loop'?: Linter.RuleEntry<[]>
|
|
56
60
|
/**
|
|
57
61
|
* Prefer Date.now() over new Date().getTime() and +new Date()
|
|
58
62
|
*/
|
|
@@ -93,6 +97,10 @@ export interface RuleOptions {
|
|
|
93
97
|
* prefer `RegExp.test()` over `String.match()` and `RegExp.exec()` when only checking for match existence
|
|
94
98
|
*/
|
|
95
99
|
'e18e/prefer-regex-test'?: Linter.RuleEntry<[]>
|
|
100
|
+
/**
|
|
101
|
+
* Prefer `indexOf(needle)` and `slice(...)` over `split()[N]` when splitting a string into two pieces.
|
|
102
|
+
*/
|
|
103
|
+
'e18e/prefer-slice-over-split-index'?: Linter.RuleEntry<[]>
|
|
96
104
|
/**
|
|
97
105
|
* Prefer spread syntax over Array.concat(), Array.from(), Object.assign({}, ...), and Function.apply()
|
|
98
106
|
*/
|
|
@@ -109,6 +117,10 @@ export interface RuleOptions {
|
|
|
109
117
|
* Prefer String.fromCharCode() over String.fromCodePoint() for code points below 0x10000
|
|
110
118
|
*/
|
|
111
119
|
'e18e/prefer-string-fromcharcode'?: Linter.RuleEntry<[]>
|
|
120
|
+
/**
|
|
121
|
+
* Prefer `{throwIfNoEntry: false}` over relying on a thrown error for missing fs entries from sync stat calls
|
|
122
|
+
*/
|
|
123
|
+
'e18e/prefer-throw-if-no-entry'?: Linter.RuleEntry<[]>
|
|
112
124
|
/**
|
|
113
125
|
* Prefer passing function and arguments directly to setTimeout/setInterval instead of wrapping in an arrow function or using bind
|
|
114
126
|
*/
|
package/src/typegen/jsdoc.d.ts
CHANGED
package/src/typegen/ts.d.ts
CHANGED
|
@@ -325,6 +325,7 @@ export interface RuleOptions {
|
|
|
325
325
|
/**
|
|
326
326
|
* Disallow specified modules when loaded by `import`
|
|
327
327
|
* @see https://typescript-eslint.io/rules/no-restricted-imports
|
|
328
|
+
* @deprecated
|
|
328
329
|
*/
|
|
329
330
|
'ts/no-restricted-imports'?: Linter.RuleEntry<TsNoRestrictedImports>
|
|
330
331
|
/**
|