mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 11:17:42 +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: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",
|
"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",
|
"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"
|
"prettier": "node ./packages/strapi-lint/lib/internals/prettier/index.js"
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
@ -46,7 +46,8 @@
|
|||||||
],
|
],
|
||||||
"pre-commit": [
|
"pre-commit": [
|
||||||
"clean",
|
"clean",
|
||||||
"test"
|
"prettier",
|
||||||
|
"lint"
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user