Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjerasmus <jerasmus@gitlab.com>2020-01-31 09:38:06 +0300
committerjerasmus <jerasmus@gitlab.com>2020-01-31 10:36:40 +0300
commit304709138d7c733262ebfd2fbd688754683712da (patch)
tree1af0c7e016a6b55f18ba56efc972592336c38f24 /package.json
parent43d9da52c205f1641434e4ef61de87eb558b0086 (diff)
Add and configure prettier
Added and configured prettier in the codebase
Diffstat (limited to 'package.json')
-rw-r--r--package.json9
1 files changed, 6 insertions, 3 deletions
diff --git a/package.json b/package.json
index bb048727..5b9f571a 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,9 @@
"scripts": {
"bundle": "rollup --config rollup.config.js",
"test": "jest",
- "eslint": "eslint --max-warnings 0 --ext .js,.vue ."
+ "eslint": "eslint --max-warnings 0 --ext .js,.vue .",
+ "prettier": "prettier --check '**/*.{js,vue}'",
+ "prettier:fix": "prettier --write '**/*.{js,vue}'"
},
"devDependencies": {
"@babel/core": "^7.6.0",
@@ -17,6 +19,7 @@
"eslint": "^6.7.1",
"glob": "^7.1.4",
"jest": "^24.9.0",
+ "prettier": "1.19.1",
"rollup": "^1.20.3",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
@@ -26,7 +29,7 @@
"vue-template-compiler": "^2.6.10"
},
"dependencies": {
- "vue": "^2.6.10",
- "@gitlab/svgs": "^1.85.0"
+ "@gitlab/svgs": "^1.85.0",
+ "vue": "^2.6.10"
}
}