We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59efec6 commit a44fb55Copy full SHA for a44fb55
src/generators/ESLintGenerator.ts
@@ -42,7 +42,15 @@ export class ESLintGenerator extends Generator {
42
packages.push("eslint-plugin-react");
43
}
44
45
- if (userConfigs.typescript) {
+ if (userConfigs.configurations.includes("flow")) {
46
+ configs.extends.push("plugin:flowtype/recommended");
47
+ configs.plugins.push("flowtype");
48
+ configs.rules = {
49
+ ...configs.rules,
50
+ "flowtype/no-types-missing-file-annotation": "off",
51
+ };
52
+ packages.push("eslint-plugin-flowtype");
53
+ } else if (userConfigs.typescript) {
54
configs.extends.push("plugin:@typescript-eslint/recommended");
55
configs.parser = "@typescript-eslint/parser";
56
configs.plugins.push("@typescript-eslint");
0 commit comments