Skip to content

Commit

Permalink
Update .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropalau committed Jan 18, 2019
1 parent c67d271 commit a27c401
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .eslintrc
@@ -1,23 +1,34 @@
{
"parser": "babel-eslint",
"root": true,

"extends": [
"standard",
"standard-react"
"airbnb"
],

"env": {
"es6": true
},
"plugins": [
"react"
],
"parserOptions": {
"sourceType": "module"
"browser": true,
"node": true,
},

"rules": {
// don't force es6 functions to include space before paren
"space-before-function-paren": 0,
"linebreak-style": 0,

"class-methods-use-this": [2, { "exceptMethods": ["processPhoto"] }],

"react/forbid-foreign-prop-types": 2,

"jsx-a11y/click-events-have-key-events": 1,

"react/no-did-mount-set-state": 0,

"no-restricted-imports": 0,

"react/jsx-one-expression-per-line": 1,

"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
},

// allow specifying true explicitly for boolean props
"react/jsx-boolean-value": 0
"settings": {
"propWrapperFunctions": ["forbidExtraProps", "exact", "Object.freeze"],
}
}

0 comments on commit a27c401

Please sign in to comment.