Skip to content

Commit

Permalink
Override Rules to disabled react changes .eslintrc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Sameem authored Oct 24, 2023
1 parent 7a6a6c6 commit 83fc0ed
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,16 @@ module.exports = {
'no-undef': 'off',
'no-console': [process.env.CI ? 'error' : 'warn', { allow: ['warn', 'error', 'info'] }],
'prettier/prettier': 'error'
}
},
overrides: [
{
files: ["**/*.js"],
options: {
rules: {
// Disable the rule that treats warnings as errors
"react-scripts/treat-warnings-as-errors": "off",
},
},
},
]
}

0 comments on commit 83fc0ed

Please sign in to comment.