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
{{ message }}
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
I'd like to ask what is the status of handling no-undef and no-unused-vars of Flow type annotations directly in babel-eslint. If I understand it correctly, you started to use new eslint's scope API in lib/analyze-scope.js to implement a custom Referencer which should address these issues (or at least no-undef).
With babel-eslint@8.2.3, I identified these snippets as violating no-undef rule:
opaque type Foo = number;
type Foo = { foo<T>(x: T): T };
declare type Foo = number;
declare interface IFoo {}
And these are causing no-unused-vars error:
declare class Foo {}
declare module Foo {}
declare var Foo: number;
declare function foo(): void;
If babel-eslint implements these, corresponding rules in eslint-plugin-flowtype can be deprecated and removed eventually, as mentioned in this issue.
Is this a possibility or I am missing something?
The text was updated successfully, but these errors were encountered:
Hi,
I'd like to ask what is the status of handling
no-undef
andno-unused-vars
of Flow type annotations directly in babel-eslint. If I understand it correctly, you started to use new eslint's scope API in lib/analyze-scope.js to implement a custom Referencer which should address these issues (or at leastno-undef
).With babel-eslint@8.2.3, I identified these snippets as violating
no-undef
rule:And these are causing
no-unused-vars
error:If babel-eslint implements these, corresponding rules in eslint-plugin-flowtype can be deprecated and removed eventually, as mentioned in this issue.
Is this a possibility or I am missing something?
The text was updated successfully, but these errors were encountered: