Merge pull request #1138 from strapi/prettier

Add prettier to `pre-commit` hook
This commit is contained in:
Jim LAURIE 2018-05-08 11:39:00 +02:00 committed by GitHub
commit 321adb39a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",