Add an editorconfig file to help maintain coding standards.

This commit is contained in:
Surinder Kumar 2017-07-21 09:39:23 +01:00 committed by Dave Page
parent 86dc1e81f1
commit ede6765f6b
2 changed files with 31 additions and 0 deletions

30
web/.editorconfig Normal file
View File

@ -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

View File

@ -7,6 +7,7 @@
"cross-env": "^5.0.1", "cross-env": "^5.0.1",
"enzyme": "~2.8.2", "enzyme": "~2.8.2",
"enzyme-matchers": "^3.1.0", "enzyme-matchers": "^3.1.0",
"eclint": "^2.3.0",
"eslint": "3.19.0", "eslint": "3.19.0",
"eslint-plugin-react": "^6.10.3", "eslint-plugin-react": "^6.10.3",
"extract-text-webpack-plugin": "^2.1.2", "extract-text-webpack-plugin": "^2.1.2",