|
| 1 | +"use strict" |
| 2 | + |
| 3 | +module.exports = { |
| 4 | + "env": { |
| 5 | + "browser": true, |
| 6 | + "node": false, |
| 7 | + "es6": true |
| 8 | + }, |
| 9 | + "globals": { |
| 10 | + "require": true, |
| 11 | + "module": true |
| 12 | + }, |
| 13 | + "extends": "eslint:recommended", |
| 14 | + "parserOptions": { |
| 15 | + "ecmaVersion": 6, |
| 16 | + "sourceType": "module" |
| 17 | + }, |
| 18 | + "rules": { |
| 19 | + "indent": [ |
| 20 | + "error", |
| 21 | + 4, |
| 22 | + { |
| 23 | + "SwitchCase": 1 |
| 24 | + } |
| 25 | + ], |
| 26 | + "linebreak-style": [ |
| 27 | + "error", |
| 28 | + "unix" |
| 29 | + ], |
| 30 | + "quotes": [ |
| 31 | + "error", |
| 32 | + "single" |
| 33 | + ], |
| 34 | + "one-var": [ |
| 35 | + "error", |
| 36 | + "never" |
| 37 | + ], |
| 38 | + "operator-linebreak": [ |
| 39 | + "error", |
| 40 | + "before" |
| 41 | + ], |
| 42 | + "padded-blocks": [ |
| 43 | + "error", |
| 44 | + "never" |
| 45 | + ], |
| 46 | + "semi": [ |
| 47 | + "error", |
| 48 | + "always" |
| 49 | + ], |
| 50 | + "max-len": [ |
| 51 | + "error", |
| 52 | + 120 |
| 53 | + ], |
| 54 | + "max-statements-per-line": [ |
| 55 | + "error", |
| 56 | + { |
| 57 | + "max": 1 |
| 58 | + } |
| 59 | + ], |
| 60 | + "no-multiple-empty-lines": [ |
| 61 | + "error", |
| 62 | + { |
| 63 | + "max": 1 |
| 64 | + } |
| 65 | + ], |
| 66 | + "object-curly-spacing": [ |
| 67 | + "error", |
| 68 | + "always" |
| 69 | + ], |
| 70 | + "object-curly-newline": [ |
| 71 | + "error", |
| 72 | + { |
| 73 | + "minProperties": 1 |
| 74 | + } |
| 75 | + ], |
| 76 | + "space-before-function-paren": [ |
| 77 | + "error", |
| 78 | + "never" |
| 79 | + ], |
| 80 | + "curly": "error", |
| 81 | + "eqeqeq": "error", |
| 82 | + "capitalized-comments": "error", |
| 83 | + "no-unused-expressions": "error", |
| 84 | + "no-useless-call": "error", |
| 85 | + "no-useless-concat": "error", |
| 86 | + "no-useless-escape": "error", |
| 87 | + "no-useless-return": "error", |
| 88 | + "vars-on-top": "error", |
| 89 | + "no-undef-init": "error", |
| 90 | + "no-undefined": "error", |
| 91 | + "no-use-before-define": "error", |
| 92 | + "callback-return": "error", |
| 93 | + "no-mixed-requires": "error", |
| 94 | + "array-bracket-spacing": "error", |
| 95 | + "block-spacing": "error", |
| 96 | + "brace-style": "error", |
| 97 | + "camelcase": "error", |
| 98 | + "comma-spacing": "error", |
| 99 | + "comma-style": "error", |
| 100 | + "comma-dangle": "error", |
| 101 | + "computed-property-spacing": "error", |
| 102 | + "eol-last": "error", |
| 103 | + "func-call-spacing": "error", |
| 104 | + "func-name-matching": "error", |
| 105 | + "key-spacing": "error", |
| 106 | + "keyword-spacing": "error", |
| 107 | + "lines-around-directive": "error", |
| 108 | + "new-cap": "error", |
| 109 | + "new-parens": "error", |
| 110 | + "newline-before-return": "error", |
| 111 | + "no-lonely-if": "error", |
| 112 | + "no-nested-ternary": "error", |
| 113 | + "no-trailing-spaces": "error", |
| 114 | + "no-underscore-dangle": "error", |
| 115 | + "no-unneeded-ternary": "error", |
| 116 | + "no-whitespace-before-property": "error", |
| 117 | + "object-property-newline": "error", |
| 118 | + "space-before-blocks": "error", |
| 119 | + "space-in-parens": "error", |
| 120 | + "space-infix-ops": "error", |
| 121 | + "space-unary-ops": "error", |
| 122 | + "spaced-comment": "error", |
| 123 | + "no-compare-neg-zero": "error", |
| 124 | + "no-negated-condition": "warn", |
| 125 | + "no-warning-comments": "warn", |
| 126 | + "global-require": "warn", |
| 127 | + "require-jsdoc": "warn" |
| 128 | + } |
| 129 | +} |
| 130 | + |
0 commit comments