|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true |
| 4 | + }, |
| 5 | + "globals": { |
| 6 | + "_": false, |
| 7 | + "Backbone": false, |
| 8 | + "jQuery": false, |
| 9 | + "wp": false |
| 10 | + }, |
| 11 | + "rules": { |
| 12 | + "accessor-pairs": [2], |
| 13 | + "block-scoped-var": [2], |
| 14 | + "callback-return": [2], |
| 15 | + "complexity": [2, 8], |
| 16 | + "consistent-return": [2], |
| 17 | + "consistent-this": [2, "self"], |
| 18 | + "constructor-super": [2], |
| 19 | + "default-case": [2], |
| 20 | + "eqeqeq": [2], |
| 21 | + "func-style": [0], |
| 22 | + "global-require": [2], |
| 23 | + "guard-for-in": [0], |
| 24 | + "handle-callback-err": [2, "^err(or)?$"], |
| 25 | + "id-length": [0], |
| 26 | + "id-match": [0], |
| 27 | + "indent": ["error", "tab"], |
| 28 | + "init-declarations": [0], |
| 29 | + "max-depth": [2, 3], |
| 30 | + "max-nested-callbacks": [2, 3], |
| 31 | + "max-params": [2, 4], |
| 32 | + "max-statements": [0], |
| 33 | + "new-parens": [0], |
| 34 | + "no-alert": [0], |
| 35 | + "no-array-constructor": [0], |
| 36 | + "no-bitwise": [0], |
| 37 | + "no-caller": [2], |
| 38 | + "no-case-declarations": [2], |
| 39 | + "no-catch-shadow": [2], |
| 40 | + "no-class-assign": [2], |
| 41 | + "no-cond-assign": [2], |
| 42 | + "no-console": [0], |
| 43 | + "no-const-assign": [2], |
| 44 | + "no-constant-condition": [0], |
| 45 | + "no-continue": [0], |
| 46 | + "no-control-regex": [2], |
| 47 | + "no-debugger": [2], |
| 48 | + "no-delete-var": [2], |
| 49 | + "no-div-regex": [0], |
| 50 | + "no-dupe-args": [2], |
| 51 | + "no-dupe-class-members": [2], |
| 52 | + "no-dupe-keys": [2], |
| 53 | + "no-duplicate-case": [2], |
| 54 | + "no-else-return": [0], |
| 55 | + "no-empty-character-class": [2], |
| 56 | + "no-empty-pattern": [2], |
| 57 | + "no-empty": [2], |
| 58 | + "no-eq-null": [2], |
| 59 | + "no-eval": [2], |
| 60 | + "no-ex-assign": [2], |
| 61 | + "no-extend-native": [0], |
| 62 | + "no-extra-bind": [2], |
| 63 | + "no-extra-boolean-cast": [2], |
| 64 | + "no-extra-parens": [2], |
| 65 | + "no-extra-semi": [2], |
| 66 | + "no-fallthrough": [2], |
| 67 | + "no-floating-decimal": [2], |
| 68 | + "no-func-assign": [2], |
| 69 | + "no-implicit-coercion": [2], |
| 70 | + "no-implicit-globals": [0], |
| 71 | + "no-implied-eval": [2], |
| 72 | + "no-inline-comments": [0], |
| 73 | + "no-inner-declarations": [2], |
| 74 | + "no-invalid-regexp": [2], |
| 75 | + "no-invalid-this": [0], |
| 76 | + "no-irregular-whitespace": [2], |
| 77 | + "no-iterator": [2], |
| 78 | + "no-label-var": [2], |
| 79 | + "no-labels": [0], |
| 80 | + "no-lone-blocks": [2], |
| 81 | + "no-lonely-if": [2], |
| 82 | + "no-loop-func": [2], |
| 83 | + "no-magic-numbers": [2, { "ignoreArrayIndexes": true, "ignore": [ -1, 0 ] }], |
| 84 | + "no-mixed-requires": [0], |
| 85 | + "no-multi-str": [2], |
| 86 | + "no-native-reassign": [2], |
| 87 | + "no-negated-condition": [0], |
| 88 | + "no-negated-in-lhs": [2], |
| 89 | + "no-nested-ternary": [0], |
| 90 | + "no-new-func": [0], |
| 91 | + "no-new-object": [2], |
| 92 | + "no-new-require": [0], |
| 93 | + "no-new-wrappers": [2], |
| 94 | + "no-new": [2], |
| 95 | + "no-obj-calls": [2], |
| 96 | + "no-octal-escape": [2], |
| 97 | + "no-octal": [2], |
| 98 | + "no-param-reassign": [2], |
| 99 | + "no-path-concat": [2], |
| 100 | + "no-plusplus": [0], |
| 101 | + "no-process-env": [2], |
| 102 | + "no-process-exit": [0], |
| 103 | + "no-proto": [2], |
| 104 | + "no-redeclare": [2], |
| 105 | + "no-regex-spaces": [0], |
| 106 | + "no-restricted-imports": [0], |
| 107 | + "no-restricted-syntax": [0], |
| 108 | + "no-return-assign": [2], |
| 109 | + "no-script-url": [0], |
| 110 | + "no-self-compare": [2], |
| 111 | + "no-sequences": [2], |
| 112 | + "no-shadow-restricted-names": [2], |
| 113 | + "no-shadow": [2], |
| 114 | + "no-sparse-arrays": [2], |
| 115 | + "no-sync": [0], |
| 116 | + "no-ternary": [0], |
| 117 | + "no-trailing-spaces": [2], |
| 118 | + "no-this-before-super": [2], |
| 119 | + "no-throw-literal": [2], |
| 120 | + "no-undef-init": [0], |
| 121 | + "no-undef": [2], |
| 122 | + "no-undefined": [0], |
| 123 | + "no-unneeded-ternary": [2], |
| 124 | + "no-unreachable": [2], |
| 125 | + "no-unused-expressions": [2], |
| 126 | + "no-unused-vars": [2], |
| 127 | + "no-use-before-define": [0], |
| 128 | + "no-useless-call": [2], |
| 129 | + "no-useless-concat": [2], |
| 130 | + "no-var": [0], |
| 131 | + "no-void": [0], |
| 132 | + "no-with": [2], |
| 133 | + "object-shorthand": [0], |
| 134 | + "one-var": [ 2, "always" ], |
| 135 | + "operator-assignment": [2, "always"], |
| 136 | + "prefer-arrow-callback": [0], |
| 137 | + "prefer-const": [0], |
| 138 | + "prefer-reflect": [0], |
| 139 | + "prefer-rest-params": [0], |
| 140 | + "prefer-spread": [0], |
| 141 | + "prefer-template": [0], |
| 142 | + "quotes": [0], |
| 143 | + "radix": [2, "always"], |
| 144 | + "require-yield": [0], |
| 145 | + "sort-imports": [0], |
| 146 | + "sort-vars": [0], |
| 147 | + "strict": [2, "function"], |
| 148 | + "use-isnan": [2], |
| 149 | + "valid-typeof": [2], |
| 150 | + "valid-jsdoc": [2], |
| 151 | + "vars-on-top": [0], |
| 152 | + "wrap-iife": [2, "inside"], |
| 153 | + "wrap-regex": [0], |
| 154 | + "yoda": [0] |
| 155 | + } |
| 156 | +} |
0 commit comments