Skip to content

Instantly share code, notes, and snippets.

@oasido
Last active October 23, 2022 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oasido/859fe3fcb9df0309d239378d19e3f1c1 to your computer and use it in GitHub Desktop.
Save oasido/859fe3fcb9df0309d239378d19e3f1c1 to your computer and use it in GitHub Desktop.
my-eslint-prefrences

When using sindresorhus' eslint-plugin-unicorn package, I tend to use the following rules:

"rules": {
    "unicorn/prevent-abbreviations": [
      "error",
      {
        "replacements": {
          "props": false,
          "idx": false,
          "evt": false,
          "req": false,
          "res": false,
          "env": false,
          "ctx": false,
          "opts": false
        }
      }
    ],
    "unicorn/no-useless-undefined": ["error", { "checkArguments": false }]
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment