Last active
May 6, 2019 09:07
-
-
Save aeinbu/d72626da5d9d7d17474be82e5b2af9aa to your computer and use it in GitHub Desktop.
My ESLint file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"env": | |
{ | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": | |
{ | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"rules": | |
{ | |
"indent": ["error", "tab"], | |
"linebreak-style": ["error", "unix"], | |
"quotes": ["error", "double", { "allowTemplateLiterals": true }], | |
"semi": ["error", "always"], | |
"consistent-return": "error", | |
"no-empty-function": "error", | |
"no-lone-blocks": "error", | |
"no-multi-spaces": "error", | |
"no-return-assign": "error", | |
"no-self-compare": "error", | |
"no-throw-literal": "error", | |
"no-unmodified-loop-condition": "error", | |
"no-unused-expressions": "error", | |
"no-use-before-define": "error", | |
"no-multiple-empty-lines": ["error", { max: 2 }], | |
"prefer-const": "error", | |
"prefer-rest-params": "error" | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative