Skip to content

Commit

Permalink
fix: 修改rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dxhuii committed Oct 9, 2023
1 parent 053cf22 commit 497e6f0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@ export function dxhuii(options: OptionsConfig & { react?: boolean } & ConfigItem
rules: {
'no-multi-str': 'off', // 允许多行字符串
'no-restricted-globals': 'off', // 允许使用全局变量
'antfu/no-cjs-exports': 'off', // 允许使用 commonjs 的 exports
'node/prefer-global/process': 'off', // 允许使用 process

'antfu/consistent-list-newline': 'off', // 允许在数组元素之间换行

'arrow-parens': ['error', 'as-needed'], // 箭头函数参数只有一个时不需要括号

'import/prefer-default-export': 'off', // 允许使用 export
Expand Down

0 comments on commit 497e6f0

Please sign in to comment.