Skip to content

Instantly share code, notes, and snippets.

@fecaps
Last active March 31, 2019 14:24
Show Gist options
  • Save fecaps/a9443d01fd1fc7eaf3840c1679c7a21d to your computer and use it in GitHub Desktop.
Save fecaps/a9443d01fd1fc7eaf3840c1679c7a21d to your computer and use it in GitHub Desktop.
Btime eslint
{
"extends": [
"standard",
"plugin:node/recommended",
"plugin:promise/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"plugins": [
"standard"
],
"rules": {
"camelcase": [
0
],
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"object-curly-spacing": [
"error",
"always"
],
"array-bracket-spacing": [
"error",
"always"
],
"eqeqeq": [
"error",
"always"
],
"no-else-return": [
"error",
{
"allowElseIf": false
}
],
"no-multi-spaces": "error",
"no-new-wrappers": "error",
"no-redeclare": "error",
"no-undef-init": "error",
"no-unused-vars": "error",
"no-use-before-define": [
"error",
{
"functions": false
}
],
"comma-dangle": [
"error",
"never"
],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"comma-style": [
"error",
"last"
],
"no-implied-eval": "error",
"no-mixed-operators": "off",
"node/exports-style": [
"error",
"module.exports"
],
"promise/no-callback-in-promise": "off",
"promise/no-nesting": "off",
"max-len": [
"error",
{
"code": 120,
"tabWidth": 2,
"comments": 100,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"max-lines": [
"error",
{
"max": 350,
"skipBlankLines": true,
"skipComments": true
}
],
"complexity": [
"error",
{
"max": 20
}
],
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": false,
"allowUnboundThis": true
}
],
"arrow-parens": [
2,
"as-needed"
],
"dot-notation": [
"error",
{
"allowKeywords": true
}
],
"require-atomic-updates": "error",
"no-regex-spaces": "error",
"no-template-curly-in-string": "error",
"no-unreachable": "error",
"no-return-await": "error",
"no-return-assign": "error",
"no-unused-expressions": "error",
"no-useless-return": "error",
"no-throw-literal": "error",
"handle-callback-err": "error",
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true,
"mode": "strict"
}
],
"linebreak-style": [
"error",
"unix"
],
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"no-unneeded-ternary": "error",
"prefer-object-spread": "error",
"array-callback-return": "error",
"arrow-body-style": [
"error",
"as-needed"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment