Skip to content

Commit

Permalink
chore: relax eslint rules for spec files so mocks do not require prop…
Browse files Browse the repository at this point in the history
…-type definitions and display names
  • Loading branch information
HendrikThePendric committed Dec 3, 2024
1 parent 8f07597 commit f0fab6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ const { config } = require('@dhis2/cli-style')

module.exports = {
extends: [config.eslintReact, 'plugin:cypress/recommended'],
overrides: [
{
files: ['src/**/*.spec.js'],
rules: {
'react/prop-types': 'off',
'react/display-name': 'off',
},
},
],
}

0 comments on commit f0fab6b

Please sign in to comment.