|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "mocha": true, |
| 4 | + "es6": true, |
| 5 | + "node": true |
| 6 | + }, |
| 7 | + "globals": { |
| 8 | + "assert": true, |
| 9 | + "browser": true, |
| 10 | + "expect": true, |
| 11 | + "protractor": true, |
| 12 | + "sinon": true, |
| 13 | + "xdescribe": true, |
| 14 | + "xit": true, |
| 15 | + "by": true, |
| 16 | + "element": true, |
| 17 | + "describe": true, |
| 18 | + "djantajs": true |
| 19 | + }, |
| 20 | + "plugins": ["nodeca"], |
| 21 | + "rules": { |
| 22 | + "comma-dangle": [2, "never"], |
| 23 | + "camelcase": 0, |
| 24 | + "complexity": [0, 11], |
| 25 | + "consistent-return": 2, |
| 26 | + "consistent-this": [1, "self"], |
| 27 | + "curly": [2, "all"], |
| 28 | + "dot-notation": 2, |
| 29 | + "eol-last": 0, |
| 30 | + "eqeqeq": [2, "smart"], |
| 31 | + "indent": [0, 2, {"SwitchCase": 1}], |
| 32 | + "new-cap": 0, |
| 33 | + "nodeca/indent": [2, "spaces", 2], |
| 34 | + "max-depth": [0, 4], |
| 35 | + "max-len": [0, 80, 4], |
| 36 | + "max-nested-callbacks": [0, 2], |
| 37 | + "max-params": [0, 15], |
| 38 | + "max-statements": [0, 10], |
| 39 | + "new-parens": 2, |
| 40 | + "no-alert": 2, |
| 41 | + "no-array-constructor": 2, |
| 42 | + "no-caller": 2, |
| 43 | + "no-catch-shadow": 0, |
| 44 | + "no-cond-assign": 2, |
| 45 | + "no-console": 2, |
| 46 | + "no-constant-condition": 2, |
| 47 | + "no-control-regex": 2, |
| 48 | + "no-debugger": 2, |
| 49 | + "no-delete-var": 2, |
| 50 | + "no-dupe-keys": 2, |
| 51 | + "no-empty": 0, |
| 52 | + "no-empty-character-class": 2, |
| 53 | + "no-ex-assign": 2, |
| 54 | + "no-extend-native": 2, |
| 55 | + "no-extra-boolean-cast": 2, |
| 56 | + "no-extra-parens": 1, |
| 57 | + "no-extra-semi": 2, |
| 58 | + "no-fallthrough": 2, |
| 59 | + "no-func-assign": 2, |
| 60 | + "no-implied-eval": 2, |
| 61 | + "no-invalid-regexp": 2, |
| 62 | + "no-iterator": 2, |
| 63 | + "no-label-var": 2, |
| 64 | + "no-labels": ["error", { "allowLoop": false, "allowSwitch": false}], |
| 65 | + "no-lone-blocks": 2, |
| 66 | + "no-lonely-if": 0, |
| 67 | + "no-loop-func": 2, |
| 68 | + "no-mixed-spaces-and-tabs": [2, true], |
| 69 | + "no-multi-str": 2, |
| 70 | + "no-multiple-empty-lines": [2, {"max": 1}], |
| 71 | + "no-native-reassign": 2, |
| 72 | + "no-negated-in-lhs": 2, |
| 73 | + "no-nested-ternary": 0, |
| 74 | + "no-new": 2, |
| 75 | + "no-new-func": 2, |
| 76 | + "no-new-object": 2, |
| 77 | + "no-new-require": 0, |
| 78 | + "no-new-wrappers": 2, |
| 79 | + "no-obj-calls": 2, |
| 80 | + "no-octal": 2, |
| 81 | + "no-octal-escape": 2, |
| 82 | + "no-path-concat": 2, |
| 83 | + "no-process-exit": 1, |
| 84 | + "no-proto": 2, |
| 85 | + "no-redeclare": 2, |
| 86 | + "no-regex-spaces": 2, |
| 87 | + "no-return-assign": 2, |
| 88 | + "no-script-url": 2, |
| 89 | + "no-sequences": 2, |
| 90 | + "no-shadow": 0, |
| 91 | + "no-shadow-restricted-names": 2, |
| 92 | + "no-spaced-func": 2, |
| 93 | + "no-sparse-arrays": 2, |
| 94 | + "no-sync": 0, |
| 95 | + "no-ternary": 0, |
| 96 | + "no-trailing-spaces": 2, |
| 97 | + "no-undef": 2, |
| 98 | + "no-undef-init": 2, |
| 99 | + "no-underscore-dangle": 0, |
| 100 | + "no-unreachable": 2, |
| 101 | + "no-unused-vars": [2, {"args": "none", "vars": "local"}], |
| 102 | + "no-use-before-define": 2, |
| 103 | + "no-warning-comments": [1, { "terms": ["todo", "fixme", "xxx"], "location": "start" }], |
| 104 | + "no-with": 2, |
| 105 | + "quotes": [2, "single"], |
| 106 | + "semi": 2, |
| 107 | + "semi-spacing": 2, |
| 108 | + "keyword-spacing": ["error", {"before": true, "after": false}], |
| 109 | + "space-infix-ops": [2, {"int32Hint": false}], |
| 110 | + "strict": [2, "global"], |
| 111 | + "use-isnan": 2, |
| 112 | + "valid-jsdoc": [2, { "prefer": { "return": "returns" }, "requireReturn": false, "requireParamDescription": true }], |
| 113 | + "valid-typeof": 2, |
| 114 | + "wrap-iife": [2, "any"], |
| 115 | + "yoda": [2, "never", { "exceptRange": true }] |
| 116 | + } |
| 117 | +} |
0 commit comments