Repository navigation
tslint to eslint migration - #87644
Conversation
|
Just curious, what's the reason behind the move? |
|
Benjamin Staneck (@Stanzilla) The TSLint project is winding down and will no longer be maintained in the future. See palantir/tslint#4534. |
|
Pushed 7909462 to move the globals rules (node.js, DOM) into a custom solution that uses the TS API directly. I could not get that to work with a pure Btw there is a eslint rule for "new Buffer": https://github.com/eslint/eslint/blob/master/lib/rules/no-buffer-constructor.js |
|
current rule mapping/migration state (tslint <=> eslint) 👌
|
| let logger = this.loggers.get(resource.toString()); | ||
| if (!logger) { | ||
| logger = new BufferLogService, this.logService.getLevel(); | ||
| logger = new BufferLogService(this.logService.getLevel()); |
There was a problem hiding this comment.
There was a problem hiding this comment.
Good catch by the linter
| const actions: INotificationActions = { primary: primaryActions, secondary: secondaryActions }; | ||
| const handle = this.notificationService.notify({ severity: Severity.Error, message, actions }); | ||
| Event.once(handle.onDidClose)(() => { dispose(primaryActions), dispose(secondaryActions); }); | ||
| Event.once(handle.onDidClose)(() => { dispose(primaryActions); dispose(secondaryActions); }); |
There was a problem hiding this comment.
|
I think |
This PR explores to migrate our custom tslint rules to eslint rules and adopts eslint in general.
Rules that we have today and that need migration
noDomGlobalsRule.ts(moved to custom solution)noNodejsGlobalsRule.ts(moved to custom solution)Other work packages that are required to migrate away from eslint
investigate using https://eslint.org/docs/rules/no-restricted-imports(our needs are too special)import foo = require('...')