Skip to content

Commit

Permalink
chore: init prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Dec 3, 2019
1 parent cf852f3 commit 3be28ef
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
*.md
*.sh
*.yml
*.svg
*.gif
.DS_Store
.gitignore
.npmignore
.prettierignore
.editorconfig
.eslintignore
.stylelintrc.json
.umi
.umi-production
package.json
tsconfig.json
tslint.json
AUTHORS.txt
CNAME
LICENSE
lib/
es/
dist/
coverage/
yarn.lock
yarn-error.log
npm-debug.log
lerna-debug.log
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": true,
"printWidth": 80,
"trailingComma": "es5",
"proseWrap": "never"
}
19 changes: 15 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,38 @@
"bootstrap": "lerna bootstrap",
"lk": "lerna link",
"ls": "lerna list",
"pub": "lerna publish",
"changed": "lerna changed",
"updated": "lerna updated",
"pub": "lerna publish -m \"chore(release): publish %v\"",
"clean": "lerna run clean",
"build": "lerna run build",
"lint": "lerna run lint",
"test": "lerna run test",
"coveralls": "lerna run coveralls",
"clear": "rimraf yarn.lock && lerna run clean && lerna clean && rimraf ./node_modules"
"clear": "rimraf yarn.lock && lerna run clean && lerna clean && rimraf ./node_modules",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"pretty-quick": "pretty-quick",
"precommit": "lint-staged && lerna run --concurrency 1 --stream precommit"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lerna run --concurrency 1 --stream precommit"
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"pretty-quick — staged",
"git add"
]
},
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"husky": "^3.1.0",
"lerna": "^3.19.0",
"lint-staged": "^9.2.1",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"rimraf": "^3.0.0"
},
"commitlint": {
Expand Down

0 comments on commit 3be28ef

Please sign in to comment.