mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-11-29 16:36:49 +00:00
### What problem does this PR solve? Feat: Display AvatarUpload and RAGFlowAvatar in Storybook #9914 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
44 lines
908 B
JavaScript
44 lines
908 B
JavaScript
// .eslintrc.js
|
|
module.exports = {
|
|
extends: [require.resolve('umi/eslint'), 'plugin:react-hooks/recommended'],
|
|
plugins: ['check-file'],
|
|
rules: {
|
|
'@typescript-eslint/no-use-before-define': [
|
|
'warn',
|
|
{
|
|
functions: false,
|
|
variables: true,
|
|
},
|
|
],
|
|
'check-file/filename-naming-convention': [
|
|
'error',
|
|
{
|
|
'**/*.{jsx,tsx}': '[a-z0-9.-]*',
|
|
'**/*.{js,ts}': '[a-z0-9.-]*',
|
|
},
|
|
],
|
|
'check-file/folder-naming-convention': [
|
|
'error',
|
|
{
|
|
'src/**/': 'KEBAB_CASE',
|
|
'mocks/*/': 'KEBAB_CASE',
|
|
},
|
|
],
|
|
'react/no-unescaped-entities': [
|
|
'warn',
|
|
{
|
|
forbid: [
|
|
{
|
|
char: "'",
|
|
alternatives: [''', '''],
|
|
},
|
|
{
|
|
char: '"',
|
|
alternatives: ['"', '"'],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|