Skip to content

Instantly share code, notes, and snippets.

@Shoghy
Created October 1, 2025 20:58
Show Gist options
  • Select an option

  • Save Shoghy/0456fc354b01ffe54794353006579f83 to your computer and use it in GitHub Desktop.

Select an option

Save Shoghy/0456fc354b01ffe54794353006579f83 to your computer and use it in GitHub Desktop.
My eslint rules
{
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/strict-boolean-expressions": "error",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"eqeqeq": "error",
"@typescript-eslint/no-shadow": "warn",
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
"@typescript-eslint/consistent-type-imports": [
"warn",
{ "prefer": "type-imports", "fixStyle": "inline-type-imports" }
],
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-unneeded-ternary": "error",
"@typescript-eslint/no-unnecessary-condition": "error",
"no-var": "error",
"prefer-const": "error",
"max-params": ["error", 3],
"curly": ["error", "multi-line", "consistent"],
"no-fallthrough": "error",
"@typescript-eslint/no-extraneous-class": "error",
"no-restricted-exports": [
"error",
{ "restrictDefaultExports": { "direct": true } }
],
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowIIFEs": true
}
],
"@typescript-eslint/prefer-as-const": "error",
"@typescript-eslint/no-deprecated": "warn"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment