| 1 |
{ |
| 2 |
// http://eslint.org/docs/user-guide/configuring.html |
| 3 |
"root": true, |
| 4 |
"extends": "eslint:recommended", |
| 5 |
"env": { |
| 6 |
"mocha": true, |
| 7 |
"node": true |
| 8 |
}, |
| 9 |
"globals": { |
| 10 |
"expect": true, |
| 11 |
"path": true, |
| 12 |
"SassyTest": true |
| 13 |
}, |
| 14 |
"rules": { |
| 15 |
// Errors. |
| 16 |
"array-bracket-spacing": [2, "never"], |
| 17 |
"block-scoped-var": 2, |
| 18 |
"brace-style": [2, "1tbs", {"allowSingleLine": true}], |
| 19 |
"camelcase": 2, |
| 20 |
"comma-dangle": [2, "never"], |
| 21 |
"comma-spacing": 2, |
| 22 |
"comma-style": [2, "last"], |
| 23 |
"computed-property-spacing": [2, "never"], |
| 24 |
"consistent-this": [2, "self"], |
| 25 |
"curly": [2, "all"], |
| 26 |
"eol-last": 2, |
| 27 |
"eqeqeq": [2, "smart"], |
| 28 |
"guard-for-in": 2, |
| 29 |
"indent": [2, 2, {"SwitchCase": 1}], |
| 30 |
"key-spacing": [2, {"beforeColon": false, "afterColon": true}], |
| 31 |
"keyword-spacing": 2, |
| 32 |
"linebreak-style": [2, "unix"], |
| 33 |
"max-nested-callbacks": [2, 4], |
| 34 |
"new-parens": 2, |
| 35 |
"no-array-constructor": 2, |
| 36 |
"no-caller": 2, |
| 37 |
"no-catch-shadow": 2, |
| 38 |
"no-eval": 2, |
| 39 |
"no-extend-native": 2, |
| 40 |
"no-extra-bind": 2, |
| 41 |
"no-implied-eval": 2, |
| 42 |
"no-iterator": 2, |
| 43 |
"no-label-var": 2, |
| 44 |
"no-labels": [2, {"allowLoop": true, "allowSwitch": true}], |
| 45 |
"no-lone-blocks": 2, |
| 46 |
"no-loop-func": 2, |
| 47 |
"no-mixed-requires": [2, false], |
| 48 |
"no-multi-spaces": 2, |
| 49 |
"no-multi-str": 2, |
| 50 |
"no-native-reassign": 2, |
| 51 |
"no-nested-ternary": 2, |
| 52 |
"no-new-func": 2, |
| 53 |
"no-new-object": 2, |
| 54 |
"no-new-wrappers": 2, |
| 55 |
"no-octal-escape": 2, |
| 56 |
"no-process-exit": 2, |
| 57 |
"no-proto": 2, |
| 58 |
"no-return-assign": 2, |
| 59 |
"no-script-url": 2, |
| 60 |
"no-sequences": 2, |
| 61 |
"no-shadow-restricted-names": 2, |
| 62 |
"no-spaced-func": 2, |
| 63 |
"no-throw-literal": 2, |
| 64 |
"no-trailing-spaces": 2, |
| 65 |
"no-undef-init": 2, |
| 66 |
"no-undefined": 2, |
| 67 |
"no-unused-vars": 2, |
| 68 |
"no-with": 2, |
| 69 |
"object-curly-spacing": [2, "never"], |
| 70 |
"quote-props": [2, "consistent-as-needed"], |
| 71 |
"quotes": [2, "single", "avoid-escape"], |
| 72 |
"semi": [2, "always"], |
| 73 |
"semi-spacing": [2, {"before": false, "after": true}], |
| 74 |
"space-before-function-paren": [2, "never"], |
| 75 |
"space-in-parens": [2, "never"], |
| 76 |
"space-infix-ops": 2, |
| 77 |
"space-unary-ops": [2, { "words": true, "nonwords": false }], |
| 78 |
"spaced-comment": [2, "always"], |
| 79 |
"strict": [2, "global"], |
| 80 |
"valid-jsdoc": [2, { |
| 81 |
"prefer": { |
| 82 |
"return": "returns" |
| 83 |
}, |
| 84 |
"requireReturn": false |
| 85 |
}], |
| 86 |
"wrap-iife": 2, |
| 87 |
"yoda": [2, "never"], |
| 88 |
// Disabled. |
| 89 |
// Chai assertions are "unused" expressions. |
| 90 |
"no-unused-expressions": 0 |
| 91 |
} |
| 92 |
} |