Skip to content

Instantly share code, notes, and snippets.

@DaSchTour
Created September 23, 2022 11:46
Show Gist options
  • Save DaSchTour/56db06f75fec91079e679b0f5c5fd80c to your computer and use it in GitHub Desktop.
Save DaSchTour/56db06f75fec91079e679b0f5c5fd80c to your computer and use it in GitHub Desktop.
Important Eslint rules
"new-parens": "error",
"no-implicit-coercion": "error",
"prefer-template": "error",
"linebreak-style": ["error", "unix"],
"object-shorthand": ["error", "always"],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/consistent-generic-constructors": "error",
// no-shadow
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
// quotes
"quotes": "off",
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
// semi
"no-extra-semi": "off",
"@typescript-eslint/semi": "error",
// no redeclare
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment