Skip to content

Commit

Permalink
Merge branch 'main' into fix/Carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed May 8, 2023
2 parents b7e76b8 + 1a9805a commit 4f469c5
Show file tree
Hide file tree
Showing 109 changed files with 3,527 additions and 3,335 deletions.
27 changes: 24 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const OFF = 0;
const WARNING = 1;
const ERROR = 2;

/** @type {import('eslint').Linter.Config} */
module.exports = {
env: {
browser: true,
Expand Down Expand Up @@ -45,10 +46,30 @@ module.exports = {
}
},
{
files: ['*Spec.js'],
files: ['*Spec.js', '*Spec.ts', '*Spec.tsx'],
extends: ['plugin:testing-library/react'],
rules: {
'react/prop-types': 'off'
}
'react/prop-types': 'off',
'testing-library/no-node-access': [
'error',
{
allowContainerFirstChild: true
}
],
'testing-library/no-wait-for-multiple-assertions': 'off'
},
settings: {
'testing-library/custom-renders': 'off'
},
overrides: [
{
files: ['*StylesSpec.tsx'],
rules: {
// Node access is unavoidable in style tests as they do test against class selectors
'testing-library/no-node-access': 'off'
}
}
]
}
]
};
2 changes: 1 addition & 1 deletion docs/pages/components/whisper/zh-CN/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ close: (delay?: number) => void

- updatePosition

更新浮层位置
更新浮层位置

```ts
updatePosition: () => void
Expand Down
Loading

0 comments on commit 4f469c5

Please sign in to comment.