|
1 | 1 | module.exports = { |
2 | | - "env": { |
3 | | - "browser": true, |
4 | | - "node": true // not actually, but we're writing code as if it were and letting browserify handle it |
| 2 | + 'env': { |
| 3 | + 'browser': true, |
| 4 | + 'node': true |
5 | 5 | }, |
6 | | - "extends": "eslint:recommended", |
7 | | - "globals": { |
8 | | - // false meaning this code doesn't define it |
9 | | - Promise: false, |
10 | | - DataView: false, |
11 | | - ArrayBuffer: false |
12 | | - }, |
13 | | - "rules": { |
14 | 6 |
|
| 7 | + 'globals': { |
| 8 | + // false meaning this code doesn't define it |
| 9 | + Promise: false, |
| 10 | + DataView: false, |
| 11 | + ArrayBuffer: false |
| 12 | + }, |
| 13 | + 'myrules': { |
| 14 | + 'consistent-return': 2, |
| 15 | + 'curly': 2, |
| 16 | + eqeqeq: [2, 'smart'], |
| 17 | + 'no-alert': 2, |
| 18 | + 'no-eq-null': 2, |
| 19 | + 'no-eval': 2, |
| 20 | + 'no-extend-native': 2 |
| 21 | + }, |
| 22 | + 'extends': 'eslint:recommended', |
| 23 | + 'rules': { |
| 24 | + 'accessor-pairs': 2, |
| 25 | + 'array-bracket-spacing': [ |
| 26 | + 2, |
| 27 | + 'never' |
| 28 | + ], |
| 29 | + 'array-callback-return': 2, |
| 30 | + 'arrow-body-style': 2, |
| 31 | + 'arrow-parens': 2, |
| 32 | + 'arrow-spacing': 2, |
| 33 | + 'block-scoped-var': 1, |
| 34 | + 'block-spacing': 2, |
| 35 | + 'brace-style': [ |
| 36 | + 2, |
| 37 | + '1tbs' |
| 38 | + ], |
| 39 | + 'callback-return': 2, |
| 40 | + 'camelcase': [ |
| 41 | + 2, |
| 42 | + { |
| 43 | + 'properties': 'never' |
| 44 | + } |
| 45 | + ], |
| 46 | + 'comma-spacing': 0, |
| 47 | + 'comma-style': [ |
| 48 | + 2, |
| 49 | + 'last' |
| 50 | + ], |
| 51 | + 'complexity': 2, |
| 52 | + 'computed-property-spacing': [ |
| 53 | + 2, |
| 54 | + 'never' |
| 55 | + ], |
| 56 | + 'consistent-this': [ 1, 'self', 'that' ], |
| 57 | + 'curly': 2, |
| 58 | + 'default-case': 2, |
| 59 | + 'dot-location': [ |
| 60 | + 2, |
| 61 | + 'property' |
| 62 | + ], |
| 63 | + 'dot-notation': [ |
| 64 | + 2, |
| 65 | + { |
| 66 | + 'allowKeywords': true |
| 67 | + } |
| 68 | + ], |
| 69 | + 'eol-last': 2, |
| 70 | + 'eqeqeq': [2, 'smart'], |
| 71 | + 'func-names': 0, |
| 72 | + 'func-style': [ |
| 73 | + 2, |
| 74 | + 'declaration' |
| 75 | + ], |
| 76 | + 'generator-star-spacing': 2, |
| 77 | + 'global-require': 0, |
| 78 | + 'guard-for-in': 2, |
| 79 | + 'handle-callback-err': 2, |
| 80 | + 'id-blacklist': 2, |
| 81 | + 'id-match': 2, |
| 82 | + 'indent': [1, 2], |
| 83 | + 'jsx-quotes': 2, |
| 84 | + 'key-spacing': 2, |
| 85 | + 'keyword-spacing': 1, |
| 86 | + 'linebreak-style': [ |
| 87 | + 2, |
| 88 | + 'unix' |
| 89 | + ], |
| 90 | + 'max-depth': 2, |
| 91 | + 'max-len': [ |
| 92 | + 1, |
| 93 | + { |
| 94 | + 'code': 160, |
| 95 | + 'tabWidth': 2, |
| 96 | + 'ignoreComments': true, |
| 97 | + 'ignoreUrls': true |
| 98 | + } |
| 99 | + ], |
| 100 | + 'max-nested-callbacks': 2, |
| 101 | + 'max-params': 2, |
| 102 | + 'new-cap': 2, |
| 103 | + 'new-parens': 2, |
| 104 | + 'no-alert': 2, |
| 105 | + 'no-array-constructor': 2, |
| 106 | + 'no-bitwise': [ |
| 107 | + 2, |
| 108 | + { |
| 109 | + 'int32Hint': true |
| 110 | + } |
| 111 | + ], |
| 112 | + 'no-caller': 2, |
| 113 | + 'no-catch-shadow': 2, |
| 114 | + 'no-confusing-arrow': 2, |
| 115 | + 'no-continue': 2, |
| 116 | + 'no-div-regex': 2, |
| 117 | + 'no-else-return': 2, |
| 118 | + 'no-eq-null': 2, |
| 119 | + 'no-eval': 2, |
| 120 | + 'no-extend-native': 2, |
| 121 | + 'no-extra-bind': 2, |
| 122 | + 'no-extra-label': 2, |
| 123 | + 'no-floating-decimal': 2, |
| 124 | + 'no-implicit-globals': 2, |
| 125 | + 'no-implied-eval': 2, |
| 126 | + 'no-inner-declarations': [ |
| 127 | + 2, |
| 128 | + 'functions' |
| 129 | + ], |
| 130 | + 'no-invalid-this': 2, |
| 131 | + 'no-iterator': 2, |
| 132 | + 'no-label-var': 2, |
| 133 | + 'no-labels': 2, |
| 134 | + 'no-lone-blocks': 2, |
| 135 | + 'no-lonely-if': 0, |
| 136 | + 'no-loop-func': 2, |
| 137 | + 'no-multi-spaces': 1, |
| 138 | + 'no-multi-str': 2, |
| 139 | + 'no-native-reassign': 2, |
| 140 | + 'no-negated-condition': 2, |
| 141 | + 'no-nested-ternary': 2, |
| 142 | + 'no-new': 2, |
| 143 | + 'no-new-func': 2, |
| 144 | + 'no-new-object': 2, |
| 145 | + 'no-new-require': 2, |
| 146 | + 'no-new-wrappers': 2, |
| 147 | + 'no-octal-escape': 2, |
| 148 | + 'no-proto': 2, |
| 149 | + 'no-restricted-imports': 2, |
| 150 | + 'no-restricted-modules': 2, |
| 151 | + 'no-restricted-syntax': 2, |
| 152 | + 'no-return-assign': 2, |
| 153 | + 'no-script-url': 2, |
| 154 | + 'no-self-compare': 2, |
| 155 | + 'no-sequences': 2, |
| 156 | + 'no-shadow': 2, |
| 157 | + 'no-shadow-restricted-names': 2, |
| 158 | + 'no-spaced-func': 2, |
| 159 | + 'no-throw-literal': 2, |
| 160 | + 'no-trailing-spaces': 2, |
| 161 | + 'no-undef-init': 2, |
| 162 | + 'no-undefined': 2, |
| 163 | + 'no-unmodified-loop-condition': 2, |
| 164 | + 'no-unneeded-ternary': 2, |
| 165 | + 'no-unused-expressions': 2, |
| 166 | + 'no-use-before-define': 2, |
| 167 | + 'no-useless-call': 2, |
| 168 | + 'no-useless-concat': 2, |
| 169 | + 'no-useless-constructor': 2, |
| 170 | + 'no-void': 2, |
| 171 | + 'no-warning-comments': 1, |
| 172 | + 'no-whitespace-before-property': 2, |
| 173 | + 'no-with': 2, |
| 174 | + 'object-curly-spacing': [ |
| 175 | + 2, |
| 176 | + 'never' |
| 177 | + ], |
| 178 | + 'one-var-declaration-per-line': 2, |
| 179 | + 'operator-assignment': [ |
| 180 | + 2, |
| 181 | + 'always' |
| 182 | + ], |
| 183 | + 'operator-linebreak': 2, |
| 184 | + 'quote-props': [2, 'as-needed'], |
| 185 | + 'quotes': [1, 'single', 'avoid-escape'], |
| 186 | + 'radix': 2, |
| 187 | + 'require-jsdoc': 2, |
| 188 | + 'require-yield': 2, |
| 189 | + 'semi': 1, |
| 190 | + 'semi-spacing': [ |
| 191 | + 2, |
| 192 | + { |
| 193 | + 'after': true, |
| 194 | + 'before': false |
| 195 | + } |
| 196 | + ], |
| 197 | + 'sort-imports': 2, |
| 198 | + 'space-before-function-paren': [1, 'never'], |
| 199 | + 'space-in-parens': [1, 'never'], |
| 200 | + 'space-infix-ops': 1, |
| 201 | + 'space-unary-ops': 2, |
| 202 | + 'spaced-comment': 1, |
| 203 | + 'strict': 2, |
| 204 | + 'template-curly-spacing': 2, |
| 205 | + 'valid-jsdoc': [1, { |
| 206 | + 'requireReturn': false, |
| 207 | + 'requireParamDescription': false, |
| 208 | + 'requireReturnDescription': false |
| 209 | + }], |
| 210 | + 'wrap-iife': 2, |
| 211 | + 'yoda': [ |
| 212 | + 2, |
| 213 | + 'never' |
| 214 | + ] |
15 | 215 | } |
16 | 216 | }; |
0 commit comments