How to use eslint-config-react-app
Comprehensive eslint-config-react-app code examples:
How to use eslint-config-react-app.overrides:
28 29 30 31 32 33 34
rules, settings: reactAppConfig.settings, env: reactAppConfig.env, root: reactAppConfig.root, parserOptions: reactAppConfig.parserOptions, overrides: reactAppConfig.overrides };
How to use eslint-config-react-app.plugins:
2 3 4 5 6 7 8 9 10 11 12
const eslintConfigReactApp = require('eslint-config-react-app') // remove flowtype plugin and set ecmaVersion to 2020 module.exports = { ...eslintConfigReactApp, plugins: eslintConfigReactApp.plugins.filter((p) => p !== 'flowtype'), parserOptions: { ...eslintConfigReactApp.parserOptions, ecmaVersion: 2020, },