Skip to content

Commit 6a0b0a5

Browse files
committed
lint error fix for vue files
1 parent 5f79c99 commit 6a0b0a5

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { defineConfig, globalIgnores } from 'eslint/config'
2+
import globals from 'globals'
3+
import js from '@eslint/js'
4+
import pluginVue from 'eslint-plugin-vue'
5+
6+
export default defineConfig([
7+
{
8+
name: 'app/files-to-lint',
9+
files: ['**/*.{js,mjs,jsx,vue}'],
10+
},
11+
12+
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
13+
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.browser,
18+
},
19+
},
20+
},
21+
22+
js.configs.recommended,
23+
...pluginVue.configs['flat/essential'],
24+
25+
{
26+
name: 'disable-unused-vars-in-vue',
27+
files: ['**/*.vue'],
28+
rules: {
29+
'no-unused-vars': 'off',
30+
},
31+
},
32+
])

packages/devextreme-cli/src/templates/vue-v3/application/src/components/theme-switcher.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
</template>
99

1010
<script setup>
11-
/* eslint-disable */
1211
import { DxButton } from 'devextreme-vue/button';
1312
import { themeService } from '../theme-service';
1413
@@ -17,5 +16,4 @@ const currentTheme = themeService.currentTheme;
1716
function onClickButton() {
1817
themeService.switchAppTheme();
1918
}
20-
/* eslint-enable */
2119
</script>

0 commit comments

Comments
 (0)