@automattic/eslint-plugin-wpvip 0.4.2 → 0.4.3
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 +11 -7
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
```
|