Skip to content

ng generate should use tslint configuration #6192

@NCC1701M

Description

@NCC1701M

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X] feature request

Versions.

Software Version
@angular/cli 1.0.2
node 7.10.0
os win32 x64
@angular/animations 4.1.1
@angular/common 4.1.1
@angular/compiler 4.1.1
@angular/core 4.1.1
@angular/forms 4.1.1
@angular/http 4.1.1
@angular/material 2.0.0-beta.3
@angular/platform-browser 4.1.1
@angular/platform-browser-dynamic 4.1.1
@angular/platform-server 4.1.1
@angular/router 4.1.1
@angular/cli 1.0.2
@angular/compiler-cli 4.1.1

Repro steps.

Execute
ng generate component test --module=app.module --spec=false

Behavior

When you open test.component.ts the indention is set to space and the strings are surrounded by '
In my tslint.json I set the following (extraction):

{
   "indent": [
      true,
      "tabs"
   ],
   "quotemark": [
      true,
      "double"
   ],
}

Desired functionality.

ng generate should - at least (further settings are also welcome) - use the indention and quotemarks that are configured in tslint.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenteffort1: easy (hours)featureIssue that requests a new feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions