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

Improve README with TSLint migration info #3

Merged
merged 3 commits into from
Jan 12, 2021
Merged

Conversation

BurnedMarshal
Copy link
Collaborator

List of Changes

Add migration section inside README

Motivation and Context

To give more detailed information above migration from TSLint and italia-tslint-rules to ESLint a new section was added with this PR inside the README.
The README now includes the list of rules present into italia-tslint-rules and missing inside @pagopa/eslint-config.

How Has This Been Tested?

No tests needed.

Types of changes

  • Chore
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Question:

Can we enable eslint even on .test.ts files? So we could have the same code style restrictions on tests.

@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Jan 11, 2021

Warnings
⚠️ Please include a Pivotal story at the beginning of the PR title (see below).

Example of PR titles that include pivotal stories:

  • single story: [#123456] my PR title
  • multiple stories: [#123456,#123457,#123458] my PR title

Generated by 🚫 dangerJS against aa8af6e

gunzip
gunzip previously approved these changes Jan 11, 2021
@@ -8,8 +8,48 @@ This package provide the following ESLint custom rules for Typescript projects.

This repository replace [italia-tslint-rules](https://github.com/pagopa/io-tslint-rules) after TSLint deprecation.

The following TSLint rules (included inside `italia-tslint-rules`) are not supported for eslint at the moment and are missing in this package:
```
bool-param-default
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does this list come from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been the list that I've produced working on #1.
The steps that I've followed was:

  1. Follow TSLint to ESLint migration guide on the project io-backend
  2. Running npx tslint-to-eslint-config that produces a list of TSLint rules not available for ESLint (77 rules)
  3. Manually check each one for an alternative ESLint rules/plugins
  4. Verify each alternative ESLint rule/plugin on a testing file

The remaining was this list.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great! can you add this comment to the readme?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b5a9a7c

@gunzip gunzip merged commit bfe2103 into master Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants