diff --git a/src/configs/javascript.ts b/src/configs/javascript.ts index c0cf308..c060a53 100644 --- a/src/configs/javascript.ts +++ b/src/configs/javascript.ts @@ -14,6 +14,7 @@ function javascriptRules(isInEditor: boolean): TypedFlatConfigItem['rules'] { ignoreDestructuring: true, ignoreImports: false, ignoreGlobals: false, + allow: ['^_'], }, ], 'dot-notation': ['error', { allowKeywords: true }], diff --git a/src/configs/vue.ts b/src/configs/vue.ts index 9b663a5..1dbf537 100644 --- a/src/configs/vue.ts +++ b/src/configs/vue.ts @@ -91,6 +91,7 @@ function vueRules(eslintPlugin: any, options: OptionsVue): TypedFlatConfigItem[' ignoreDestructuring: true, ignoreImports: false, ignoreGlobals: false, + allow: ['^_'], }, ], 'vue/dot-notation': ['error', { allowKeywords: true }],