Skip to content

Instantly share code, notes, and snippets.

@mattbanks
Created March 12, 2018 17:47
Show Gist options
  • Save mattbanks/8a5510d916308cbf9de2a9f61a1b8f02 to your computer and use it in GitHub Desktop.
Save mattbanks/8a5510d916308cbf9de2a9f61a1b8f02 to your computer and use it in GitHub Desktop.

Revisions

  1. mattbanks created this gist Mar 12, 2018.
    128 changes: 128 additions & 0 deletions .eslintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,128 @@
    {
    "extends": [
    "airbnb-base",
    "prettier"
    ],
    "parserOptions": {
    "ecmaVersion": 8,
    "ecmaFeatures": {
    "classes": true
    }
    },
    "env": {
    "jest": true,
    "node": true
    },
    "rules": {
    "arrow-body-style": [
    "error",
    "as-needed"
    ],
    "comma-dangle": "off",
    "import/extensions": [
    "error",
    {
    "js": "never",
    "json": "never"
    }
    ],
    "jest/no-disabled-tests": "warn",
    "jest/no-focused-tests": "error",
    "jest/no-identical-title": "error",
    "jest/prefer-to-have-length": "warn",
    "jest/prefer-to-be-null": "warn",
    "jest/prefer-to-be-undefined": "warn",
    "jest/valid-expect": "error",
    "max-len": "off",
    "max-nested-callbacks": [
    "warn",
    5
    ],
    "max-params": [
    "warn",
    {
    "max": 4
    }
    ],
    "no-console": "off",
    "no-param-reassign": [
    "error",
    {
    "props": false
    }
    ],
    "no-plusplus": [
    "error",
    {
    "allowForLoopAfterthoughts": true
    }
    ],
    "no-shadow": [
    "error",
    {
    "hoist": "all",
    "allow": [
    "resolve",
    "reject",
    "done",
    "next",
    "err",
    "error"
    ]
    }
    ],
    "no-unused-vars": "error",
    "no-warning-comments": [
    "warn",
    {
    "terms": [
    "todo",
    "fixme",
    "hack"
    ],
    "location": "anywhere"
    }
    ],
    "prettier/prettier": [
    "error",
    {
    "trailingComma": "es5",
    "singleQuote": true,
    "printWidth": 120
    }
    ],
    "quotes": [
    "error",
    "single",
    {
    "avoidEscape": true,
    "allowTemplateLiterals": true
    }
    ],
    "require-jsdoc": [
    "error",
    {
    "require": {
    "FunctionDeclaration": true,
    "MethodDefinition": true,
    "ClassDeclaration": true,
    "ArrowFunctionExpression": true,
    "FunctionExpression": true
    }
    }
    ],
    "space-before-function-paren": "off",
    "valid-jsdoc": [
    "error",
    {
    "requireReturn": false,
    "requireParamDescription": true,
    "requireReturnDescription": true
    }
    ]
    },
    "plugins": [
    "jest",
    "prettier"
    ]
    }