Skip to content

Commit

Permalink
Update eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
jdlehman committed Jul 24, 2015
1 parent c0c4151 commit 62ddf95
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 13 deletions.
52 changes: 39 additions & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,52 @@
{
"extends": "eslint-config-airbnb",

"env": {
"browser": true,
"node": true,
"es6": true
"es6": true,
"mocha": true
},

"parser": "babel-eslint",

"ecmaFeatures": {
"modules": true,
"jsx": true
"modules": true
},

"globals": {
"assert": false
},

"plugins": [
"react"
],

"rules": {
"no-reserved-keys": true,
"radix": true,
"indent": [2, 2],
"camelcase": 2,
"new-cap": [0, "capIsNew"],
"eol-last": 2,
"no-var": 0,
"no-unused-vars": [2, {
"vars": "local",
"args": "none"
}],
"func-names": 0,
"vars-on-top": 0,
"no-else-return": 0,
"new-cap": 0,
"quotes": [2, "single", "avoid-escape"],
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": 2,
"no-underscore-dangle": 2,
"no-unused-vars": [1, { "args": "none" }]

"react/display-name": 1,
"react/jsx-boolean-value": 1,
"react/jsx-quotes": 1,
"react/jsx-no-undef": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/no-unknown-property": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 1
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
"license": "MIT",
"devDependencies": {
"babel-core": "^5.2.17",
"babel-eslint": "^3.1.26",
"babel-loader": "^5.0.0",
"chai": "^2.3.0",
"eslint": "^0.20.0",
"eslint-config-airbnb": "0.0.6",
"eslint-plugin-react": "^3.0.0",
"istanbul": "^0.3.13",
"istanbul-instrumenter-loader": "^0.1.2",
"karma": "^0.12.31",
Expand Down

0 comments on commit 62ddf95

Please sign in to comment.