Medium Javascript

Use ESLint with strict configuration

Rule Description

Configure ESLint with recommended rules:
```json
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"no-console": "warn"
}
}
```

Run ESLint in CI and pre-commit hooks.

Included in Rulesets

React Standards
28 rules • 1 standard
View
Vue Best Practices
28 rules • 1 standard
View
Angular Guidelines
28 rules • 1 standard
View
Next.js Patterns
28 rules • 1 standard
View
Express Standards
31 rules • 1 standard
View
JavaScript Guide
28 rules • 2 standards
View
TypeScript Guide
28 rules • 4 standards
View
ESLint Standards
22 rules • 5 standards
View
Code Review Standards
58 rules • 0 standards
View

Add This Rule

Sign in to add this rule to your workspace

Sign in with GitHub

Details

Severity
Medium
Category
Javascript
Used in
9 rulesets