-
Notifications
You must be signed in to change notification settings - Fork 156
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 #85
Changes from 16 commits
ec85e40
8db8fd6
ee5c24a
3403106
669dcb3
13d9f1a
0af9c6a
f49e0c4
e09d599
1f49912
59c3880
837ab7e
9bb7317
713e731
36ba00e
488a798
846a463
b2afc20
29464f4
c6d8a25
8205255
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const base = require('@umijs/fabric/dist/eslint'); | ||
|
||
module.exports = { | ||
...base, | ||
rules: { | ||
...base.rules, | ||
'no-template-curly-in-string': 0, | ||
'prefer-promise-reject-errors': 0, | ||
'react/no-array-index-key': 0, | ||
'react/sort-comp': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'jsx-a11y/role-supports-aria-props': 0, | ||
'jsx-a11y/no-noninteractive-tabindex': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
}, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default { | ||
cjs: "babel", | ||
esm: { type: "babel", importLibToEs: true }, | ||
preCommit: { | ||
eslint: true, | ||
prettier: true, | ||
}, | ||
runtimeHelpers: true, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,7 @@ build | |
lib | ||
es | ||
coverage/ | ||
yarn.lock | ||
yarn.lock | ||
package-lock.json | ||
.storybook | ||
.doc |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"proseWrap": "never", | ||
"printWidth": 100 | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Progress, { Line, Circle } from './src/'; | ||
import Progress, { Line, Circle } from './src'; | ||
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. 这个文件应该没用了 |
||
|
||
export { | ||
Line, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
setupFiles: ["./tests/setup.js"], | ||
snapshotSerializers: [require.resolve("enzyme-to-json/serializer")], | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"version": 2, | ||
"name": "rc-progress", | ||
"builds": [ | ||
{ | ||
"src": "package.json", | ||
"use": "@now/static-build", | ||
"config": { "distDir": ".doc" } | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
global.requestAnimationFrame = cb => setTimeout(cb, 0); | ||
|
||
const Enzyme = require('enzyme'); | ||
const Adapter = require('enzyme-adapter-react-16'); | ||
|
||
Enzyme.configure({ adapter: new Adapter() }); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
// eslint-disable-next-line max-classes-per-file | ||
declare module 'rc-progress' { | ||
export interface RCProgressProps { | ||
strokeWidth?: number; | ||
|
@@ -13,6 +15,7 @@ declare module 'rc-progress' { | |
gapDegree?: number; | ||
gapPosition?: 'top' | 'right' | 'bottom' | 'left'; | ||
} | ||
|
||
export class Line extends React.Component<RCProgressProps, {}> {} | ||
export class Circle extends React.Component<RCProgressProps, {}> {} | ||
} | ||
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. 改成 ts 后应该不需要这个文件了。 |
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.
用例 转了下写法 就下降了 。。。
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.
之前的dialog 和 upload 咋没有覆盖率检查结果显示呢?
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.
版本的原因吧,那2个都是10