Created
August 10, 2018 14:03
-
-
Save mahdavipanah/18bc225fe0f3ad51f72a165ce5a4a558 to your computer and use it in GitHub Desktop.
My ESLint Config
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
Show hidden characters
{ | |
"env": { | |
"node": true, | |
"commonjs": true, | |
"es6": true | |
}, | |
"extends": "eslint:recommended", | |
"rules": { | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"semi": [ | |
"error", | |
"always" | |
], | |
"prefer-const": "error", | |
"no-var": "error", | |
"no-new-object": "error", | |
"object-shorthand": "error", | |
"no-array-constructor": "error", | |
"array-callback-return": "error", | |
"prefer-template": "error", | |
"no-eval": "error", | |
"prefer-rest-params": "error", | |
"no-new-func": "error", | |
"space-before-blocks": "error", | |
"space-before-function-paren": "error", | |
"prefer-arrow-callback": "error", | |
"no-confusing-arrow": "error", | |
"no-useless-constructor": "error", | |
"no-dupe-class-members": "error", | |
"no-case-declarations": "error", | |
"no-unneeded-ternary": "error", | |
"no-nested-ternary": "error", | |
"brace-style": "error", | |
"spaced-comment": "error", | |
"keyword-spacing": "error", | |
"eol-last": "error", | |
"array-bracket-spacing": "error", | |
"object-curly-spacing": "error", | |
"max-len": ["error", 100, {"ignoreComments": true, "ignoreTemplateLiterals": true}], | |
"comma-style": "error", | |
"camelcase": "error", | |
"no-unused-vars": ["error", { "argsIgnorePattern": "^next$" }] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment