eslint-plugin-flowtype
eslint-plugin-flowtype copied to clipboard
Flow type linting rules for ESLint.
Babel's eslint parser has been moved into their main monorepo, and republished under a different name: * Deprecation on npm: https://www.npmjs.com/package/babel-eslint * Old repository archived: https://github.com/babel/babel-eslint * New location: https://github.com/babel/babel/tree/main/eslint/babel-eslint-parser...
I want to see a new rule where I can enforce more consistency on an object type. Currently `,` or `;` can be used between object properties, the rule would...
When I have a mostly empty file that looks like this, it should not error ``` // @flow ```
Closes #468 cc: @gajus @angelica-bocanegra
``` type Obj = { test: number }; ``` The above should error and instead be fixed to ``` type Obj { test: number, }; ``` Rule that does patterns...
``` function renderTab(Tab: React.ComponentType): null { return null; } class Foo extends React.Component { renderTab(Tab: React.ComponentType): null { // 'ComponentType' is not defined. eslint(no-undef) return null; } } ``` `eslint`...
Flow version 0.121.0 allows for more specific error suppressions: https://medium.com/flow-type/making-flow-error-suppressions-more-specific-280aa4e3c95c It would be wonderful if we could have a rule which requires these specific error suppressions: * `// $FlowFixMe` would...
ESLint [documentation on `camelcase`](https://eslint.org/docs/rules/camelcase) states: > `"ignoreImports": true` does not check ES2015 imports (but still checks any use of the imports later in the code except function arguments) I think...
It would be nice to have possibility use "excludeMatching" property for "require-valid-file-annotation" rule. What do you think?
The [generic-spacing](https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-generic-spacing) rule was updated with https://github.com/gajus/eslint-plugin-flowtype/pull/430 to not error when using line breaks. However, this only works when there’s no indentation. For example: ```js // Same pattern as in...