Add prettier to package.json

This commit is contained in:
Ivaylo Bachvarof 2018-11-18 12:11:19 +02:00
parent 809e6b3b52
commit 26d9d1853a
2 changed files with 8 additions and 2 deletions

5
package-lock.json generated
View File

@ -266,6 +266,11 @@
} }
} }
}, },
"prettier": {
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.15.2.tgz",
"integrity": "sha512-YgPLFFA0CdKL4Eg2IHtUSjzj/BWgszDHiNQAe0VAIBse34148whfdzLagRL+QiKS+YfK5ftB6X4v/MBw8yCoug=="
},
"process-nextick-args": { "process-nextick-args": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",

View File

@ -4,7 +4,7 @@
"description": "Django styleguide used in [HackSoft](https://hacksoft.io) projects.", "description": "Django styleguide used in [HackSoft](https://hacksoft.io) projects.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "prettier --list-different '*.md'"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -17,6 +17,7 @@
}, },
"homepage": "https://github.com/HackSoftware/Django-Styleguide#readme", "homepage": "https://github.com/HackSoftware/Django-Styleguide#readme",
"dependencies": { "dependencies": {
"markdown-toc": "^1.2.0" "markdown-toc": "^1.2.0",
"prettier": "^1.15.2"
} }
} }