Skip to content

Commit

Permalink
Update: eslint rules from discussion #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni Cabrera committed Apr 6, 2017
1 parent c762c67 commit de53abd
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,53 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"extends": "standard",
"plugins": [
"babel"
],
"rules": {
"comma-dangle": ["error", "never"]
"comma-dangle": [
"error",
"never"
],
"max-len": [
"error",
{
"code": 120,
"tabWidth": 2,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true,
"ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/"
}
],
"no-param-reassign": [
"error", {
"props": false
}
],
"no-trailing-spaces": [
"error", {
"skipBlankLines": true
}
],
"no-unused-expressions": [
"error", {
"allowTernary": true
}
],
"no-use-before-define": [
"error", {
"functions": false,
"classes": false
}
],
"object-curly-spacing": [
"error",
"never"
],
"space-before-function-paren": [
"error",
"never"
]
}
}

0 comments on commit de53abd

Please sign in to comment.