From 695a76c88842993b3876b415d33a2e480cf3cbde Mon Sep 17 00:00:00 2001 From: Toni Cabrera Date: Thu, 6 Apr 2017 16:13:04 -0300 Subject: [PATCH] Update: eslint rules from discussion #7 --- .eslintrc.json | 51 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index c4a734c..aa26335 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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" + ] } }