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

eslint: add 'no-tabs' rule #8630

Merged
merged 2 commits into from
Oct 26, 2020
Merged

eslint: add 'no-tabs' rule #8630

merged 2 commits into from
Oct 26, 2020

Conversation

vince-fugnitto
Copy link
Member

@vince-fugnitto vince-fugnitto commented Oct 14, 2020

What it does

Fixes: #8632

The following pull-request adds the no-tabs eslint rule in order to enforce spaces versus tabs throughout the project and fixes any occurrences.

We currently define spaces as the proper indentation:

"editor.insertSpaces": true,

indent_style = space

How to test

  • the CI should successfully pass.
  • using tabs versus spaces should result in error markers, and fail the build.

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto [email protected]

@vince-fugnitto vince-fugnitto added quality issues related to code and application quality linting issues related to linting labels Oct 14, 2020
@vince-fugnitto vince-fugnitto self-assigned this Oct 14, 2020
@vince-fugnitto vince-fugnitto force-pushed the vf/eslint-no-tabs branch 2 times, most recently from efc7d4c to 3975e1f Compare October 14, 2020 18:56
The following commit adds the `no-tabs` eslint rule to
enforce that `spaces` should always be used as according to the
project rules, and `editorconfig` properties.

The rule will now display errors for use of `tabs` over `spaces`,
and it ensures that new pull-requests do not break this pattern, and
cause unecessary changes when formatting the documents or performing a
`save`.

Signed-off-by: vince-fugnitto <[email protected]>
The following commit updates the `ignorePatterns` to include `*.d.ts`
files maintained by the project and exclude `lib` folders.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto merged commit b774c55 into master Oct 26, 2020
@vince-fugnitto vince-fugnitto deleted the vf/eslint-no-tabs branch October 26, 2020 18:07
@github-actions github-actions bot added this to the 1.7.0 milestone Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linting issues related to linting quality issues related to code and application quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lint: update ignorePatterns
3 participants