10.3.0 • Published 4 years ago

@infinumjs/tslint-config-angular v10.3.0

Weekly downloads
50
License
MIT
Repository
github
Last release
4 years ago

Install

npm install --save-dev @infinumjs/tslint-config-angular

Configure

tslint.json:

{
  "extends": "@infinumjs/tslint-config-angular",
  "rules": {
    "directive-selector": [true, "attribute", "my-app", "camelCase"],
    "component-selector": [true, "element", "my-app", "kebab-case"]
  }
}

tsconfig recommendations

We recommend setting some additional tsconfig options which might not be set by default.

Since no-unused-variable tslint rule was deprecated, we recommend setting noUnusedLocals and noUnusedParameters.

Set fullTemplateTypeCheck to true to enable 3rd phase of AOT compilation - template type checking.

Set preserveWhitespaces to false to remove potentially superfluous whitespace characters from the compiled template.

{
  "compilerOptions": {
    "noUnusedLocals": true,
    "noUnusedParameters": true
  },
  "angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "preserveWhitespaces": false
  }
}
10.3.0

4 years ago

10.2.0

4 years ago

10.1.0

4 years ago

10.0.0

4 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-beta

5 years ago