summaryrefslogtreecommitdiff
path: root/.prettierrc
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-03-23 11:42:34 -0500
committerMike Greiling <mike@pixelcog.com>2018-03-23 11:42:34 -0500
commit3c54794445ea8e3bd7c3356450b86fc4c6ba12cd (patch)
treec1dfbf99e8c815539f8411d1613040d3d0e12002 /.prettierrc
parent7e759f559cf0b7206fefef5e9b5586f742c5f4eb (diff)
downloadgitlab-ce-3c54794445ea8e3bd7c3356450b86fc4c6ba12cd.tar.gz
update prettier config to differentiate node scripts from babel compiled modules
Diffstat (limited to '.prettierrc')
-rw-r--r--.prettierrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/.prettierrc b/.prettierrc
index 5e2863a11f6..748cfcae65f 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,5 +1,13 @@
{
"printWidth": 100,
"singleQuote": true,
- "trailingComma": "all"
+ "trailingComma": "es5",
+ "overrides": [
+ {
+ "files": ["app/assets/javascripts/*", "spec/javascripts/*"],
+ "options": {
+ "trailingComma": "all"
+ }
+ }
+ ]
}