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

Lint setup #30

Open
ZaynJarvis opened this issue Feb 7, 2019 · 3 comments
Open

Lint setup #30

ZaynJarvis opened this issue Feb 7, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ZaynJarvis
Copy link
Member

For auto-formatting issue, I suppose it will be better to setup eslint/prettier/editor config for vscode to enable consistent code linting and auto-formatting.
An example prettier config can be

"prettier": {
    "trailingComma": "all",
    "semi": true,
    "singleQuote": false,
    "endOfLine": "lf"
  },

You can refer to your older editor setup to ensure consistant linting and formating.

@ZaynJarvis ZaynJarvis added the enhancement New feature or request label Feb 7, 2019
@clarencecastillo
Copy link
Member

Actually, there's already a tslint.json file used by TSLint which does that. You can use it together with Prettier but you need to enable prettier.tslintIntegration from the extension's settings.

@ZaynJarvis
Copy link
Member Author

ZaynJarvis commented Feb 12, 2019 via email

@clarencecastillo
Copy link
Member

Ahh, seems like it. Let me investigate more on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants