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" + ] } }