|
| 1 | +{ |
| 2 | + "parser": "babel-eslint", |
| 3 | + |
| 4 | + "env": { |
| 5 | + "browser": true, |
| 6 | + "amd": true, |
| 7 | + "jasmine": true, |
| 8 | + "node": true, |
| 9 | + "es6": true |
| 10 | + }, |
| 11 | + |
| 12 | + "globals": { |
| 13 | + "LBF": true, |
| 14 | + "$": true, |
| 15 | + "jQuery": true, |
| 16 | + "setImmediate": true, |
| 17 | + "ActiveXObject": true, |
| 18 | + "unescape": true, |
| 19 | + "escape": true, |
| 20 | + "__VERSION__": true, |
| 21 | + "__DEV__": true, |
| 22 | + "__ENV__": true, |
| 23 | + "__DEBUG__": true |
| 24 | + }, |
| 25 | + |
| 26 | + "parserOptions": { |
| 27 | + "ecmaVersion": 6, |
| 28 | + "sourceType": "module" |
| 29 | + }, |
| 30 | + |
| 31 | + "rules": { |
| 32 | + "indent": [2, 4, {"SwitchCase": 1}], |
| 33 | + "quote-props": 0, |
| 34 | + "max-statements": [1, 50], |
| 35 | + "key-spacing": [2, {"beforeColon": false, "afterColon": true}], |
| 36 | + "valid-jsdoc": [2, { |
| 37 | + "prefer": { |
| 38 | + "arg": "param", |
| 39 | + "argument": "param", |
| 40 | + "returns": "return", |
| 41 | + "fileoverview": "file" |
| 42 | + }, |
| 43 | + "requireReturn": false, |
| 44 | + "requireReturnDescription": false, |
| 45 | + "requireParamDescription": true |
| 46 | + }], |
| 47 | + "eol-last": 2, |
| 48 | + "space-infix-ops": 2, |
| 49 | + "dot-notation": 0, |
| 50 | + |
| 51 | + "no-console": 1, |
| 52 | + "no-constant-condition": 1, |
| 53 | + "comma-dangle": 2, |
| 54 | + "no-debugger": 2, |
| 55 | + "no-dupe-keys": 1, |
| 56 | + "no-empty-character-class": 2, |
| 57 | + "no-ex-assign": 2, |
| 58 | + "no-extra-boolean-cast": 1, |
| 59 | + "no-extra-semi": 2, |
| 60 | + "no-func-assign": 1, |
| 61 | + "no-inner-declarations": 1, |
| 62 | + "no-invalid-regexp": 2, |
| 63 | + "no-negated-in-lhs": 2, |
| 64 | + "no-obj-calls": 2, |
| 65 | + "no-sparse-arrays": 2, |
| 66 | + "no-unreachable": 2, |
| 67 | + "use-isnan": 2, |
| 68 | + |
| 69 | + "valid-typeof": 2, |
| 70 | + |
| 71 | + "curly": [2, "all"], |
| 72 | + "eqeqeq": [2, "allow-null"], |
| 73 | + "guard-for-in": 1, |
| 74 | + "no-else-return": 1, |
| 75 | + "no-labels": 1, |
| 76 | + "no-eval": 2, |
| 77 | + "no-extend-native": 2, |
| 78 | + "no-extra-bind": 1, |
| 79 | + "no-implied-eval": 1, |
| 80 | + "no-iterator": 2, |
| 81 | + "no-irregular-whitespace": 1, |
| 82 | + "no-lone-blocks": 1, |
| 83 | + "no-loop-func": 1, |
| 84 | + "no-multi-str": 1, |
| 85 | + "no-native-reassign": 2, |
| 86 | + "no-new-wrappers": 2, |
| 87 | + "no-octal": 1, |
| 88 | + "no-octal-escape": 1, |
| 89 | + "no-proto": 2, |
| 90 | + "no-redeclare": 1, |
| 91 | + "no-self-compare": 2, |
| 92 | + "no-unneeded-ternary": 2, |
| 93 | + "no-with": 1, |
| 94 | + "radix": 2, |
| 95 | + "wrap-iife": [2, "any"], |
| 96 | + |
| 97 | + "no-delete-var": 1, |
| 98 | + "no-dupe-args": 2, |
| 99 | + "no-duplicate-case": 2, |
| 100 | + "no-label-var": 1, |
| 101 | + "no-shadow-restricted-names": 2, |
| 102 | + "no-undef": 2, |
| 103 | + "no-undef-init": 1, |
| 104 | + "no-unused-vars": [1, {"vars": "local", "args": "none"}], |
| 105 | + "no-use-before-define": [2, "nofunc"], |
| 106 | + |
| 107 | + "brace-style": [1, "stroustrup", {}], |
| 108 | + "comma-spacing": [2, {"before": false, "after": true}], |
| 109 | + "comma-style": [2, "last"], |
| 110 | + "new-cap": [2, {"capIsNewExceptions": ["T", "AddToFavoritesBar"]}], |
| 111 | + "new-parens": 1, |
| 112 | + "no-array-constructor": 2, |
| 113 | + "no-new-object": 2, |
| 114 | + "no-spaced-func": 2, |
| 115 | + "no-trailing-spaces": 2, |
| 116 | + "no-extra-parens": [2, "functions"], |
| 117 | + "no-mixed-spaces-and-tabs": 2, |
| 118 | + "one-var": [2, "never"], |
| 119 | + "operator-linebreak": [2, "before"], |
| 120 | + "quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}], |
| 121 | + "semi": [2, "always"], |
| 122 | + "semi-spacing": 2, |
| 123 | + "keyword-spacing": 2, |
| 124 | + "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}], |
| 125 | + "space-before-blocks": [2, "always"], |
| 126 | + "array-bracket-spacing": [2, "never"], |
| 127 | + "computed-property-spacing": [2, "never"], |
| 128 | + "object-curly-spacing": [2, "never"], |
| 129 | + "space-in-parens": [2, "never"], |
| 130 | + "space-unary-ops": 1, |
| 131 | + "spaced-comment": [2, "always", {"exceptions": ["-", "+", ""]}], |
| 132 | + "max-nested-callbacks": [1, 3], |
| 133 | + |
| 134 | + "max-depth": [1, 6], |
| 135 | + "max-len": [2, 120, 4, { |
| 136 | + "ignoreUrls": true, |
| 137 | + "ignoreComments": true, |
| 138 | + "ignorePattern": "\\+ [\\w\\W]+>'" |
| 139 | + }], |
| 140 | + "max-params": [1, 6] |
| 141 | + } |
| 142 | +} |
0 commit comments