Created
March 12, 2018 17:47
-
-
Save mattbanks/8a5510d916308cbf9de2a9f61a1b8f02 to your computer and use it in GitHub Desktop.
base eslintrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment