Skip to content

Commit

Permalink
Merge pull request #26 from johnamiahford/add-editorconfig-and-linter
Browse files Browse the repository at this point in the history
Add editorconfig and eslinter to project
  • Loading branch information
wwayne committed Aug 13, 2015
2 parents badcf03 + 8f3cb7d commit c86016c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
19 changes: 19 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parser": "babel-eslint",
"env": {
"browser": true,
},
"plugins": [
"react"
],
"rules": {
"strict": 0,
"quotes": [2, "double"],
"no-underscore-dangle": 0,
"no-unused-vars": 1,
"no-unused-expressions": 0,
"react/jsx-no-undef": 2,
"new-cap": 0,
"no-empty": 0
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
},
"devDependencies": {
"babel": "^5.3.1",
"babel-eslint": "^4.0.5",
"babelify": "^6.0.2",
"eslint": "^1.0.0",
"eslint-plugin-react": "^3.1.0",
"jest": "^0.1.39",
"jest-cli": "^0.4.0",
"node-sass": "^3.0.0",
Expand Down

0 comments on commit c86016c

Please sign in to comment.