@ttoss/config 1.15.1 → 1.15.2
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 +9 -8
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -48,21 +48,22 @@ const overwriteConfig = babelConfig(
|
|
|
48
48
|
## Install
|
|
49
49
|
|
|
50
50
|
```shell
|
|
51
|
-
$ yarn add -DW @ttoss/config
|
|
51
|
+
$ yarn add -DW @ttoss/config @ttoss/eslint-config
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
It already installs:
|
|
55
|
+
|
|
56
|
+
- ESLint
|
|
57
|
+
- Prettier
|
|
58
|
+
- commitlint
|
|
59
|
+
- lint-staged
|
|
60
|
+
|
|
54
61
|
## Monorepo
|
|
55
62
|
|
|
56
63
|
Add the configs of this section on the root of your monorepo. For configs for packages, you can check the section [Packages and Applications](#packages-and-applications). You can check [this monorepo template](https://github.com/ttoss/monorepo) if you want to see the final configuration after following the steps.
|
|
57
64
|
|
|
58
65
|
### ESLint and Prettier
|
|
59
66
|
|
|
60
|
-
Install the following packages on the root of your monorepo:
|
|
61
|
-
|
|
62
|
-
```shell
|
|
63
|
-
yarn add -DW eslint @ttoss/eslint-config
|
|
64
|
-
```
|
|
65
|
-
|
|
66
67
|
Create `.prettierrc.js` (`touch .prettierrc.js`) and add the following to it:
|
|
67
68
|
|
|
68
69
|
```js title=".prettierrc.js"
|
|
@@ -86,7 +87,7 @@ This group of packages will only work if you have already installed [ESLint and
|
|
|
86
87
|
Install the following packages on the root of your monorepo:
|
|
87
88
|
|
|
88
89
|
```shell
|
|
89
|
-
yarn add -DW husky
|
|
90
|
+
yarn add -DW husky
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
Create `.commitlintrc.js` (`touch .commitlintrc.js`) and add the following to it:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/config",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"description": "Default configuration for packages.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -31,16 +31,20 @@
|
|
|
31
31
|
"@babel/preset-env": "^7.16.11",
|
|
32
32
|
"@babel/preset-react": "^7.16.7",
|
|
33
33
|
"@babel/preset-typescript": "^7.16.7",
|
|
34
|
+
"@commitlint/cli": "^16.2.4",
|
|
34
35
|
"@commitlint/config-conventional": "^16.0.0",
|
|
35
36
|
"@emotion/jest": "^11.7.1",
|
|
36
37
|
"@formatjs/ts-transformer": "^3.9.1",
|
|
37
38
|
"babel-jest": "^27.4.6",
|
|
38
39
|
"babel-plugin-formatjs": "^10.3.18",
|
|
39
40
|
"deepmerge": "^4.2.2",
|
|
41
|
+
"eslint": "^8.14.0",
|
|
40
42
|
"identity-obj-proxy": "^3.0.0",
|
|
43
|
+
"lint-staged": "^12.4.1",
|
|
44
|
+
"prettier": "^2.6.2",
|
|
41
45
|
"tsup": "^5.11.11"
|
|
42
46
|
},
|
|
43
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "edc913c860d3e8d34b385e599fba28093bf0bd14",
|
|
44
48
|
"devDependencies": {
|
|
45
49
|
"@jest/types": "^27.4.2"
|
|
46
50
|
}
|