Skip to content

Commit

Permalink
fix(eslint-config): remove react display-name rule options
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurchishin committed Oct 15, 2023
1 parent ef44946 commit 73b734d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@
"access": "public",
"@anylint:registry": "https://registry.npmjs.org"
}
}
}
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@
"access": "public",
"@anylint:registry": "https://registry.npmjs.org"
}
}
}
8 changes: 1 addition & 7 deletions packages/eslint-config/src/shared/react.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ module.exports = {
'react/button-has-type': 'error',
'react/default-props-match-prop-types': 'error',
'react/destructuring-assignment': ['error', 'always'],
'react/display-name': [
'error',
{
ignoreTranspilerName: false,
checkContextObjects: false, // Maybe true?
},
],
'react/display-name': 'error',
'react/forbid-component-props': 'off',
'react/forbid-dom-props': 'off',
'react/forbid-elements': 'off',
Expand Down
2 changes: 1 addition & 1 deletion packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"access": "public",
"@anylint:registry": "https://registry.npmjs.org"
}
}
}

0 comments on commit 73b734d

Please sign in to comment.