eslint-config-plus-prettier 4.0.0-rc.2 → 4.0.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/README.md +13 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ dist
|
|
|
41
41
|
Add prettier config to `package.json`:
|
|
42
42
|
|
|
43
43
|
```json
|
|
44
|
-
"prettier": "eslint-config-plus-prettier
|
|
44
|
+
"prettier": "eslint-config-plus-prettier/prettier"
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
Consider adding a `.prettierignore` file to avoid formatting generated files:
|
|
@@ -55,9 +55,19 @@ CHANGELOG.md
|
|
|
55
55
|
|
|
56
56
|
Add a `.npmpackagejsonlintrc.json` file with the following:
|
|
57
57
|
|
|
58
|
+
If you are working on a module:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"extends": "eslint-config-plus-prettier/packagelint"
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
If you are working on a server, that needs fixed dependencies:
|
|
67
|
+
|
|
58
68
|
```json
|
|
59
69
|
{
|
|
60
|
-
"extends": "eslint-config-plus-prettier
|
|
70
|
+
"extends": "eslint-config-plus-prettier/packagelint/server"
|
|
61
71
|
}
|
|
62
72
|
```
|
|
63
73
|
|
|
@@ -67,7 +77,7 @@ Add a `tsconfig.json` file with the following:
|
|
|
67
77
|
|
|
68
78
|
```json
|
|
69
79
|
{
|
|
70
|
-
"extends": "eslint-config-plus-prettier/tsconfig
|
|
80
|
+
"extends": "eslint-config-plus-prettier/tsconfig",
|
|
71
81
|
"include": ["src"], // Files to be compiled
|
|
72
82
|
"compilerOptions": {
|
|
73
83
|
"outDir": "dist" // Compiled directory
|
package/package.json
CHANGED