question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

semicolon configuration in tslint.json

See original GitHub issue

OS?

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:closed
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
clydincommented, Mar 25, 2017

you can use ng lint to remove the semicolons if desired.

  1. ng new <projectname> / cd <projectname>
  2. edit the semicolon rule in tslint.json to the following:
    "semicolon": [
      true,
      "never"
    ],
  1. ng lint --fix
4reactions
clydincommented, Feb 19, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found