Skip to content

Instantly share code, notes, and snippets.

@kyokutyo
Created June 9, 2015 11:27
Show Gist options
  • Save kyokutyo/68522bbb6a4114397892 to your computer and use it in GitHub Desktop.
Save kyokutyo/68522bbb6a4114397892 to your computer and use it in GitHub Desktop.
ESLint
public/static/js/ajaxutils.js
public/static/js/jquery*.js
public/static/js/underscore-min.js
{
"rules": {
"block-scoped-var": 2,
"camelcase": 0,
"complexity": 2,
"curly": 2,
"default-case": 2,
"dot-notation": 2,
"eqeqeq": 2,
"guard-for-in": 2,
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"newline-after-var": [2, "always"],
"no-alert": 0,
"no-caller": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-empty-label": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-iterator": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multiple-empty-lines": [2, { "max": 2 }],
"no-multi-spaces": [2, { exceptions: { "Property": true } }],
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-param-reassign": 2,
"no-process-env": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-unused-expressions": 2,
"no-void": 2,
"no-warning-comments": [1, { "terms": ["todo", "fixme", "xxx"], "location": "anywhere" }],
"no-with": 2,
"quotes": 0,
"radix": 2,
"semi": 2,
"space-after-keywords": [2, "always"],
"strict": 2,
"vars-on-top": 2,
"wrap-iife": [2, "any"],
"yoda": [2, "never"],
},
"env": {
"browser": true,
"jquery": true,
},
"globals": {
"_": false,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment