@bmatei/eslint-config
Version:
Configurations for ESLint.
80 lines (76 loc) • 2.1 kB
YAML
$schema: 'http://json.schemastore.org/tslint'
defaultSeverity: error
rulesDirectory:
- codelyzer
rules:
angular-whitespace: false
template-banana-in-box: true
component-class-suffix: true
component-selector:
- true
- element
- app
- kebab-case
contextual-lifecycle: true
contextual-decorator: true
directive-class-suffix: true
directive-selector:
- true
- attribute
- app
- camelCase
use-component-selector: true
template-i18n: false
import-destructuring-spacing: false
component-max-inline-declarations: true
no-attribute-decorator: true
no-conflicting-lifecycle: true
no-forward-ref: true
no-input-prefix: true
no-input-rename: true
no-lifecycle-call: true
no-output-native: true
no-output-on-prefix: true
no-output-rename: true
no-queries-metadata-property: true
template-no-call-expression: false
no-unused-css: true
no-pipe-impure: true
prefer-inline-decorator:
- true
- ContentChild
- ContentChildren
- ViewChild
- ViewChildren
- HostListener
- HostBinding
prefer-output-readonly: true
template-conditional-complexity:
- true
- 4
template-cyclomatic-complexity:
- true
- 20
template-no-negated-async: true
template-use-track-by-function: true
no-host-metadata-property: true
no-inputs-metadata-property: true
use-lifecycle-interface: true
no-outputs-metadata-property: true
use-pipe-decorator: true
use-pipe-transform-interface: true
use-component-view-encapsulation: true
prefer-on-push-component-change-detection: true
relative-url-prefix: true
template-accessibility-alt-text: true
template-accessibility-elements-content: true
template-accessibility-label-for: true
template-accessibility-tabindex-no-positive: true
template-accessibility-table-scope: true
template-accessibility-valid-aria: true
template-click-events-have-key-events: false
template-mouse-events-have-key-events: false
template-no-autofocus: true
template-no-distracting-elements: true
template-no-any: true
use-injectable-provided-in: false