Skip to content

Commit

Permalink
fix: eslint检查支持数字属性
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Sep 22, 2022
1 parent 9d7f3d9 commit e0e5a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = {
leadingUnderscore: 'allow',
filter: {
// you can expand this regex to add more allowed names
regex: '^__v_.*$',
regex: '^((__v_.*)|[0-9]+)$',
match: false,
},
},
Expand All @@ -81,7 +81,7 @@ module.exports = {
leadingUnderscore: 'allow',
filter: {
// you can expand this regex to add more allowed names
regex: '^__v_.*$',
regex: '^((__v_.*)|[0-9]+)$',
match: false,
},
},
Expand Down

0 comments on commit e0e5a4b

Please sign in to comment.