Skip to content

Instantly share code, notes, and snippets.

@japboy
Last active August 29, 2015 14:21
Show Gist options
  • Save japboy/b35e5dcd54aff4ce7a76 to your computer and use it in GitHub Desktop.
Save japboy/b35e5dcd54aff4ce7a76 to your computer and use it in GitHub Desktop.
ESLint default configuration
{
"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
},
"env": {
"browser": true,
"node": true,
"amd": true,
"mocha": true,
"jasmine": true,
"phantomjs": true,
"jquery": true,
"prototypejs": true,
"shelljs": true
},
"rules": {
"curly": [ 1, "multi-line" ],
"yoda": "always",
"strict": 2,
"no-unused-vars": [ 1, { "vars": "local", "args": "none" } ],
"quotes": [ 1, "single", "avoid-escape" ],
"max-len": [ 1, 100, 2 ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment