|
| 1 | +module.exports = { |
| 2 | + 'env': { |
| 3 | + 'es6': true, |
| 4 | + 'node': true |
| 5 | + }, |
| 6 | + 'parserOptions': { |
| 7 | + 'ecmaVersion': 2017 |
| 8 | + }, |
| 9 | + 'extends': 'eslint:recommended', |
| 10 | + 'rules': { |
| 11 | + 'indent': [ |
| 12 | + 'error', |
| 13 | + 2 |
| 14 | + ], |
| 15 | + 'linebreak-style': [ |
| 16 | + 'error', |
| 17 | + 'unix' |
| 18 | + ], |
| 19 | + 'quotes': [ |
| 20 | + 'error', |
| 21 | + 'single' |
| 22 | + ], |
| 23 | + 'semi': [ |
| 24 | + 'error', |
| 25 | + 'always' |
| 26 | + ], |
| 27 | + 'curly': [ |
| 28 | + 'error' |
| 29 | + ], |
| 30 | + 'eqeqeq': [ |
| 31 | + 'error', |
| 32 | + 'always' |
| 33 | + ], |
| 34 | + 'guard-for-in': [ |
| 35 | + 'error' |
| 36 | + ], |
| 37 | + 'no-multi-spaces': [ |
| 38 | + 'error' |
| 39 | + ], |
| 40 | + 'strict': [ |
| 41 | + 'error', |
| 42 | + 'global' |
| 43 | + ], |
| 44 | + 'key-spacing': [ |
| 45 | + 'error' |
| 46 | + ], |
| 47 | + 'keyword-spacing': [ |
| 48 | + 'error' |
| 49 | + ], |
| 50 | + 'space-before-function-paren': [ |
| 51 | + 'error', |
| 52 | + 'always' |
| 53 | + ], |
| 54 | + 'space-in-parens': [ |
| 55 | + 'error', |
| 56 | + 'never' |
| 57 | + ], |
| 58 | + 'space-infix-ops': [ |
| 59 | + 'error' |
| 60 | + ], |
| 61 | + 'no-console': 'error', |
| 62 | + 'no-spaced-func': [ |
| 63 | + 'error' |
| 64 | + ], |
| 65 | + 'no-whitespace-before-property': [ |
| 66 | + 'error' |
| 67 | + ], |
| 68 | + 'space-before-blocks': [ |
| 69 | + 'error' |
| 70 | + ], |
| 71 | + 'no-template-curly-in-string': [ |
| 72 | + 'error' |
| 73 | + ], |
| 74 | + 'block-scoped-var': [ |
| 75 | + 'error' |
| 76 | + ], |
| 77 | + 'complexity': [ |
| 78 | + 'warn', |
| 79 | + 10 |
| 80 | + ], |
| 81 | + 'dot-location': [ |
| 82 | + 'error', |
| 83 | + 'property' |
| 84 | + ], |
| 85 | + 'no-else-return': 'error', |
| 86 | + 'no-floating-decimal': 'error', |
| 87 | + 'no-implicit-coercion': 'error', |
| 88 | + 'no-implicit-globals': 'error', |
| 89 | + 'no-implied-eval': 'error', |
| 90 | + 'no-lone-blocks': 'error', |
| 91 | + 'no-loop-func': 'error', |
| 92 | + 'no-multi-str': 'error', |
| 93 | + 'no-new-wrappers': 'error', |
| 94 | + 'no-new': 'error', |
| 95 | + 'no-return-assign': 'error', |
| 96 | + 'no-throw-literal': 'error', |
| 97 | + 'no-unmodified-loop-condition': 'error', |
| 98 | + 'no-useless-return': 'error', |
| 99 | + 'radix': [ |
| 100 | + 'error', |
| 101 | + 'always' |
| 102 | + ], |
| 103 | + 'yoda': 'error', |
| 104 | + 'callback-return': 'error', |
| 105 | + 'global-require': 'error', |
| 106 | + 'comma-spacing': [ |
| 107 | + 'error', |
| 108 | + { 'before': false, 'after': true } |
| 109 | + ], |
| 110 | + 'comma-style': [ |
| 111 | + 'error', |
| 112 | + 'last' |
| 113 | + ], |
| 114 | + 'computed-property-spacing': [ |
| 115 | + 'error', |
| 116 | + 'never' |
| 117 | + ], |
| 118 | + 'eol-last': [ |
| 119 | + 'error', |
| 120 | + 'always' |
| 121 | + ], |
| 122 | + 'func-call-spacing': [ |
| 123 | + 'error', |
| 124 | + 'never' |
| 125 | + ], |
| 126 | + 'func-name-matching': [ |
| 127 | + 'error', |
| 128 | + 'always' |
| 129 | + ], |
| 130 | + 'func-style': [ |
| 131 | + 'error', |
| 132 | + 'expression' |
| 133 | + ], |
| 134 | + 'lines-around-directive': [ |
| 135 | + 'error' |
| 136 | + ], |
| 137 | + 'newline-before-return': 'error', |
| 138 | + 'newline-per-chained-call': 'error', |
| 139 | + 'no-lonely-if': 'error', |
| 140 | + 'no-trailing-spaces': 'error', |
| 141 | + 'object-curly-spacing': [ |
| 142 | + 'error', |
| 143 | + 'always' |
| 144 | + ], |
| 145 | + 'operator-assignment': [ |
| 146 | + 'error', |
| 147 | + 'never' |
| 148 | + ], |
| 149 | + 'no-confusing-arrow': 'error', |
| 150 | + 'no-useless-computed-key': 'error', |
| 151 | + 'no-var': 'error', |
| 152 | + 'prefer-const': 'error', |
| 153 | + 'prefer-template': 'error', |
| 154 | + 'template-curly-spacing': [ |
| 155 | + 'error', |
| 156 | + 'never' |
| 157 | + ], |
| 158 | + 'no-warning-comments': 'error', |
| 159 | + 'prefer-promise-reject-errors': 'error' |
| 160 | + } |
| 161 | +}; |
0 commit comments