mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 19:27:34 +00:00
Merge pull request #1138 from strapi/prettier
Add prettier to `pre-commit` hook
This commit is contained in:
commit
321adb39a4
@ -29,7 +29,7 @@
|
||||
"setup:build": "npm run setup --build",
|
||||
"setup": "npm run clean:all && npm install ./packages/strapi-lint --save-dev && npm install && node ./scripts/setup.js && npm run clean",
|
||||
"lint": "node ./scripts/lint.js",
|
||||
"test": "npm run lint",
|
||||
"test": "echo \"Error: no test specified yet...\"",
|
||||
"prettier": "node ./packages/strapi-lint/lib/internals/prettier/index.js"
|
||||
},
|
||||
"author": {
|
||||
@ -46,7 +46,8 @@
|
||||
],
|
||||
"pre-commit": [
|
||||
"clean",
|
||||
"test"
|
||||
"prettier",
|
||||
"lint"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
x
Reference in New Issue
Block a user