How to use the eslint-config-react-app.settings function in eslint-config-react-app

To help you get started, we’ve selected a few eslint-config-react-app examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mmazzarolo / eslint-plugin-react-app / src / config.js View on Github external

// Renames the plugins rules prefixing them with 'react-app'
Object.keys(reactAppConfig.rules).forEach(ruleName => {
  if (isPluginRule(ruleName)) {
    rules[`react-app/${ruleName}`] = reactAppConfig.rules[ruleName];
  } else {
    rules[ruleName] = reactAppConfig.rules[ruleName];

module.exports = {
  parser: reactAppConfig.parser,
  plugins: ["react-app"],
  settings: reactAppConfig.settings,
  env: reactAppConfig.env,
  root: reactAppConfig.root,
  parserOptions: reactAppConfig.parserOptions,
  overrides: reactAppConfig.overrides


ESLint configuration used by Create React App

Latest version published 2 years ago

Package Health Score

83 / 100
Full package analysis