feat: restore prettier (#2630)
This commit is contained in:
parent
bf5daa1a9b
commit
8b155b62dc
@ -15,6 +15,7 @@
|
|||||||
"husky": "^0.14.3",
|
"husky": "^0.14.3",
|
||||||
"jest": "^22.0.4",
|
"jest": "^22.0.4",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.4",
|
||||||
|
"prettier": "^1.10.2",
|
||||||
"promise-toolbox": "^0.9.5",
|
"promise-toolbox": "^0.9.5",
|
||||||
"sorted-object": "^2.0.1"
|
"sorted-object": "^2.0.1"
|
||||||
},
|
},
|
||||||
|
@ -94,7 +94,6 @@
|
|||||||
"moment": "^2.20.1",
|
"moment": "^2.20.1",
|
||||||
"moment-timezone": "^0.5.14",
|
"moment-timezone": "^0.5.14",
|
||||||
"notifyjs": "^3.0.0",
|
"notifyjs": "^3.0.0",
|
||||||
"prettier": "^1.9.2",
|
|
||||||
"promise-toolbox": "^0.9.5",
|
"promise-toolbox": "^0.9.5",
|
||||||
"prop-types": "^15.6.0",
|
"prop-types": "^15.6.0",
|
||||||
"random-password": "^0.1.2",
|
"random-password": "^0.1.2",
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
format_files () {
|
format_files () {
|
||||||
eslint --fix "$@"
|
prettier --write "$@"
|
||||||
|
eslint --ignore-pattern '!*' --fix "$@"
|
||||||
}
|
}
|
||||||
test_files () {
|
test_files () {
|
||||||
jest --findRelatedTests --passWithNoTests "$@"
|
jest --findRelatedTests --passWithNoTests "$@"
|
||||||
|
@ -48,6 +48,7 @@ require('exec-promise')(() =>
|
|||||||
'husky',
|
'husky',
|
||||||
'jest',
|
'jest',
|
||||||
'lint-staged',
|
'lint-staged',
|
||||||
|
'prettier',
|
||||||
'standard',
|
'standard',
|
||||||
])
|
])
|
||||||
deleteProperties(pkg, 'scripts', [ 'commitmsg', 'cz' ])
|
deleteProperties(pkg, 'scripts', [ 'commitmsg', 'cz' ])
|
||||||
@ -75,6 +76,7 @@ require('exec-promise')(() =>
|
|||||||
unlink(`${dir}/.flowconfig`),
|
unlink(`${dir}/.flowconfig`),
|
||||||
unlink(`${dir}/.gitignore`),
|
unlink(`${dir}/.gitignore`),
|
||||||
unlink(`${dir}/.jshintrc`),
|
unlink(`${dir}/.jshintrc`),
|
||||||
|
unlink(`${dir}/.prettierrc.js`),
|
||||||
unlink(`${dir}/.travis.yml`),
|
unlink(`${dir}/.travis.yml`),
|
||||||
unlink(`${dir}/ISSUE_TEMPLATE.lock`),
|
unlink(`${dir}/ISSUE_TEMPLATE.lock`),
|
||||||
unlink(`${dir}/package-lock.json`),
|
unlink(`${dir}/package-lock.json`),
|
||||||
|
@ -8878,7 +8878,7 @@ preserve@^0.2.0:
|
|||||||
version "0.2.0"
|
version "0.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
||||||
|
|
||||||
prettier@^1.9.2:
|
prettier@^1.10.2:
|
||||||
version "1.10.2"
|
version "1.10.2"
|
||||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.10.2.tgz#1af8356d1842276a99a5b5529c82dd9e9ad3cc93"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.10.2.tgz#1af8356d1842276a99a5b5529c82dd9e9ad3cc93"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user