const commonRules = require("./rules");

module.exports = {
    parser: "babel-eslint",
    plugins: ["react", "babel", "flowtype", "prettier", "import"],
    env: {
        browser: true,
        es6: true,
        jest: true,
        node: true,
    },
    parserOptions: {
        sourceType: "module",
        ecmaFeatures: {
            modules: true,
            jsx: true,
        },
    },
    settings: {
        flowtype: {
            onlyFilesWithFlowAnnotation: true,
        },
        react: {
            version: "detect",
        },
    },
    rules: Object.assign(
        {},
        {
            "prettier/prettier": [
                "error",
                {
                    printWidth: 120,
                    tabWidth: 4,
                    useTabs: false,
                    semi: true,
                    singleQuote: false,
                    trailingComma: "es5",
                    bracketSpacing: true,
                    jsxBracketSameLine: true,
                },
            ],
        },
        commonRules,
        { "flowtype/require-return-type": ["warn", "always", { excludeArrowFunctions: true }] }
    ),
};

@@ -1144,16 +1144,55 @@
  true %7D%5D
+ %7D,%0A        %7B %22react/prop-types%22: %22off%22
  %7D%0A    )

Disable prop-types rule because Flow