Skip to content

Instantly share code, notes, and snippets.

@susisu
Created May 8, 2017 12:34
Show Gist options
  • Save susisu/7dfe7da2a3605cc86d080aaf7d0f7206 to your computer and use it in GitHub Desktop.
Save susisu/7dfe7da2a3605cc86d080aaf7d0f7206 to your computer and use it in GitHub Desktop.
{
"parserOptions":{
"ecmaVersion": 8
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"no-cond-assign": ["error", "always"],
"no-constant-condition": ["error", { "checkLoops": false }],
"no-control-regex": ["off"],
"no-dupe-args": ["error"],
"no-empty": ["error"],
"no-regex-spaces": ["error"],
"no-sparse-arrays": ["error"],
"no-unsafe-finally": ["error"],
"no-unsafe-negation": ["error"],
"valid-jsdoc": ["error", { "requireParamDescription": false, "requireReturnDescription": false }],
"array-callback-return": ["error"],
"consistent-return": ["error"],
"curly": ["error"],
"default-case": ["error"],
"dot-location": ["error", "property"],
"eqeqeq": ["error"],
"no-caller": ["error"],
"no-empty-pattern": ["error"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-fallthrough": ["error"],
"no-octal": ["error"],
"no-param-reassign": ["error"],
"no-unmodified-loop-condition": ["error"],
"no-with": ["error"],
"strict": ["error"],
"no-label-var": ["error"],
"no-shadow-restricted-names": ["error"],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"eol-last": ["error"],
"func-call-spacing": ["error", "never"],
"indent": ["error", 2],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "align": "colon" }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"max-len": ["error", { "code": 100, "ignoreComments": true, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true }],
"new-parens": ["error"],
"no-array-constructor": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 1, "maxEOF": 0 }],
"no-new-object": ["error"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-tabs": ["error"],
"no-trailing-spaces": ["error"],
"no-unneeded-ternary": ["error"],
"no-whitespace-before-property": ["error"],
"operator-linebreak": ["error", "before"],
"quote-props": ["error", "consistent"],
"quotes": ["error", "double"],
"semi-spacing": ["error", { "before": false, "after": true }],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
"spaced-comment": ["error", "always"],
"unicode-bom": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"generator-star-spacing": ["error", { "before": false, "after": true }],
"no-useless-computed-key": ["error"],
"no-var": ["error"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"prefer-rest-params": ["error"],
"prefer-spread": ["error"],
"require-yield": ["off"],
"rest-spread-spacing": ["error", "never"],
"yield-star-spacing": ["error", {"before": false, "after": true}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment