-
Notifications
You must be signed in to change notification settings - Fork 814
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
fix(lint): move tslint to eslint #892
fix(lint): move tslint to eslint #892
Conversation
GTS version released. Can you update this and get it ready to go out? |
f5cf5bf
to
7214b5c
Compare
yes, I would like to validate https://github.com/open-telemetry/opentelemetry-js/blob/7214b5c64a4d8c9fd40456360df1faca92ff88ae/eslint.rules.js with you before going further I tweaked the circleci file in order to show you that everything is fine, I will finalize the circleci once all packages will be migrated. |
c4b31dc
to
8cec4b6
Compare
Codecov Report
@@ Coverage Diff @@
## master #892 +/- ##
=======================================
Coverage 94.97% 94.97%
=======================================
Files 235 235
Lines 9081 9081
Branches 821 821
=======================================
Hits 8625 8625
Misses 456 456 |
I'm starting other packages |
Wait on that. Other plugins will be moving to the contrib repo. There is already a PR open for that #969 |
1fc51c7
to
808d4a7
Compare
packages/opentelemetry-exporter-collector/src/CollectorExporter.ts
Outdated
Show resolved
Hide resolved
packages/opentelemetry-metrics/src/export/ConsoleMetricExporter.ts
Outdated
Show resolved
Hide resolved
@@ -135,15 +134,13 @@ export class GrpcPlugin extends BasePlugin<grpc> { | |||
plugin._logger.debug('patched gRPC server'); | |||
|
|||
return function register<RequestType, ResponseType>( | |||
// tslint:disable-next-line:no-any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like to enable the no-any rule, even if we have to put ignores in some places. I try to avoid the use of any wherever possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you lint your code, you have warnings... and it shows lines, files and the rule you don't respect. It's less noisy.
packages/opentelemetry-resources/src/platform/node/detectors/EnvDetector.ts
Show resolved
Hide resolved
7077419
to
cc01f4d
Compare
Looks like your build is failed |
Which problem is this PR solving?
I will check #1083
Because
.prettierrc.json
through gts changes a lot of files (from 175 to 328).I have an issue with circleci config where it doesn't see the
.prettierrc.json
(but locally yes).It doesn't fix this comment #892 (comment) even if we add
.prettierrc.json
file through gts (gts and prettier have this rule by default)