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

replace tslint with eslint for typescript #10900

Merged
merged 16 commits into from
Jan 25, 2024
Merged

replace tslint with eslint for typescript #10900

merged 16 commits into from
Jan 25, 2024

Conversation

aaronmgdr
Copy link
Member

@aaronmgdr aaronmgdr commented Jan 23, 2024

Description

goal here is just the switch over with minimal changes. therefore some rules are off and some script files are ignored as it does not seem that necessary to fix 100 lint errors in a script that is known to work and which i may actually introduce bugs in.

  • remove many unneeded awaits and asyncs
  • change console logs to console info
  • fix some interprolated values which could have been [object object]
  • add missing dependencies

also

bump to typescript 5

Tested

linted till green

Related issues

Backwards compatibility

yes

Documentation

n/a

@aaronmgdr aaronmgdr requested review from a team as code owners January 23, 2024 10:29
@aaronmgdr aaronmgdr requested review from a team and lvpeschke January 23, 2024 10:29
Copy link

socket-security bot commented Jan 23, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@eslint-community/eslint-utils@4.4.0 Transitive: environment, eval, filesystem, shell, unsafe +90 10.6 MB eslint-community-bot
npm/@eslint-community/regexpp@4.10.0 None 0 431 kB eslint-community-bot
npm/@tsconfig/recommended@1.0.3 None 0 2.37 kB typescript-deploys
npm/@typescript-eslint/eslint-plugin@6.19.0 Transitive: environment, eval, filesystem, shell, unsafe +118 48.4 MB jameshenry
npm/@typescript-eslint/parser@6.19.0 Transitive: environment, eval, filesystem, shell, unsafe +113 45.3 MB jameshenry
npm/acorn@8.11.3 None 0 531 kB marijn
npm/define-data-property@1.1.1 Transitive: eval +7 156 kB ljharb
npm/es-abstract@1.22.3 Transitive: eval +59 4.34 MB ljharb
npm/eslint-plugin-import@2.29.1 filesystem, unsafe Transitive: environment, eval, shell +173 17.2 MB ljharb
npm/eslint-visitor-keys@3.4.3 None 0 32.3 kB eslintbot
npm/eslint@8.56.0 environment, filesystem Transitive: eval, shell, unsafe +90 10.6 MB eslintbot
npm/espree@9.6.1 None +3 662 kB eslintbot
npm/function.prototype.name@1.1.6 Transitive: eval +59 4.34 MB ljharb
npm/get-intrinsic@1.2.2 eval +4 110 kB ljharb
npm/is-core-module@2.13.1 None +1 41.1 kB ljharb
npm/is-typed-array@1.1.12 Transitive: eval +15 304 kB ljharb
npm/keyv@4.5.4 None +1 33.2 kB jaredwray
npm/object-inspect@1.13.1 None 0 97.2 kB ljharb
npm/regexp.prototype.flags@1.5.1 Transitive: eval +14 301 kB ljharb
npm/resolve@1.22.8 environment, filesystem +4 200 kB ljharb
npm/safe-array-concat@1.1.0 Transitive: eval +10 204 kB ljharb
npm/string.prototype.trim@1.2.8 Transitive: eval +59 4.34 MB ljharb
npm/string.prototype.trimend@1.0.7 Transitive: eval +59 4.34 MB ljharb
npm/string.prototype.trimstart@1.0.7 Transitive: eval +59 4.34 MB ljharb
npm/ts-node@10.9.2 environment, filesystem, unsafe +18 35.8 MB blakeembrey
npm/type-check@0.4.0 None +1 57.9 kB gkz
npm/which-typed-array@1.1.13 Transitive: eval +14 287 kB ljharb

🚮 Removed packages: npm/es-abstract@1.21.2, npm/get-intrinsic@1.2.0, npm/is-core-module@2.12.0, npm/patch-package@6.5.1, npm/regexp.prototype.flags@1.5.0, npm/resolve@1.22.2, npm/string.prototype.trim@1.2.7, npm/tslint-config-prettier@1.18.0, npm/tslint-eslint-rules@5.4.0, npm/tslint-microsoft-contrib@6.2.0, npm/tslint-react-hooks@2.2.2, npm/tslint-react@4.2.0, npm/tslint@5.20.1, npm/typescript-tslint-plugin@0.5.5, npm/typescript@4.4.3, npm/typescript@4.7.4

View full report↗︎

Copy link
Contributor

@soloseng soloseng left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

@lvpeschke lvpeschke left a comment

Choose a reason for hiding this comment

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

🚀

@aaronmgdr
Copy link
Member Author

i thought it was ready because the linting passed but now the build fails. down the hole i've gone

* remove many unneeded awaits and asyncs
* change console logs to console info
* ignore some more offensive files
* fix some interprolated values which could have been [object object]
* add missing dependencies
* try to have minimal changes
Fix env tests use of typescript 4.0
for protocol package cannot extend because of bug in ts-node so instead just copy the config.
remove tslint.json files
try es6 target (why not?)

add package validation
@aaronmgdr aaronmgdr mentioned this pull request Jan 25, 2024
…ng all the bugs jut keep as is

and sourcemaps are not needed for this package
@aaronmgdr aaronmgdr enabled auto-merge (squash) January 25, 2024 16:31
@aaronmgdr aaronmgdr merged commit c97a9fc into master Jan 25, 2024
25 checks passed
@aaronmgdr aaronmgdr deleted the aaronmgdr/eslint branch January 25, 2024 16:44
lvpeschke pushed a commit that referenced this pull request Feb 26, 2024
* replace tslint with eslint for typescript

* remove many unneeded awaits and asyncs
* change console logs to console info
* ignore some more offensive files
* fix some interprolated values which could have been [object object]
* add missing dependencies
* try to have minimal changes

* use tsconfig/recommended instead of our tsconfig library as base.
Fix env tests use of typescript 4.0
for protocol package cannot extend because of bug in ts-node so instead just copy the config.
remove tslint.json files

* fix lint again

* dont add strict mode, its too brutal,

* add package validation

* help out future devs with instructions on how to fix error

* it works on my machine ok

* trust but verify. but dont actually trust

* use latest ts-node AND always run yarn ts-node to ensure the project one is used.

* removing patch-package since the only remaining place it was used was had been for tslint

* most of us dont need to decrypt to dont try automatically

* i think running in yarn added extra output that broke gh action so try this otherwise revert

* structs fro sol contracts are returned as objects with named keys (as well as number keys) but NOT as arrays.
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