fix: 修改eslint规则防止生成的js代码报错

This commit is contained in:
dayjoy
2024-11-21 09:57:14 +08:00
parent 0717adfa87
commit 5628e35758
2 changed files with 7 additions and 1 deletions

View File

@@ -25,6 +25,13 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 'off',
},
overrides: [
{
files: ['**/*.js'],
rules: {
'react/prop-types': 'off',
'react/no-children-prop': 'off',
},
},
{
files: ['**/*.json'],
rules: {

View File

@@ -62,7 +62,6 @@ interface Meta {
search当前页面搜索参数
location当前页面路由信息
navigate页面跳转方法用法navigate('/path')
tocoStore全局 store
tocoServices页面的请求
tocoRefs页面上所有带 id 组件的 refs
tocoModals页面上所有带 id 弹窗的 refs