From ede6765f6b2688719349f5d369123acd6c25dcd9 Mon Sep 17 00:00:00 2001 From: Surinder Kumar Date: Fri, 21 Jul 2017 09:39:23 +0100 Subject: [PATCH] Add an editorconfig file to help maintain coding standards. --- web/.editorconfig | 30 ++++++++++++++++++++++++++++++ web/package.json | 1 + 2 files changed, 31 insertions(+) create mode 100644 web/.editorconfig diff --git a/web/.editorconfig b/web/.editorconfig new file mode 100644 index 000000000..f7e28eadf --- /dev/null +++ b/web/.editorconfig @@ -0,0 +1,30 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +# We recommend you to keep these unchanged +[*] +indent_style = space +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +max_line_length = 80 + +[*.py] +indent_size = 4 + +[*.js] +indent_size = 2 + +[*.css] +indent_size = 2 + +# Matches the exact file package.json +[{package.json}] +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false diff --git a/web/package.json b/web/package.json index 72b9fb6ed..8e7fee341 100644 --- a/web/package.json +++ b/web/package.json @@ -7,6 +7,7 @@ "cross-env": "^5.0.1", "enzyme": "~2.8.2", "enzyme-matchers": "^3.1.0", + "eclint": "^2.3.0", "eslint": "3.19.0", "eslint-plugin-react": "^6.10.3", "extract-text-webpack-plugin": "^2.1.2",