@automattic/eslint-plugin-wpvip 1.1.1 → 1.2.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 +33 -0
- package/package.json +19 -19
|
@@ -16,14 +16,47 @@ module.exports = [
|
|
|
16
16
|
* to "off"). If a rule is already set to a warning, do not disable it.
|
|
17
17
|
*/
|
|
18
18
|
rules: {
|
|
19
|
+
'@typescript-eslint/await-thenable': 'warn',
|
|
20
|
+
'@typescript-eslint/ban-ts-comment': 'warn',
|
|
21
|
+
'@typescript-eslint/default-param-last': 'warn',
|
|
22
|
+
'@typescript-eslint/explicit-member-accessibility': [
|
|
23
|
+
'warn',
|
|
24
|
+
{ overrides: { constructors: 'off' } },
|
|
25
|
+
],
|
|
26
|
+
'@typescript-eslint/no-base-to-string': 'warn',
|
|
27
|
+
'@typescript-eslint/no-duplicate-type-constituents': 'warn',
|
|
28
|
+
'@typescript-eslint/no-dynamic-delete': 'warn',
|
|
29
|
+
'@typescript-eslint/no-empty-object-type': 'warn',
|
|
19
30
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
20
31
|
'@typescript-eslint/no-floating-promises': 'warn',
|
|
32
|
+
'@typescript-eslint/no-namespace': 'warn',
|
|
33
|
+
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
21
34
|
'@typescript-eslint/no-misused-promises': 'warn',
|
|
35
|
+
'@typescript-eslint/no-invalid-void-type': [ 'warn', { allowAsThisParameter: true } ],
|
|
36
|
+
'@typescript-eslint/no-redundant-type-constituents': 'warn',
|
|
37
|
+
'@typescript-eslint/no-require-imports': 'warn',
|
|
38
|
+
'@typescript-eslint/no-this-alias': 'warn',
|
|
22
39
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
23
40
|
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
24
41
|
'@typescript-eslint/no-unsafe-call': 'warn',
|
|
42
|
+
'@typescript-eslint/no-unsafe-enum-comparison': 'warn',
|
|
43
|
+
'@typescript-eslint/no-unsafe-function-type': 'warn',
|
|
25
44
|
'@typescript-eslint/no-unsafe-member-access': 'warn',
|
|
26
45
|
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
46
|
+
'no-unused-vars': 'off',
|
|
47
|
+
'@typescript-eslint/no-unused-vars': [
|
|
48
|
+
'warn',
|
|
49
|
+
{
|
|
50
|
+
argsIgnorePattern: '^_',
|
|
51
|
+
caughtErrorsIgnorePattern: '^_',
|
|
52
|
+
destructuredArrayIgnorePattern: '^_',
|
|
53
|
+
ignoreRestSiblings: true,
|
|
54
|
+
varsIgnorePattern: '^_',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
'@typescript-eslint/no-wrapper-object-types': 'warn',
|
|
58
|
+
'@typescript-eslint/only-throw-error': 'warn',
|
|
59
|
+
'@typescript-eslint/prefer-promise-reject-errors': 'warn',
|
|
27
60
|
'@typescript-eslint/require-await': 'warn',
|
|
28
61
|
'@typescript-eslint/restrict-plus-operands': 'warn',
|
|
29
62
|
'@typescript-eslint/restrict-template-expressions': 'warn',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/eslint-plugin-wpvip",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "ESLint plugin for internal WordPress VIP projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/Automattic/eslint-config-wpvip#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/eslint-parser": "
|
|
36
|
-
"@typescript-eslint/parser": "
|
|
35
|
+
"@babel/eslint-parser": "^7.28.5",
|
|
36
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
|
-
"eslint-import-resolver-typescript": "4.4.4",
|
|
39
|
-
"eslint-plugin-import": "2.32.0",
|
|
40
|
-
"eslint-plugin-jest": "29.2
|
|
41
|
-
"eslint-plugin-jsdoc": "
|
|
42
|
-
"eslint-plugin-json": "4.0.1",
|
|
43
|
-
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
44
|
-
"eslint-plugin-prettier": "5.5.
|
|
45
|
-
"eslint-plugin-promise": "7.2.1",
|
|
46
|
-
"eslint-plugin-react": "7.37.5",
|
|
47
|
-
"eslint-plugin-react-hooks": "7.0.1",
|
|
48
|
-
"eslint-plugin-security": "3.0.1",
|
|
49
|
-
"eslint-plugin-unused-imports": "4.3.0",
|
|
50
|
-
"find-package-json": "1.2.0",
|
|
51
|
-
"globals": "16.
|
|
38
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
39
|
+
"eslint-plugin-import": "^2.32.0",
|
|
40
|
+
"eslint-plugin-jest": "^29.12.2",
|
|
41
|
+
"eslint-plugin-jsdoc": "^62.5.4",
|
|
42
|
+
"eslint-plugin-json": "^4.0.1",
|
|
43
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
44
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
45
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
46
|
+
"eslint-plugin-react": "^7.37.5",
|
|
47
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
48
|
+
"eslint-plugin-security": "^3.0.1",
|
|
49
|
+
"eslint-plugin-unused-imports": "^4.3.0",
|
|
50
|
+
"find-package-json": "^1.2.0",
|
|
51
|
+
"globals": "^16.0.0 || ^17.0.0",
|
|
52
52
|
"typescript-eslint": "^8.48.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@tsconfig/node20": "^20.1.8",
|
|
59
59
|
"@types/eslint": "9.6.1",
|
|
60
|
-
"@types/jest": "
|
|
60
|
+
"@types/jest": "30.0.0",
|
|
61
61
|
"@types/react": "19.2.7",
|
|
62
62
|
"eslint": "^9.39.1",
|
|
63
|
-
"jest": "
|
|
63
|
+
"jest": "30.3.0",
|
|
64
64
|
"prettier": "npm:wp-prettier@3.0.3",
|
|
65
65
|
"react": "19.2.3",
|
|
66
66
|
"ts-jest": "29.4.6",
|