Skip to content

Commit

Permalink
feat: add ^_ to allowed option for camselcase rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Jiang committed Jun 1, 2024
1 parent 1845cbe commit c5cc50f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/configs/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function javascriptRules(isInEditor: boolean): TypedFlatConfigItem['rules'] {
ignoreDestructuring: true,
ignoreImports: false,
ignoreGlobals: false,
allow: ['^_'],
},
],
'dot-notation': ['error', { allowKeywords: true }],
Expand Down
1 change: 1 addition & 0 deletions src/configs/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function vueRules(eslintPlugin: any, options: OptionsVue): TypedFlatConfigItem['
ignoreDestructuring: true,
ignoreImports: false,
ignoreGlobals: false,
allow: ['^_'],
},
],
'vue/dot-notation': ['error', { allowKeywords: true }],
Expand Down

0 comments on commit c5cc50f

Please sign in to comment.