@automattic/eslint-plugin-wpvip 0.4.2 → 0.4.4

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/README.md CHANGED
@@ -14,15 +14,19 @@ If your project uses TypeScript, make sure `typescript` is installed as well.
14
14
 
15
15
  ## Configuration
16
16
 
17
- Create an `.eslintrc.json` file with your desired presets. Here is an example that would suit a project that uses React and TypeScript and has Jest unit tests:
17
+ Create an `.eslintrc.js` file with your desired presets. Note: The first line `require`s an init helper that allows you to avoid installing peer dependencies (available from `v0.5.0`).
18
+
19
+ Here is an example that would suit a project that uses React and TypeScript and has Jest unit tests:
18
20
 
19
21
  ```
20
- {
21
- "extends": [
22
- "plugin:@automattic/wpvip/base",
23
- "plugin:@automattic/wpvip/react",
24
- "plugin:@automattic/wpvip/testing",
25
- "plugin:@automattic/wpvip/typescript"
22
+ require( '@automattic/eslint-plugin-wpvip/init' );
23
+
24
+ module.exports = {
25
+ extends: [
26
+ 'plugin:@automattic/wpvip/base',
27
+ 'plugin:@automattic/wpvip/react',
28
+ 'plugin:@automattic/wpvip/testing',
29
+ 'plugin:@automattic/wpvip/typescript',
26
30
  ]
27
31
  }
28
32
  ```
@@ -1,4 +1,7 @@
1
1
  module.exports = {
2
+ plugins: [
3
+ 'jest',
4
+ ],
2
5
  /**
3
6
  * Please include a short description of the rule. For rules that downgrade or
4
7
  * disable errors, include a brief justification or reasoning.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/eslint-plugin-wpvip",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "ESLint plugin for internal WordPress VIP projects",
5
5
  "main": "index.js",
6
6
  "scripts": {