Skip to content

Commit

Permalink
[ADMIN] dotfiles .editorconfig and .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
widged committed Jan 28, 2019
1 parent 3fe0a4b commit 288761c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{html,js}]
indent_style = space
indent_size = 2
quote_type = single

[*.{json}, package.json]
indent_style = space
indent_size = 2
quote_type = single

[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/**
build/**
24 changes: 24 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"esversion": 6,
"parser": "babel-eslint",
"extends": ["standard", "standard-react"],
"plugins": ["babel", "react", "promise"],
"env": {
"browser": true
},
"globals": {
"esversion": 6,
"__DEV__": false,
"__TEST__": false,
"__PROD__": false,
"__COVERAGE__": false
},
"rules": {
"key-spacing": 0,
"jsx-quotes": [2, "prefer-single"],
"max-len": [2, 120, 2],
"object-curly-spacing": [2, "always"],
"semi": [2, "never"],
"no-did-update-set-state": "off"
}
}

0 comments on commit 288761c

Please sign in to comment.