Skip to content

Commit

Permalink
Merge pull request #15 from weishaodaren/react/display-name
Browse files Browse the repository at this point in the history
disable displayName
  • Loading branch information
weishaodaren authored Jan 31, 2023
2 parents 45d9828 + a51eecf commit b0c50a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-polaris",
"version": "1.2.2",
"version": "1.3.0",
"description": "极星代码规范 ⭐️",
"main": "index.js",
"publishConfig": {
Expand Down
2 changes: 2 additions & 0 deletions rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module.exports = {

// https://github.com/jsx-eslint/eslint-plugin-react#list-of-supported-rules
rules: {
// 关闭展示displayName
"react/display-name": 0,
// 强制使用默认值
"react/require-default-props": 2,
// 强制使用与默认类型相同的默认值
Expand Down

0 comments on commit b0c50a2

Please sign in to comment.