semicolon configuration in tslint.json
See original GitHub issueOS?
Linux Ubuntu 16.10
Versions.
1.0.0-beta.32.3
by running ng new
project default configuration for semicolon is :
"semicolon": ["always"]
in visual studio code changing it to "semicolon": ["never"]
does not work but "semicolon": [true, "never"]
works correctly (i did not test it in other code editors)
also there is no option in ng new
for none semicolon style
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
semicolon - Rule
Config · "always" enforces semicolons at the end of every statement. · "never" disallows semicolons at the end of every statement except for...
Read more >How to ignore semicolons with "tslint:recomended"
I just want to ignore them. I can do it by deleting the "extends": "tslint:recommended" but I would like to keep this rule...
Read more >Keep your code shining with these TypeScript configurations ...
TypeScript Lint (TSLint) is a CLI that allows you to configure rules and then validate your files based on those rules. "cyclomatic-complexity": ...
Read more >no way to configure no semicolons after bound class methods ...
Reformat with adding semicolons: no way to configure no semicolons after bound class methods (TSLint 'semicolon' rule). 9. Relates to 1 Is duplicated...
Read more >Migrating from TSLint to ESLint - Ninja Squad
json configuration (like indent , max-line-length , quotemark , semicolon , etc.). I use the following Prettier configuration: singleQuote: true ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
you can use
ng lint
to remove the semicolons if desired.ng new <projectname>
/cd <projectname>
tslint.json
to the following:ng lint --fix
TSLint customization is at the discretion of the user after project creation. There are far too many rules to offer command options-based customization. The tslint fix option should allow you to update your code (within reason) after the rules are changed.