Skip to content

Instantly share code, notes, and snippets.

@seancheung
Last active September 7, 2017 02:06
Show Gist options
  • Save seancheung/f5caa12e03c6756947a74a912671643c to your computer and use it in GitHub Desktop.
Save seancheung/f5caa12e03c6756947a74a912671643c to your computer and use it in GitHub Desktop.
es6-lint
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8
},
"rules": {
"indent": ["warn", 4],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-else-return": ["error"],
"no-invalid-this": ["error"],
"no-return-await": ["error"],
"require-await": ["error"],
"array-bracket-spacing": ["warn", "never"],
"array-bracket-newline": ["warn"],
"brace-style": ["warn", "1tbs"],
"block-spacing": ["warn", "always"],
"comma-dangle": ["warn", "only-multiline"],
"comma-spacing": ["warn"],
"key-spacing": ["warn"],
"keyword-spacing": ["warn"],
"new-parens": ["error"],
"no-lonely-if": ["error"],
"no-multiple-empty-lines": ["warn"],
"padding-line-between-statements": [
"warn",
{ "blankLine": "always", "prev": "*", "next": "function" },
{ "blankLine": "always", "prev": "*", "next": "return" }
],
"padded-blocks": ["warn", { "classes": "always" }],
"no-multi-spaces": ["warn"],
"no-trailing-spaces": ["warn"],
"no-unneeded-ternary": ["warn"],
"object-curly-newline": ["warn"],
"object-curly-spacing": ["warn", "always"],
"space-infix-ops": ["warn"],
"space-unary-ops": [2],
"no-useless-constructor": ["error"],
"no-var": ["error"],
"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