Skip to content

Commit

Permalink
Add eslint react plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed Jun 16, 2015
1 parent d1ee500 commit e2a7427
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
"es6": true
},
"ecmaFeatures": {
"modules": true
"modules": true,
"jsx": true
},
"plugins": [
"react"
],
"rules": {
/* airbnb javascript style guide rules */
"strict": [2, "never"],
Expand Down Expand Up @@ -171,6 +175,9 @@
"nonwords": false
}
],
"wrap-regex": [2, "never"]
"wrap-regex": [2, "never"],

/* react rules */
"react/jsx-uses-vars": 1
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"envify": "^3.4.0",
"es6-promise": "^2.1.1",
"eslint": "0.21.0",
"eslint-plugin-react": "2.5.2",
"ghooks": "^0.3.2",
"immutable": "^3.7.2",
"iso": "^4.1.0",
Expand Down

0 comments on commit e2a7427

Please sign in to comment.