matthewmatician/xml-flow

View on GitHub
.eslintrc.json

Summary

Maintainability
Test Coverage
{
  "extends": "eslint:recommended",
  "plugins": [ "mocha" ],
  "env": {
    "es6": true,
    "node": true
  },
  "rules": {
    "mocha/no-exclusive-tests": 2,
    "mocha/no-skipped-tests": 1,
    "mocha/no-global-tests": 2,
    "mocha/no-top-level-hooks": 2,
    "mocha/no-sibling-hooks": 2,
    "mocha/no-identical-title": 2,
    "mocha/handle-done-callback": 2,
    "mocha/no-return-and-callback": 2,

    "complexity": [1, {"max": 9}],
    "eqeqeq": [1, "smart"],
    "implicit-arrow-linebreak": 1,
    "no-console": [2, { "allow": ["warn", "error"]}],
    "no-const-assign": 2,
    "no-eq-null": 0,
    "no-useless-escape": 0,

    "no-implicit-coercion": 1,
    "no-process-env": 2,
    "no-self-assign": 2,
    "no-unmodified-loop-condition": 2,
    "no-useless-return": 2,

    "arrow-body-style": 1,
    "arrow-parens": [1, "as-needed"],
    "arrow-spacing": 2,
    "no-confusing-arrow": [2, { "allowParens": true }],
    "no-duplicate-imports": 2,
    "no-useless-computed-key": 2,
    "no-useless-constructor": 2,
    "no-var": 2,
    "object-shorthand": 1,
    "prefer-arrow-callback": 1,
    "prefer-const": 2,
    "prefer-destructuring": 1,
    "prefer-numeric-literals": 1,
    "prefer-rest-params": 2,
    "prefer-spread": 2,
    "prefer-template": 2,
    "rest-spread-spacing": 2,
    "template-curly-spacing": 2,

    "array-bracket-spacing": [1, "always", { "arraysInArrays": false, "objectsInArrays": false }],
    "block-spacing": 1,
    "brace-style": [1, "1tbs", { "allowSingleLine": true }],
    "camelcase": 1,
    "comma-spacing": 1,
    "comma-style": 1,
    "computed-property-spacing": 1,
    "func-call-spacing": 2,
    "function-paren-newline": [1, "consistent"],
    "implicit-arrow-linebreak": 1,
    "indent": [1, 2, { "SwitchCase": 1 }],
    "key-spacing": 1,
    "keyword-spacing": 1,
    "linebreak-style": 1,
    "max-params": [1, 6],
    "new-cap": 1,
    "new-parens": 1,
    "no-array-constructor": 1,
    "no-lonely-if": 1,
    "no-multi-assign": 1,
    "no-multiple-empty-lines": 1,
    "no-nested-ternary": 1,
    "no-new-object": 1,
    "no-trailing-spaces": 1,
    "no-underscore-dangle": 1,
    "no-unneeded-ternary": 1,
    "no-whitespace-before-property": 1,
    "nonblock-statement-body-position": 1,
    "object-curly-newline": [1, { "consistent": true }],
    "object-curly-spacing": [1, "always", { "arraysInObjects": false, "objectsInObjects": false }],
    "operator-linebreak": [ 1, "before" ],
    "quote-props": [1, "as-needed"],
    "quotes": [1, "single", { "avoidEscape": true }],
    "semi": 1,
    "semi-spacing": 1,
    "space-before-blocks": 1,
    "space-before-function-paren": [1, "never"],
    "space-in-parens": 1,
    "space-infix-ops": 1,
    "space-unary-ops": 1,
    "switch-colon-spacing": 1
  }
}