You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm willing to do the work and submit a PR, if there's any interest in this?
Implementation Goals
implement lint warning on @deprecated functions/methods
// @deprecatedfunctionfoo(): void;// @deprecated use baz insteadfunctionbar(): void;/** * @deprecated see http://example.com/1234 */functionbaz(): void;foo();// Warning: 'foo' is deprecated.bar();// Warning: 'bar' is deprecated. use baz insteadbaz();// Warning: 'baz' is deprecated. see http://example.com/1234
implement lint warning on @deprecated type declarations
// @deprecated use Foozy in new code.typeFoo=string;typeFoozy='foo'|'bar'|'baz';declarevar foo: Foo;// Warning: type 'Foo' is deprecated. use Foozy in new code
// from misc.js/** * Collection of misc utility functions * @deprecated use `foo` and `bar` modules instead. */constfoo=()=> ...;constbar=()=> ...;exportdefault{ foo, bar };// from `otherFile.js`importutilsfrom'misc';// Warning: 'misc' is deprecated. use `foo` and `bar` modules instead.
The text was updated successfully, but these errors were encountered:
Cross-posting issue from gajus/eslint-plugin-flowtype#367
Not sure if this is best implemented as part of flow, or eslint-plugin-flowtype?
I'd like to add a new lint to https://flow.org/en/docs/linting/rule-reference/
This is similar to the existing tslint rule
deprecation
:I'm willing to do the work and submit a PR, if there's any interest in this?
Implementation Goals
The text was updated successfully, but these errors were encountered: