Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Docs should mention defaults #802

Open
lonix1 opened this issue Mar 25, 2019 · 2 comments
Open

[Feature Request] Docs should mention defaults #802

lonix1 opened this issue Mar 25, 2019 · 2 comments

Comments

@lonix1
Copy link

lonix1 commented Mar 25, 2019

The docs pages for the rules should mention each rule's default.

Otherwise the only way to know is to inspect the code.

@TrevorKarjanis
Copy link

TrevorKarjanis commented Apr 3, 2019

Unfortunately, TSLint doesn't do this for any rule. No rules are enabled by default with ESLint, so I'd imagine that is the case for TSLint and codelyzer. Instead, they can come with predefined configurations, like "recommended" used with TSLint and ESLint. The codelyzer recommended configuration is provided in the README. However, codelyzer is integrated with Angular CLI and generates default configuration in workspace/tslint.json and workspace/src/tslint.json. Maybe they intend to expand on this approach?

@mercuriete
Copy link

Hi, not sure if my request is similar to this but I am expect something like "extends": "tslint:recommended",

So please implement a tslint profile for extending the default rule set.

example of usage:

  "extends": [
    "tslint:recommended"
    "codelyzer:recommended"
  ]

So that we can add automatically more rules on each upgrade of the dependency.

Thanks for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants