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

Migrate from tslint #33826

Merged
merged 41 commits into from Apr 5, 2019
Merged

Migrate from tslint #33826

merged 41 commits into from Apr 5, 2019

Conversation

mistic
Copy link
Member

@mistic mistic commented Mar 26, 2019

We are moving away from tslint to the typescript plugin for eslint. That would help us to keep moving on the effort of simplify our tooling removing one more dependency.

Note that I tried to migrate all the legacy tslint rules we were using before to their counterparts on eslint. It was possible to do this in the major part of the rules, the exceptions were evaluated and we just drop them as they were not a blocker:

Useful tools:

It also solves #34517

@mistic mistic requested a review from spalger March 26, 2019 03:32
@elasticmachine

This comment has been minimized.

@elasticmachine

This comment has been minimized.

@elasticmachine

This comment has been minimized.

@elasticmachine

This comment has been minimized.

@mistic mistic added the non-issue Indicates to automation that a pull request should not appear in the release notes label Apr 4, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mistic mistic added the chore label Apr 4, 2019
Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

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

I can confirm performance issues are fixed now 👍

Copy link
Contributor

@w33ble w33ble left a comment

Choose a reason for hiding this comment

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

Exciting change! Everything looks good in Canvas as far as I can tell.

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

One question, otherwise LGTM

.eslintrc.js Outdated Show resolved Hide resolved
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mistic mistic merged commit ed795d2 into elastic:master Apr 5, 2019
@mistic
Copy link
Member Author

mistic commented Apr 5, 2019

7.x: f062c97

@mshustov mshustov mentioned this pull request Apr 8, 2019
1 task
weltenwort added a commit to weltenwort/kibana that referenced this pull request Apr 11, 2019
…4942)

This adds the generated typescript types to the `.eslintignore` file, because they started causing linter errors after the switch to `eslint` for typescript files (elastic#33826).
weltenwort added a commit that referenced this pull request Apr 11, 2019
This adds the generated typescript types to the `.eslintignore` file, because they started causing linter errors after the switch to `eslint` for typescript files (#33826).
weltenwort added a commit to weltenwort/kibana that referenced this pull request Apr 11, 2019
…4942)

This adds the generated typescript types to the `.eslintignore` file, because they started causing linter errors after the switch to `eslint` for typescript files (elastic#33826).
weltenwort added a commit to weltenwort/kibana that referenced this pull request Apr 11, 2019
…4942)

This adds the generated typescript types to the `.eslintignore` file, because they started causing linter errors after the switch to `eslint` for typescript files (elastic#33826).
chandlerprall pushed a commit to chandlerprall/kibana that referenced this pull request Apr 15, 2019
* chore(NA): remove tslint dependencies, configs and enable eslint typescript parser.

* fix(NA): apply recommend eslint typescript rule.s

* chore(NA): upgrade eslint package versions.

* chore(NA): split javascript eslint config in an override section.

* chore(NA): split all eslint configs with overrides.

* chore(NA): remove missing console.log.

* chore(NA): change eslint splits and overrides order.

* chore(NA): replace tslint disable comments with eslint ones.

* chore(NA): solve eslint typescript errors for elastic/kibana-custom/no-default-export

* chore(NA): fixed multiple eslint typescript rule failures.

* chore(NA): add tarfet folder to the eslint ignore.

* chore(NA): apply prettier rule to ts type file.

* chore(NA): remove last mentions to tslint

* chore(NA): add old defined rules

* chore(NA): missing port rules website

* chore(na): ordered rules

* chore(NA): solved eslint typescript problems.

* chore(NA): fix spaced comment problems.

* chore(NA): fix some more eslint typescript rules: import/order no-empty-interface

* chore(NA): fix last rules and comment out what are the ones still failing.

* chore(NA): comment out camelcase rule.

* chore(NA): regenerate kbn pm dist.

* chore(NA): updated snapshots.

* chore(NA): updated snapshots.

* chore(NA): disabled sort-keys rule.

* chore(NA): remove rule prefer-arrow/prefer-arrow-functions.

* chore(NA): fix for @typescript-eslint/no-var-requires rule.

* chore(NA): fixes for @typescript-eslint/camelcase rule.

* chore(NA): fix typo on eslint config kibana typescript.

Co-Authored-By: mistic <tiagoffcc@hotmail.com>

* chore(NA): remove legacy note after the intellij upgrade to 2019.1

* fix(NA): import order plugin.

* chore(NA): fix ts ignore positions after auto fix.

* fix(NA): performance issue with typescript eslint.

* refact(NA): eslint configs organization.

* chore(NA): apply resticted paths to ts files too.

* chore(NA): split comment from eslint ignore.
chandlerprall pushed a commit to chandlerprall/kibana that referenced this pull request Apr 15, 2019
…4942)

This adds the generated typescript types to the `.eslintignore` file, because they started causing linter errors after the switch to `eslint` for typescript files (elastic#33826).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore non-issue Indicates to automation that a pull request should not appear in the release notes review Team:Operations Team label for Operations Team v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet