From 8a00dd5b503633932a250338e995f2b164b61c65 Mon Sep 17 00:00:00 2001 From: Kim Joar Bekkelund Date: Mon, 5 Feb 2018 14:06:50 +0100 Subject: [PATCH] Update style guide with Prettier --- style_guides/js_style_guide.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/style_guides/js_style_guide.md b/style_guides/js_style_guide.md index c0bc00de2391a32..32279173edb3113 100644 --- a/style_guides/js_style_guide.md +++ b/style_guides/js_style_guide.md @@ -6,6 +6,15 @@ This JavaScript guide forked from the [node style guide](https://github.com/feli licensed under the [CC BY-SA 3.0](http://creativecommons.org/licenses/by-sa/3.0/) license. +## Prettier + +We are gradually moving the Kibana code base over to Prettier. + +Prettier is set up to run with ESLint, and to add new code paths to Prettier, +see `.eslintrc.js` in the root of the Kibana repo. This also means that if you +get ESLint errors related to Prettier, run `node scripts/eslint --fix` from the +root of the Kibana repo to fix these. + ## 2 Spaces for indention Use 2 spaces for indenting your code and swear an oath to never mix tabs and