Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use father #197

Merged
merged 32 commits into from Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,22 @@
const base = require("@umijs/fabric/dist/eslint");

module.exports = {
...base,
rules: {
...base.rules,
"arrow-parens": 0,
"react/no-array-index-key": 0,
"react/sort-comp": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-inferrable-types": 0,
"react/require-default-props": 0,
"no-confusing-arrow": 0,
"import/no-named-as-default-member": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/label-has-associated-control": 0,
"import/no-extraneous-dependencies": 0,
"jsx-a11y/no-noninteractive-tabindex": 0,
"jsx-a11y/no-autofocus": 0,
},
};
9 changes: 9 additions & 0 deletions .fatherrc.js
@@ -0,0 +1,9 @@
export default {
cjs: "babel",
esm: { type: "babel", importLibToEs: true },
preCommit: {
eslint: true,
prettier: true,
},
runtimeHelpers: true,
};
5 changes: 3 additions & 2 deletions .gitignore
Expand Up @@ -25,11 +25,12 @@ build
lib
es
coverage
*.js
*.jsx
*.map
!tests/index.js
!/index*.js
/ios/
/android/
yarn.lock
yarn.lock
.storybook
xrkffgg marked this conversation as resolved.
Show resolved Hide resolved
.doc
6 changes: 6 additions & 0 deletions .prettierrc
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "never",
"printWidth": 100
}
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -30,3 +30,4 @@ env:
- TEST_TYPE=lint
- TEST_TYPE=test
xrkffgg marked this conversation as resolved.
Show resolved Hide resolved
- TEST_TYPE=coverage
- TEST_TYPE=compile
Empty file removed examples/ant-design.html
Empty file.