-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgist.txt
35 lines (24 loc) · 897 Bytes
/
gist.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
npm install eslint --save-dev
npx eslint --init
//ensure .eslintrc.json's env property has jest set to true
npm install eslint-config-prettier eslint-plugin-prettier prettier --save-dev
//in .eslintrc.json => "extends":"plugin:prettier/recommended"
in .vscode touch settings.json and paste =>
{
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
"editor.formatOnSave": true,
"eslint.alwaysShowStatus": true,
"files.autoSave": "onFocusChange"
}
npm i -D commitizen
commitizen init cz-conventional-changelog --save-dev --save-exact
touch .commitlintrc.json
-{
"extends": ["@commitlint/config-conventional"]
}
npm i -D @commitlint/{cli,config-conventional}
npx husky-init && npm install --save-dev
npx husky add .husky/commit-msg 'npx commitlint --edit $1'
in .env file, include:
REACT_APP_VERSION=$npm_package_version
REACT_APP_NAME=$npm_package_name