Skip to content

Instantly share code, notes, and snippets.

@olegakbarov
Created June 3, 2015 15:56
Show Gist options
  • Save olegakbarov/29622336bddbf443d35f to your computer and use it in GitHub Desktop.
Save olegakbarov/29622336bddbf443d35f to your computer and use it in GitHub Desktop.
yolo eslint
{
"plugins": [
"react"
],
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
},
"rules": {
"brace-style": [2, "1tbs", {
"allowSingleLine": true
}],
"comma-style": [2],
"dot-location": [2, "property"],
"eqeqeq": [2, "smart"],
"generator-star-spacing": [2, "after"],
"guard-for-in": 2,
"indent": [2, 2, {
"indentSwitchCase": true
}],
"linebreak-style": [2],
// "newline-after-var": [2],
"no-lonely-if": [2],
"no-multiple-empty-lines": [2, { "max": 1 }],
"no-nested-ternary": [2],
"no-self-compare": 2,
"no-underscore-dangle": 0,
"no-unneeded-ternary": [2],
"no-unused-expressions": 2,
"no-use-before-define": [2, "nofunc"],
// "one-var": [2, {
// "uninitialized": "always",
// "initialized": "never"
// }],
"operator-assignment": [2, "always"],
"operator-linebreak": [2],
"padded-blocks": [2, "never"],
"quote-props": [2, "as-needed"],
"quotes": [2, "single", "avoid-escape"],
"space-after-keywords": [2],
"space-before-blocks": [2],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2],
"spaced-line-comment": [2],
"wrap-iife": [2, "inside"],
"wrap-regex": [2]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment