This repository was archived by the owner on Nov 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5677980
feat: Use react 16
zombieJ f5e7384
rename as ts
zombieJ 5893007
add resize-observer-polyfill
zombieJ 38e837b
refactor
zombieJ 8d0b84c
update test case
zombieJ 92b461b
update node version
zombieJ 6d801cb
update test case name
zombieJ 8defe12
rm useless script
zombieJ 44be557
update ci
zombieJ 18accbe
fix LGTM
zombieJ 1728254
update readme
zombieJ 39131a7
add cov script
zombieJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| const base = require('@umijs/fabric/dist/eslint'); | ||
|
|
||
| module.exports = { | ||
| ...base, | ||
| rules: { | ||
| ...base.rules, | ||
| 'react/no-find-dom-node': 0, | ||
| 'jsx-a11y/label-has-associated-control': 0, | ||
| 'jsx-a11y/label-has-for': 0, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这两个也没必要关。
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. example 里识别的有问题,label 嵌套了 input 它认不出来。 |
||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| export default { | ||
| cjs: 'babel', | ||
| esm: { type: 'babel', importLibToEs: true }, | ||
| preCommit: { | ||
| eslint: true, | ||
| prettier: true, | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| .storybook | ||
| *.iml | ||
| *.log | ||
| .idea/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,17 @@ | ||
| language: node_js | ||
|
|
||
| sudo: false | ||
|
|
||
| notifications: | ||
| email: | ||
| - yiminghe@gmail.com | ||
|
|
||
| node_js: | ||
| - 6.10.0 | ||
| - 10 | ||
|
|
||
| before_install: | ||
| - | | ||
| if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/' | ||
| then | ||
| echo "Only docs were updated, stopping build process." | ||
| exit | ||
| fi | ||
| phantomjs --version | ||
| script: | ||
| - | | ||
| if [ "$TEST_TYPE" = test ]; then | ||
| npm test | ||
| npm run coverage && \ | ||
| bash <(curl -s https://codecov.io/bash) | ||
| else | ||
| npm run $TEST_TYPE | ||
| fi | ||
| env: | ||
| matrix: | ||
| - TEST_TYPE=lint | ||
| - TEST_TYPE=test | ||
| - TEST_TYPE=coverage | ||
| - TEST_TYPE=test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module.exports = { | ||
| snapshotSerializers: [require.resolve('enzyme-to-json/serializer')], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "version": 2, | ||
| "name": "rc-align", | ||
| "builds": [ | ||
| { | ||
| "src": "package.json", | ||
| "use": "@now/static-build", | ||
| "config": { "distDir": ".doc" } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是不是不用关。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
它纯粹是根据名字来的,会把 rc-util 的
findDOMNode当成 react 的