fix: 修改eslint规则防止生成的js代码报错
This commit is contained in:
@@ -25,6 +25,13 @@ module.exports = {
|
|||||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['**/*.js'],
|
||||||
|
rules: {
|
||||||
|
'react/prop-types': 'off',
|
||||||
|
'react/no-children-prop': 'off',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
files: ['**/*.json'],
|
files: ['**/*.json'],
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ interface Meta {
|
|||||||
search:当前页面搜索参数
|
search:当前页面搜索参数
|
||||||
location:当前页面路由信息
|
location:当前页面路由信息
|
||||||
navigate:页面跳转方法,用法:navigate('/path')
|
navigate:页面跳转方法,用法:navigate('/path')
|
||||||
tocoStore:全局 store
|
|
||||||
tocoServices:页面的请求
|
tocoServices:页面的请求
|
||||||
tocoRefs:页面上所有带 id 组件的 refs
|
tocoRefs:页面上所有带 id 组件的 refs
|
||||||
tocoModals:页面上所有带 id 弹窗的 refs
|
tocoModals:页面上所有带 id 弹窗的 refs
|
||||||
|
|||||||
Reference in New Issue
Block a user