Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
// 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"],
rules,
settings: reactAppConfig.settings,
env: reactAppConfig.env,
root: reactAppConfig.root,
parserOptions: reactAppConfig.parserOptions,
overrides: reactAppConfig.overrides
};