Skip to content

Commit

Permalink
#11 add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
drsmog committed Feb 25, 2019
1 parent 29e24b3 commit 3fc7487
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 420 deletions.
25 changes: 25 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true
},
"rules": {
"func-call-spacing": ["warn", "never"],
"no-spaced-func": "warn",
"padded-blocks": ["warn", "never"],
"indent": ["warn", 4],
"prefer-arrow-callback": "warn",
"max-len": ["warn", {"code": 120, "comments": 150 }],
"no-multi-spaces": "off",
"template-curly-spacing": ["warn", "never"],
"key-spacing": "off",
"no-use-before-define": ["error", { "functions": false }],
"space-before-function-paren": ["warn", "never"],
"no-return-assign": ["error", "except-parens"],
"no-nested-ternary": "off",
"consistent-return": "warn",
"arrow-parens": 0,
"no-param-reassign": [2, { "props": false }]
}
}
Loading

0 comments on commit 3fc7487

Please sign in to comment.