Created
January 5, 2020 09:43
-
-
Save ziedmahdi/b8cfd81ee31ea6b12b74f9a079572f8b to your computer and use it in GitHub Desktop.
get started with eslint in node env
This file contains hidden or 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
{ | |
"env": { | |
"node": 1, | |
"browser": 1 | |
}, | |
"extends": "eslint:recommended", | |
"globals": {}, | |
"rules": { | |
"indent": [ | |
"error", | |
4, | |
{ | |
"SwitchCase": 1 | |
} | |
], | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"quotes": [ | |
"error", | |
"single" | |
], | |
"quote-props": [ | |
"error", | |
"as-needed" | |
], | |
"semi": [ | |
"error", | |
"always" | |
], | |
"no-var": [ | |
"error" | |
], | |
"no-new-object": [ | |
"error" | |
], | |
"object-shorthand": [ | |
"error" | |
], | |
"no-alert": [ | |
"error" | |
], | |
"keyword-spacing": [ | |
"error", | |
{ | |
"before": true, | |
"after": true | |
} | |
], | |
"semi-spacing": [ | |
"error", | |
{ | |
"before": false, | |
"after": true | |
} | |
], | |
"space-before-function-paren": [ | |
"error", | |
{ | |
"anonymous": "always", | |
"named": "never" | |
} | |
], | |
"space-before-blocks": [ | |
"error", | |
"always" | |
], | |
"object-curly-spacing": [ | |
"error", | |
"never" | |
], | |
"key-spacing": [ | |
"error", | |
{ | |
"afterColon": true, | |
"beforeColon": false | |
} | |
], | |
"comma-spacing": [ | |
"error", | |
{ | |
"before": false, | |
"after": true | |
} | |
], | |
"curly": [ | |
"error" | |
], | |
"space-infix-ops": [ | |
"error" | |
], | |
"space-in-parens": [ | |
"error", | |
"never" | |
], | |
"brace-style": [ | |
"error", | |
"1tbs", | |
{ | |
"allowSingleLine": true | |
} | |
] | |
}, | |
"plugins": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment