Skip to content

Instantly share code, notes, and snippets.

@sandalsoft
Last active June 2, 2019 05:26
Show Gist options
  • Select an option

  • Save sandalsoft/197250ca499285eaf92a1ea0d0599f4e to your computer and use it in GitHub Desktop.

Select an option

Save sandalsoft/197250ca499285eaf92a1ea0d0599f4e to your computer and use it in GitHub Desktop.
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"es6": true,
"browser": false,
"node": true,
"mocha": true
},
"plugins": [
"no-loops",
"promise",
"security",
"jest",
"unicorn",
"cleanjs",
"const-immutable"
],
"extends": [
"eslint:recommended",
"plugin:promise/recommended",
"plugin:security/recommended",
"plugin:jest/recommended",
"plugin:unicorn/recommended",
"cleanjs"
],
"rules": {
"no-unused-vars": "warn",
"no-console": "off",
"quotes": ["error", "single"],
"semi": ["warn", "always"],
"no-debugger": "warn",
"no-var": "error",
"no-param-reassign": "error",
"no-undef": "error",
"no-trailing-spaces": "warn",
"eol-last": "off",
"no-underscore-dangle": "warn",
"no-alert": "error",
"no-lone-blocks": "warn",
"arrow-parens": "error",
"no-loops/no-loops": "error",
"promise/prefer-await-to-then": "error",
"promise/prefer-await-to-callbacks": "error",
"security/detect-non-literal-fs-filename": "off",
"const-immutable/no-mutation": "error",
"fp/no-throw": "off",
"better/no-new": "off",
"fp/no-nil": "off",
"fp/no-unused-expression": "off",
"better/explicit-return": "off",
"security/detect-object-injection": "off"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment