Skip to content

Commit b94c557

Browse files
committed
✏️ chore: 添加部分lint规则
1 parent 2dd452b commit b94c557

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module.exports = {
1919
"react/jsx-uses-react": 1, // 防止在 JSX 中使用的变量被错误的标记为未使用
2020
"react/jsx-uses-vars": 1, // 防止 React 被错误的标记为未使用
2121
"react/react-in-jsx-scope": 2, // 使用 JSX 时防止丢失 React
22+
'no-tabs': 'off',
23+
'indent': 'tab'
2224
},
2325
"plugins": [
2426
"react"

0 commit comments

Comments
 (0)