0.4.3 • Published 2 years ago
@e3o/eslint-config v0.4.3
e3o/eslint-config
List of rules to use when develop products in typescript
Extends
- eslint:recommended
- plugin:@typescript-eslint/recommended
Rules
Main rules
| Rule Name | Rule Severities | Main configuration | Other configuration |
|---|---|---|---|
| indent | off | 2 | { ignoredNodes:'ConditionalExpression', MemberExpression: 1, SwitchCase: 1,} |
| linebreak-style | error | unix | |
| quotes | error | single | { avoidEscape: true } |
| complexity | error | 5 | |
| no-console | error | ||
| no-label-var | error | ||
| eqeqeq | error | ||
| id-denylist | error | data, value, e, cb, callback | |
| id-length | error | ||
| max-classes-per-file | error | 1 | |
| no-else-return | error | { allowElseIf: false } | |
| curly | error | ||
| prefer-template | error | ||
| sort-imports | error | {ignoreCase: false, ignoreDeclarationSort: false, ignoreMemberSort: false, memberSyntaxSortOrder: 'none', 'all', 'multiple', 'single', allowSeparatedGroups: false,} | |
| prefer-destructuring | error | { array: true, object: true,} | { enforceForRenamedProperties: false, } |
| object-shorthand | error | always |
Plugin Rules
| Rule Name | Rule Severities | Main configuration | Other configuration |
|---|---|---|---|
| @typescript-eslint/no-explicit-any | error | ||
| @typescript-eslint/explicit-function-return-type | error |