Skip to content

Instantly share code, notes, and snippets.

@oxocode
Created April 22, 2015 23:15
Show Gist options
  • Save oxocode/d977ac638950482fd6d2 to your computer and use it in GitHub Desktop.
Save oxocode/d977ac638950482fd6d2 to your computer and use it in GitHub Desktop.
EsLint Project Template
{
"ecmaFeatures": {
},
"env": {
"amd": true
},
"rules": {
"quotes": "single",
"curly": "multi",
"camelcase": false,
"no-else-return": true,
"no-warning-comments": 2,
"no-trailing-spaces": 1,
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
"no-space-before-semi": 2,
"no-shadow": 1,
"no-shadow-restricted-names": 1,
"no-unused-vars": 1,
"no-delete-var": 1,
"no-spaced-func": 2,
"no-lonely-if": 1,
"no-array-constructor": 2,
"no-underscore-dangle": false,
"no-nested-ternary": 2,
"no-multi-spaces": [2, { "exceptions": { "VariableDeclarator": true } }],
"radix": 2,
"eol-last": 2,
"strict": [2, "global"],
"brace-style": [2, "stroustrup", { "allowSingleLine": true }],
"comma-style": [ 2, "last" ],
"consistent-this": [1, "this"],
"space-after-function-name": [ 1, "never" ],
"space-after-keywords": [1, "always"],
"space-before-blocks": [1, "always"],
"space-before-function-parentheses": [1, "never"],
"space-return-throw-case": [ 1, "always"],
"space-in-parens": [1, "always"],
"space-in-brackets": [1, "always", { "singleValue": true, "propertyName": false }],
"new-cap": [1, { "capIsNew": false }]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment