@ttoss/config 1.14.4 → 1.15.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 +1 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ Add the configs of this section on the root of your monorepo. For configs for pa
|
|
|
60
60
|
Install the following packages on the root of your monorepo:
|
|
61
61
|
|
|
62
62
|
```shell
|
|
63
|
-
yarn add -DW eslint @ttoss/eslint-config
|
|
63
|
+
yarn add -DW eslint @ttoss/eslint-config
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
Create `.prettierrc.js` (`touch .prettierrc.js`) and add the following to it:
|
|
@@ -74,15 +74,11 @@ module.exports = prettierConfig();
|
|
|
74
74
|
Create `.eslintrc.js` (`touch .eslintrc.js`) and add the following to it:
|
|
75
75
|
|
|
76
76
|
```js title=".eslintrc.js"
|
|
77
|
-
require('@rushstack/eslint-patch/modern-module-resolution');
|
|
78
|
-
|
|
79
77
|
module.exports = {
|
|
80
78
|
extends: '@ttoss/eslint-config',
|
|
81
79
|
};
|
|
82
80
|
```
|
|
83
81
|
|
|
84
|
-
You need `require('@rushstack/eslint-patch/modern-module-resolution');` because ESLint doesn't support plugins as dependency in shareable ESLint configuration, as you can see on [this issue](https://github.com/eslint/eslint/issues/3458). To overcome this, you can use the [`@rushstack/eslint-patch` package](https://www.npmjs.com/package/@rushstack/eslint-patch), a patch that improves how ESLint loads plugins when working in a monorepo
|
|
85
|
-
|
|
86
82
|
### Husky, commitlint, and lint-staged
|
|
87
83
|
|
|
88
84
|
This group of packages will only work if you have already installed [ESLint and Prettier](#eslint-and-prettier).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Default configuration for packages.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"identity-obj-proxy": "^3.0.0",
|
|
41
41
|
"tsup": "^5.11.11"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "69cb8fe495797e3f74b0aa643d78ee972559243a",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@jest/types": "^27.4.2"
|
|
46
46
|
}
|