@automattic/eslint-plugin-wpvip 0.3.0 → 0.4.1-dev.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 CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
+ "plugins": [
3
+ "jest"
4
+ ],
5
+ "env": {
6
+ "jest/globals": true
7
+ },
2
8
  "extends": [
3
9
  "./configs/base",
4
10
  "./configs/cli",
5
- "./configs/react",
6
11
  "./configs/testing",
7
- "./configs/typescript",
8
12
  "./rules"
9
13
  ]
10
14
  }
@@ -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 TypeScript files.
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/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ require( '@rushstack/eslint-patch/modern-module-resolution' );
2
+
1
3
  module.exports = {
2
4
  configs: require( './configs' ),
3
5
  rules: require( './rules' ),
package/package.json CHANGED
@@ -1,19 +1,14 @@
1
1
  {
2
2
  "name": "@automattic/eslint-plugin-wpvip",
3
- "version": "0.3.0",
3
+ "version": "0.4.1-dev.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,8 @@
29
24
  },
30
25
  "homepage": "https://github.com/Automattic/eslint-config-wpvip#readme",
31
26
  "dependencies": {
32
- "@wordpress/eslint-plugin": "12.8.0",
27
+ "@rushstack/eslint-patch": "1.2.0",
28
+ "@wordpress/eslint-plugin": "13.10.0",
33
29
  "eslint-plugin-json": "3.1.0",
34
30
  "eslint-plugin-no-async-foreach": "0.1.1",
35
31
  "eslint-plugin-security": "1.5.0"
@@ -38,7 +34,6 @@
38
34
  "eslint": ">=8"
39
35
  },
40
36
  "devDependencies": {
41
- "@babel/preset-env": "7.18.9",
42
37
  "eslint": "8.20.0",
43
38
  "jest": "28.1.3",
44
39
  "prettier": "2.7.1",