dash-website/.eslintrc

200 lines
3.2 KiB
Text

{
"env": {
"browser": true,
"node": false
},
"globals": {
"Modernizr": false,
"moment": false,
"formatCurrency": false,
"formatNumber": false,
"jQuery": false
},
"rules": {
"no-bitwise": 2,
"camelcase": [
2,
{
"properties": "never"
}
],
"curly": [
2,
"all"
],
"eqeqeq": 2,
"guard-for-in": 2,
"no-extend-native": 2,
"wrap-iife": 2,
"indent": [
2,
"tab",
{
"SwitchCase": 1
}
],
"no-use-before-define": [
2,
{
"functions": false
}
],
"new-cap": 2,
"no-caller": 2,
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
"no-irregular-whitespace": 2,
"no-new": 2,
"no-plusplus": 0,
"quotes": [
2,
"single"
],
"no-undef": 2,
"no-unused-vars": 2,
"strict": 0,
"max-params": [
2,
6
],
"max-depth": [
2,
3
],
"max-statements": 0,
"complexity": 0,
"max-len": 0,
"semi": [
2,
"always"
],
"no-cond-assign": 0,
"no-debugger": 0,
"no-eq-null": 0,
"no-eval": 0,
"no-unused-expressions": 0,
"block-scoped-var": 0,
"no-iterator": 0,
"linebreak-style": 0,
"comma-style": [
2,
"last"
],
"no-loop-func": 0,
"no-multi-str": 0,
"require-yield": 0,
"valid-typeof": 0,
"no-proto": 0,
"no-script-url": 0,
"no-shadow": 2,
"dot-notation": 2,
"no-new-func": 0,
"no-new-wrappers": 0,
"no-invalid-this": 0,
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"no-multi-spaces": 2,
"dot-location": [
2,
"property"
],
"operator-linebreak": [
2,
"after"
],
"key-spacing": [
2,
{
"beforeColon": false,
"afterColon": true
}
],
"space-unary-ops": [
2,
{
"words": false,
"nonwords": false
}
],
"space-before-function-paren": [
2,
{
"anonymous": "ignore",
"named": "never"
}
],
"no-spaced-func": 2,
"array-bracket-spacing": [
2,
"never",
{}
],
"space-in-parens": [
2,
"never"
],
"comma-dangle": [
2,
"never"
],
"no-trailing-spaces": 2,
"yoda": [
2,
"never"
],
"eol-last": 2,
"one-var": [
2,
"always"
],
"newline-after-var": [
2,
"always"
],
"lines-around-comment": [
2,
{
"beforeLineComment": true
}
],
"space-infix-ops": 2,
"keyword-spacing": [
2,
{
"overrides": {
"else": {
"before": true
},
"while": {
"before": true
},
"catch": {
"before": true
},
"in": {
"before": true
}
}
}
],
"spaced-comment": [
2,
"always"
],
"space-before-blocks": [
2,
"always"
]
}
}