|
| 1 | +{ |
| 2 | + "extends": "airbnb-base", |
| 3 | + "parserOptions": { |
| 4 | + "sourceType": "script" |
| 5 | + }, |
| 6 | + |
| 7 | + "rules": { |
| 8 | + // Customized |
| 9 | + "handle-callback-err": [ "error","^(e$|(e|(.*(_e|E)))rr)" ], |
| 10 | + "comma-dangle": ["error", { |
| 11 | + "arrays": "always-multiline", |
| 12 | + "objects": "always-multiline", |
| 13 | + "imports": "always-multiline", |
| 14 | + "exports": "always-multiline", |
| 15 | + "functions": "never" |
| 16 | + }], |
| 17 | + "no-empty": ["error", { "allowEmptyCatch": true }], |
| 18 | + "no-underscore-dangle": "off", |
| 19 | + "newline-per-chained-call": "off", |
| 20 | + "no-console": "off", |
| 21 | + "no-mixed-operators": ["error", { "allowSamePrecedence": true }], |
| 22 | + "strict": ["error", "global"], |
| 23 | + "consistent-return": "off", |
| 24 | + "func-names": "off", |
| 25 | + "no-tabs": "off", |
| 26 | + "indent": ["error", "tab"], |
| 27 | + "no-eq-null": "off", |
| 28 | + "camelcase": "off", |
| 29 | + "no-new": "off", |
| 30 | + "no-shadow": "off", |
| 31 | + "no-use-before-define": ["error", "nofunc"], |
| 32 | + "no-prototype-builtins": "off", |
| 33 | + "new-cap": "off", |
| 34 | + "no-plusplus": ["error", { "allowForLoopAfterthoughts": true }], |
| 35 | + "import/no-unresolved": "error", |
| 36 | + |
| 37 | + // ES6 |
| 38 | + "prefer-rest-params": "off", |
| 39 | + "prefer-spread": "off", |
| 40 | + "prefer-arrow-callback": "off", |
| 41 | + "prefer-template": "off", |
| 42 | + "no-var": "off", |
| 43 | + "object-shorthand": "off", |
| 44 | + "vars-on-top": "off", |
| 45 | + |
| 46 | + // TODO |
| 47 | + "import/no-extraneous-dependencies": "off", |
| 48 | + "import/no-dynamic-require": "off", |
| 49 | + "import/newline-after-import": "off", |
| 50 | + "no-bitwise": "off", |
| 51 | + "global-require": "off", |
| 52 | + "max-len": "off", |
| 53 | + "no-param-reassign": "off", |
| 54 | + "no-restricted-syntax": "off", |
| 55 | + "no-script-url": "off", |
| 56 | + "default-case": "off", |
| 57 | + "linebreak-style": "off", |
| 58 | + |
| 59 | + // "no-multi-assign": "off", |
| 60 | + // "one-var": "off", |
| 61 | + // "no-undef": "off", |
| 62 | + // "max-nested-callbacks": "off", |
| 63 | + // "no-mixed-requires": "off", |
| 64 | + // "brace-style": "off", |
| 65 | + // "max-statements-per-line": "off", |
| 66 | + // "no-unused-vars": "off", |
| 67 | + // "no-mixed-spaces-and-tabs": "off", |
| 68 | + // "no-useless-concat": "off", |
| 69 | + // "require-jsdoc": "off", |
| 70 | + // "eqeqeq": "off", |
| 71 | + // "no-negated-condition": "off", |
| 72 | + // "one-var-declaration-per-line": "off", |
| 73 | + // "no-lonely-if": "off", |
| 74 | + // "radix": "off", |
| 75 | + // "no-else-return": "off", |
| 76 | + // "no-useless-escape": "off", |
| 77 | + // "block-scoped-var": "off", |
| 78 | + // "operator-assignment": "off", |
| 79 | + // "yoda": "off", |
| 80 | + // "no-loop-func": "off", |
| 81 | + // "no-void": "off", |
| 82 | + // "valid-jsdoc": "off", |
| 83 | + // "no-cond-assign": "off", |
| 84 | + // "no-redeclare": "off", |
| 85 | + // "no-unreachable": "off", |
| 86 | + // "no-nested-ternary": "off", |
| 87 | + // "operator-linebreak": "off", |
| 88 | + // "guard-for-in": "off", |
| 89 | + // "no-unneeded-ternary": "off", |
| 90 | + // "no-sequences": "off", |
| 91 | + // "no-extend-native": "off", |
| 92 | + // "no-shadow-restricted-names": "off", |
| 93 | + // "no-extra-boolean-cast": "off", |
| 94 | + // "no-path-concat": "off", |
| 95 | + // "no-unused-expressions": "off", |
| 96 | + // "no-return-assign": "off", |
| 97 | + // "no-restricted-modules": "off", |
| 98 | + // "object-curly-spacing": "off", |
| 99 | + // "indent": "off", |
| 100 | + // "padded-blocks": "off", |
| 101 | + // "eol-last": "off", |
| 102 | + // "lines-around-directive": "off", |
| 103 | + // "strict": "off", |
| 104 | + // "comma-dangle": "off", |
| 105 | + // "no-multi-spaces": "off", |
| 106 | + // "quotes": "off", |
| 107 | + // "keyword-spacing": "off", |
| 108 | + // "no-mixed-operators": "off", |
| 109 | + // "comma-spacing": "off", |
| 110 | + // "no-trailing-spaces": "off", |
| 111 | + // "key-spacing": "off", |
| 112 | + // "no-multiple-empty-lines": "off", |
| 113 | + // "spaced-comment": "off", |
| 114 | + // "space-in-parens": "off", |
| 115 | + // "block-spacing": "off", |
| 116 | + // "quote-props": "off", |
| 117 | + // "space-unary-ops": "off", |
| 118 | + // "no-empty": "off", |
| 119 | + // "dot-notation": "off", |
| 120 | + // "func-call-spacing": "off", |
| 121 | + // "array-bracket-spacing": "off", |
| 122 | + // "object-property-newline": "off", |
| 123 | + // "no-continue": "off", |
| 124 | + // "no-extra-semi": "off", |
| 125 | + // "no-spaced-func": "off", |
| 126 | + // "no-useless-return": "off" |
| 127 | + } |
| 128 | +} |
0 commit comments