Skip to content

Commit

Permalink
Add eslint/babel-eslint/eslint-plugin-react
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkeley Martinez authored and Berkeley Martinez committed May 21, 2015
1 parent 0bd4d35 commit b848fcb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
25 changes: 22 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"mocha": true,
"node": true
},
"parser": "babel-eslint",
"plugins": [
"react"
],
"globals": {
"window": true,
"$": true,
Expand Down Expand Up @@ -41,7 +45,7 @@
"valid-jsdoc": 2,
"valid-typeof": 2,

"block-scoped-var": 2,
"block-scoped-var": 0,
"complexity": 0,
"consistent-return": 2,
"curly": 2,
Expand Down Expand Up @@ -215,6 +219,21 @@
"max-params": 0,
"max-statements": 0,
"no-bitwise": 1,
"no-plusplus": 0
"no-plusplus": 0,

"react/display-name": 1,
"react/jsx-boolean-value": 1,
"react/jsx-quotes": [1, "single", "avoid-escape"],
"react/jsx-no-undef": 1,
"react/jsx-sort-props": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/prop-types": 2,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 1
}
}
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
},
"scripts": {
"start": "node app.js",
"lint": "eslint --ext=.js,.jsx .",
"test": "mocha"
},
"license": "BSD-3-Clause",
"contributors" : [
"contributors": [
{
"name": "Quincy Larson",
"url" : "https://github.com/QuincyLarson"
"url": "https://github.com/QuincyLarson"
},
{
"name": "Nathan Leniz",
Expand Down Expand Up @@ -82,10 +83,13 @@
"yui": "~3.18.1"
},
"devDependencies": {
"babel-eslint": "^3.1.7",
"blessed": "~0.0.37",
"bower-main-files": "~0.0.4",
"browser-sync": "~1.8.1",
"chai": "~1.10.0",
"eslint": "^0.21.2",
"eslint-plugin-react": "^2.3.0",
"gulp": "~3.8.8",
"gulp-eslint": "~0.9.0",
"gulp-inject": "~1.0.2",
Expand Down

0 comments on commit b848fcb

Please sign in to comment.