UNPKG

mocha-suppress-logs

Version:

Suppress console output of successful mocha tests.

76 lines 3.3 kB
{ "env": { "commonjs": true, "es6": true, "node": true, "mocha": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 2018 }, "rules": { "array-bracket-newline": ["warn", "consistent"], "array-bracket-spacing": ["warn", "never"], "array-element-newline": ["warn", "consistent"], "arrow-body-style": ["warn", "as-needed"], "arrow-parens": ["warn", "as-needed"], "arrow-spacing": ["warn", { "before": true, "after": true }], "block-spacing": ["warn", "always"], "brace-style": ["warn", "1tbs", { "allowSingleLine": true }], "camelcase": ["warn", { "properties": "always" }], "comma-dangle": ["warn", "never"], "comma-spacing": ["warn", { "before": false, "after": true }], "comma-style": ["warn", "last"], "computed-property-spacing": ["warn", "never"], "curly": "warn", "dot-notation": ["warn", { "allowKeywords": true, "allowPattern": "^[a-z]+(_[a-z]+)+$" }], "eol-last": ["warn", "always"], "eqeqeq": ["warn", "smart"], "func-call-spacing": ["warn", "never"], "function-call-argument-newline": ["warn", "consistent"], "function-paren-newline": ["warn", "consistent"], "implicit-arrow-linebreak": ["warn", "beside"], "indent": ["warn", 2, { "SwitchCase": 1 }], "key-spacing": ["warn", { "beforeColon": false, "afterColon": true, "mode": "strict" }], "keyword-spacing": ["warn", { "before": true, "after": true }], "lines-between-class-members": ["warn", "always"], "max-len": ["warn", { "code": 120 }], "new-parens": ["warn", "always"], "no-dupe-else-if": "warn", "no-else-return": ["warn", { "allowElseIf": true }], "no-lonely-if": "warn", "no-multi-spaces": "warn", "no-multiple-empty-lines": ["warn", { "max": 1, "maxEOF": 0, "maxBOF": 0 }], "no-trailing-spaces": ["warn", { "skipBlankLines": false, "ignoreComments": false }], "no-unneeded-ternary": "warn", "no-useless-return": "warn", "no-var": "warn", "no-whitespace-before-property": "warn", "no-control-regex": "off", "nonblock-statement-body-position": ["warn", "beside"], "object-curly-newline": ["warn", { "consistent": true }], "object-curly-spacing": ["warn", "always", { "objectsInObjects": true }], "object-property-newline": ["warn", { "allowAllPropertiesOnSameLine": true }], "operator-assignment": "warn", "operator-linebreak": ["warn", "after"], "padded-blocks": ["warn", "never"], "padding-line-between-statements": ["warn", { "blankLine": "always", "prev": "*", "next": "return" }], "prefer-const": "warn", "quote-props": ["warn", "as-needed"], "quotes": ["warn", "single"], "rest-spread-spacing": ["warn", "never"], "semi": ["warn", "always"], "semi-spacing": ["warn", { "before": false, "after": true }], "semi-style": ["warn", "last"], "space-before-blocks": ["warn", "always"], "space-before-function-paren": ["warn", { "named": "never" }], "space-in-parens": ["warn", "never"], "space-infix-ops": "warn", "space-unary-ops": ["warn", { "words": true, "nonwords": false }], "spaced-comment": "warn", "strict": "warn", "switch-colon-spacing": ["warn", { "after": true, "before": false }], "yoda": ["warn", "never"] } }