Skip to content

Instantly share code, notes, and snippets.

@vonWolfehaus
Created November 19, 2015 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vonWolfehaus/c18ee92c167f6a22a92b to your computer and use it in GitHub Desktop.
Save vonWolfehaus/c18ee92c167f6a22a92b to your computer and use it in GitHub Desktop.
Personal ESlint ruleset
{
"root": true,
"extends": "eslint:recommended",
"ecmaFeatures": {
"arrowFunctions": true,
},
"plugins": ["riot"],
"globals": {
"riot": true,
"moment": true
},
"rules": {
"block-spacing": [1, "always"],
"brace-style": [1, "stroustrup", {"allowSingleLine": true}],
"camelcase": [1, {"properties": "always"}],
"comma-spacing": [1, {"before": false, "after": true}],
"comma-style": 1,
"consistent-this": [1, "self"],
"eol-last": 2,
"func-style": [1, "declaration"],
"indent": [2, "tab", {"SwitchCase": 1, "VariableDeclarator": 1}],
"key-spacing": 1,
"linebreak-style": [2, "unix"],
"new-cap": 1,
"no-catch-shadow": 1,
"no-delete-var": 0,
"no-fallthrough": 0,
"no-multiple-empty-lines": [1, {"max": 2}],
"no-nested-ternary": 1,
"no-spaced-func": 1,
"no-trailing-spaces": [1, {"skipBlankLines": true}],
"no-unneeded-ternary": [1, {"defaultAssignment": true}],
"operator-linebreak": [1, "after"],
"no-unreachable": 1,
"no-label-var": 1,
"no-undef-init": 2,
"no-undefined": 1,
"no-unused-vars": [2, {args: "none"}],
"no-use-before-define": 2,
"padded-blocks": [1, "never"],
"quotes": [1, "single", "avoid-escape"],
"semi-spacing": [1, {"before": false, "after": true}],
"semi": [2, "always"],
"space-before-keywords": 1,
"space-after-keywords": 1,
"space-before-blocks": 1,
"space-before-function-paren": [1, "never"],
"space-in-parens": [1, "never"],
"space-unary-ops": 1,
"spaced-comment": [1, "always"],
"arrow-spacing": [1, {"before": true, "after": true}],
"arrow-parens": 1
},
"env": {
"browser": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment