-
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use
father
and fix lint (#287)
* init father * clean up * clean deps * update to storybook * fix selectKeys lint * fix example lint * fix util lint * fix inner lint * fix subPopup lint * fix class define * all lint * fix ci * revert export * add miss typo * inline isMobile
- Loading branch information
Showing
34 changed files
with
619 additions
and
474 deletions.
There are no files selected for viewing
This file contains 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,18 @@ | ||
const base = require('@umijs/fabric/dist/eslint'); | ||
|
||
module.exports = { | ||
...base, | ||
rules: { | ||
...base.rules, | ||
'import/no-named-as-default': 0, | ||
'no-template-curly-in-string': 0, | ||
'prefer-promise-reject-errors': 0, | ||
'react/no-array-index-key': 0, | ||
'react/require-default-props': 0, | ||
'react/sort-comp': 0, | ||
'react/no-find-dom-node': 1, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'jsx-a11y/label-has-associated-control': 0, | ||
'jsx-a11y/label-has-for': 0, | ||
}, | ||
}; |
This file contains 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 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 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,32 +1,17 @@ | ||
language: node_js | ||
|
||
sudo: false | ||
|
||
notifications: | ||
email: | ||
- [email protected] | ||
|
||
node_js: | ||
- 6.0.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 | ||
npm install [email protected] -g | ||
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 was deleted.
Oops, something went wrong.
This file contains 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
Empty file.
Oops, something went wrong.
b5e3088
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.
Successfully deployed to following URLs: