Skip to content

Instantly share code, notes, and snippets.

@gcaraciolo
Created January 30, 2017 13:55
Show Gist options
  • Save gcaraciolo/bc74d0e1d93e7dc9ba49721cec950cbc to your computer and use it in GitHub Desktop.
Save gcaraciolo/bc74d0e1d93e7dc9ba49721cec950cbc to your computer and use it in GitHub Desktop.
ESLint
{
"env":{
"browser": true,
"node": true
},
"globals":{
"jQuery":true,
"moment":true,
"appServices":true,
"angular":true,
"swal":true,
"medServicesAdmin":true,
"medServicesStartup":true,
"medServicesAccounting":true,
"medServices":true,
"__base": true,
"Promise": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules":{
"curly":2,
"no-magic-numbers":0,
"block-scoped-var":2,
"camelcase":[
2,
{
"properties":"never"
}
],
"no-multiple-empty-lines":[
2,
{
"max":2
}
],
"yoda":2,
"wrap-iife":2,
"new-parens":2,
"vars-on-top":2,
"handle-callback-err":2,
"no-new-require":2,
"no-process-exit":2,
"no-with":2,
"no-unused-expressions": [
"error", {
"allowShortCircuit": true,
"allowTernary": true
}
],
"no-useless-escape":2,
"no-floating-decimal":2,
"no-implied-eval":2,
"no-new":2,
"no-new-func":2,
"no-octal":2,
"no-new-wrappers":2,
"no-param-reassign":2,
"no-redeclare":2,
"no-return-assign":2,
"no-lone-blocks":2,
"no-loop-func":2,
"no-multi-spaces":2,
"no-multi-str":2,
"no-native-reassign":2,
"no-empty-pattern":2,
"no-case-declarations":2,
"dot-notation":2,
"no-cond-assign":2,
"no-dupe-args":2,
"no-dupe-keys":2,
"no-duplicate-case":2,
"no-delete-var":2,
"no-label-var":2,
"no-unused-vars":2,
"no-use-before-define":[
"error",
{
"functions":false
}
],
"no-catch-shadow":2,
"no-shadow":2,
"no-undef":2,
"no-undefined":2,
"object-property-newline":"error",
"semi":[
"error",
"always"
],
"one-var":[
"error",
"never"
],
"no-mixed-requires":2,
"no-shadow-restricted-names":2,
"no-empty":2,
"no-ex-assign":2,
"no-extra-boolean-cast":2,
"no-extra-semi":2,
"no-func-assign":2,
"no-inner-declarations":2,
"no-irregular-whitespace":2,
"no-negated-in-lhs":2,
"no-obj-calls":2,
"use-isnan":2,
"valid-typeof":2,
"array-callback-return":2,
"no-unreachable":2,
"no-unexpected-multiline":2,
"no-sparse-arrays":2,
"no-constant-condition":2,
"comma-dangle":[
2,
"never"
],
"linebreak-style":[
2,
"unix"
],
"no-mixed-spaces-and-tabs":2,
"no-trailing-spaces":2,
"indent":[
"error",
"tab",
{
"SwitchCase":1
}
],
"quotes":[
"error",
"single"
],
"array-bracket-spacing":[
"error",
"never"
],
"block-spacing":[
"error",
"always"
],
"brace-style":[
"error",
"1tbs",
{
"allowSingleLine":false
}
],
"comma-spacing":[
"error",
{
"before":false,
"after":true
}
],
"comma-style":[
"error",
"last"
],
"computed-property-spacing":[
"error",
"never"
],
"no-whitespace-before-property":2,
"max-depth":[
"error",
4
],
"max-nested-callbacks":[
"error",
3
],
"max-params":[
"error",
4
],
"no-new-object":2,
"no-spaced-func":2,
"unicode-bom":[
"error",
"never"
],
"func-style":[
"error",
"declaration"
],
"id-length": [
"error",
{
"exceptions": ["_"]
}
],
"no-continue":2,
"no-lonely-if":"error",
"no-mixed-operators":2,
"no-bitwise":[
"error",
{
"allow":[
"~"
]
}
],
"no-array-constructor":2,
"space-before-function-paren":[
"error",
"never"
],
"space-in-parens":[
"error",
"never"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment