Skip to content

Commit 94c2da1

Browse files
xrkffggzombieJkerm1it
authored
chore: use father (#197)
* chore: use father * Update .gitignore * chore: update * update travis * update * modified: package.json * fix typings * modified: package.json * modified: package.json * modified: package.json * modified: package.json * add coverage * update expect * test * fix one test * update ref * update * update test * update test * update test * update test * fix compile * fix transformOrigin * fix input * fix: click mask to close * fix(test): getContainer * fix activeElement * simple tarnsformOrigin * update test * fix overflow * fix eslint Co-authored-by: zombiej <[email protected]> Co-authored-by: Kermit <[email protected]>
1 parent f648087 commit 94c2da1

26 files changed

+943
-979
lines changed

.eslintrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const base = require("@umijs/fabric/dist/eslint");
2+
3+
module.exports = {
4+
...base,
5+
rules: {
6+
...base.rules,
7+
"arrow-parens": 0,
8+
"react/no-array-index-key": 0,
9+
"react/sort-comp": 0,
10+
"@typescript-eslint/no-explicit-any": 0,
11+
"@typescript-eslint/no-empty-interface": 0,
12+
"@typescript-eslint/no-inferrable-types": 0,
13+
"react/require-default-props": 0,
14+
"no-confusing-arrow": 0,
15+
"import/no-named-as-default-member": 0,
16+
"jsx-a11y/label-has-for": 0,
17+
"jsx-a11y/label-has-associated-control": 0,
18+
"import/no-extraneous-dependencies": 0,
19+
"jsx-a11y/no-noninteractive-tabindex": 0,
20+
"jsx-a11y/no-autofocus": 0,
21+
},
22+
};

.fatherrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default {
2+
cjs: "babel",
3+
esm: { type: "babel", importLibToEs: true },
4+
preCommit: {
5+
eslint: true,
6+
prettier: true,
7+
},
8+
runtimeHelpers: true,
9+
};

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ build
2525
lib
2626
es
2727
coverage
28-
*.js
2928
*.jsx
3029
*.map
3130
!tests/index.js
3231
!/index*.js
3332
/ios/
3433
/android/
35-
yarn.lock
34+
yarn.lock
35+
.storybook
36+
.doc

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"proseWrap": "never",
5+
"printWidth": 100
6+
}

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ env:
3030
- TEST_TYPE=lint
3131
- TEST_TYPE=test
3232
- TEST_TYPE=coverage
33+
- TEST_TYPE=compile

examples/ant-design.html

Whitespace-only changes.

0 commit comments

Comments
 (0)