Skip to content

Commit

Permalink
Closes electron-react-boilerplate#17, improve .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin committed Jun 8, 2015
1 parent 2f0437a commit 2d495a9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Expand Up @@ -11,5 +11,9 @@ insert_final_newline = true
indent_style = space
indent_size = 2

[.eslintrc]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
43 changes: 35 additions & 8 deletions .eslintrc
@@ -1,16 +1,43 @@
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"node": true,
"mocha": true,
"es6": true
},
"globals": {
"node": true,
"mocha": true,
"es6": true,
"browser": true
},
"globals": {

},
},
"rules": {
"quotes": [2, "single"]
"quotes": [2, "single"],
"semi": [2, "never"],
"curly": [2, "multi-line"],
"no-underscore-dangle": 0
"no-underscore-dangle": 0,

"react/display-name": 0,
"react/jsx-boolean-value": 1,
"react/jsx-quotes": 1,
"react/jsx-no-undef": 1,
"react/jsx-sort-props": 1,
"react/jsx-sort-prop-types": 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/sort-comp": 0,
"react/wrap-multilines": 1
}
}

0 comments on commit 2d495a9

Please sign in to comment.