Skip to content

Instantly share code, notes, and snippets.

@oxocode oxocode/.eslintrc
Created Apr 22, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.