@automattic/eslint-plugin-wpvip 0.12.0 → 0.13.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.
- package/configs/weak-typescript.js +2 -11
- package/package.json +8 -8
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* "Weak" TypeScript rules
|
|
3
3
|
* ==========================
|
|
4
4
|
* These rules are intended to extend the base `typescript` rules and will help
|
|
5
|
-
* you migrate an existing project to TypeScript.
|
|
5
|
+
* you migrate an existing project to TypeScript. They are primarily focused on
|
|
6
|
+
* allowing relaxed or omitted types.
|
|
6
7
|
*/
|
|
7
8
|
module.exports = {
|
|
8
9
|
overrides: [
|
|
@@ -16,10 +17,6 @@ module.exports = {
|
|
|
16
17
|
rules: {
|
|
17
18
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
18
19
|
|
|
19
|
-
'@typescript-eslint/no-floating-promises': 'warn',
|
|
20
|
-
|
|
21
|
-
'@typescript-eslint/no-misused-promises': 'warn',
|
|
22
|
-
|
|
23
20
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
24
21
|
|
|
25
22
|
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
@@ -30,12 +27,6 @@ module.exports = {
|
|
|
30
27
|
|
|
31
28
|
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
32
29
|
|
|
33
|
-
'@typescript-eslint/require-await': 'warn',
|
|
34
|
-
|
|
35
|
-
'@typescript-eslint/restrict-plus-operands': 'warn',
|
|
36
|
-
|
|
37
|
-
'@typescript-eslint/restrict-template-expressions': 'warn',
|
|
38
|
-
|
|
39
30
|
'@typescript-eslint/unbound-method': 'warn',
|
|
40
31
|
|
|
41
32
|
'import/no-duplicates': 'warn',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/eslint-plugin-wpvip",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "ESLint plugin for internal WordPress VIP projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/Automattic/eslint-config-wpvip#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/eslint-parser": "7.24.
|
|
36
|
-
"@rushstack/eslint-patch": "1.10.
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
38
|
-
"@typescript-eslint/parser": "7.
|
|
35
|
+
"@babel/eslint-parser": "7.24.7",
|
|
36
|
+
"@rushstack/eslint-patch": "1.10.3",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "7.15.0",
|
|
38
|
+
"@typescript-eslint/parser": "7.15.0",
|
|
39
39
|
"eslint-config-prettier": "8.7.0",
|
|
40
40
|
"eslint-import-resolver-typescript": "3.6.1",
|
|
41
41
|
"eslint-plugin-import": "2.29.1",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@tsconfig/node18": "18.2.2",
|
|
60
60
|
"@types/eslint": "8.44.8",
|
|
61
|
-
"@types/jest": "29.5.
|
|
61
|
+
"@types/jest": "29.5.12",
|
|
62
62
|
"eslint": "8.56.0",
|
|
63
63
|
"jest": "29.7.0",
|
|
64
64
|
"prettier": "npm:wp-prettier@2.8.5",
|
|
65
|
-
"ts-jest": "29.1.
|
|
66
|
-
"typescript": "5.
|
|
65
|
+
"ts-jest": "29.1.5",
|
|
66
|
+
"typescript": "5.5.3"
|
|
67
67
|
}
|
|
68
68
|
}
|