@automattic/eslint-plugin-wpvip 0.2.0 → 0.4.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/.eslintrc.json +6 -2
- package/configs/index.js +1 -1
- package/configs/typescript.js +4 -1
- package/package.json +2 -8
package/.eslintrc.json
CHANGED
package/configs/index.js
CHANGED
package/configs/typescript.js
CHANGED
|
@@ -24,6 +24,7 @@ module.exports = {
|
|
|
24
24
|
{
|
|
25
25
|
files: [ '**/*.ts', '**/*.tsx' ],
|
|
26
26
|
parser: '@typescript-eslint/parser',
|
|
27
|
+
// Note that these rules only take effect in TypeScript files (.ts, .tsx).
|
|
27
28
|
rules: {
|
|
28
29
|
// Prefer the TypeScript versions of some rules.
|
|
29
30
|
'no-duplicate-imports': 'off',
|
|
@@ -31,7 +32,9 @@ module.exports = {
|
|
|
31
32
|
'no-shadow': 'off',
|
|
32
33
|
'@typescript-eslint/no-shadow': 'error',
|
|
33
34
|
|
|
34
|
-
// Don't require redundant JSDoc types in
|
|
35
|
+
// Don't require redundant JSDoc parameter descriptions and types in
|
|
36
|
+
// TypeScript files.
|
|
37
|
+
'jsdoc/require-param': 'off',
|
|
35
38
|
'jsdoc/require-param-type': 'off',
|
|
36
39
|
'jsdoc/require-returns-type': 'off',
|
|
37
40
|
},
|
package/package.json
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/eslint-plugin-wpvip",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "ESLint plugin for internal WordPress VIP projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"jest": "jest",
|
|
8
8
|
"jest:update-snapshot": "jest --updateSnapshot",
|
|
9
9
|
"lint": "eslint --ignore-pattern '__fixtures__' .",
|
|
10
|
-
"publish": "npx np --any-branch --branch=trunk --no-release-draft",
|
|
11
|
-
"publish:beta": "npm run publish -- --tag=beta",
|
|
12
10
|
"test": "npm run lint && jest"
|
|
13
11
|
},
|
|
14
|
-
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
16
|
-
},
|
|
17
12
|
"repository": {
|
|
18
13
|
"type": "git",
|
|
19
14
|
"url": "git+https://github.com/Automattic/eslint-config-wpvip.git"
|
|
@@ -29,7 +24,7 @@
|
|
|
29
24
|
},
|
|
30
25
|
"homepage": "https://github.com/Automattic/eslint-config-wpvip#readme",
|
|
31
26
|
"dependencies": {
|
|
32
|
-
"@wordpress/eslint-plugin": "
|
|
27
|
+
"@wordpress/eslint-plugin": "13.10.0",
|
|
33
28
|
"eslint-plugin-json": "3.1.0",
|
|
34
29
|
"eslint-plugin-no-async-foreach": "0.1.1",
|
|
35
30
|
"eslint-plugin-security": "1.5.0"
|
|
@@ -38,7 +33,6 @@
|
|
|
38
33
|
"eslint": ">=8"
|
|
39
34
|
},
|
|
40
35
|
"devDependencies": {
|
|
41
|
-
"@babel/preset-env": "7.18.9",
|
|
42
36
|
"eslint": "8.20.0",
|
|
43
37
|
"jest": "28.1.3",
|
|
44
38
|
"prettier": "2.7.1",
|