|
1 | | -import { globalIgnores } from 'eslint/config' |
2 | | -import pluginVue from 'eslint-plugin-vue' |
3 | | -import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript' |
4 | | -import skipFormatting from 'eslint-config-prettier/flat' |
| 1 | +import { globalIgnores } from "eslint/config"; |
| 2 | +import pluginVue from "eslint-plugin-vue"; |
| 3 | +import { |
| 4 | + defineConfigWithVueTs, |
| 5 | + vueTsConfigs, |
| 6 | +} from "@vue/eslint-config-typescript"; |
| 7 | +import skipFormatting from "eslint-config-prettier/flat"; |
5 | 8 |
|
6 | 9 | export default defineConfigWithVueTs( |
7 | 10 | { |
8 | | - name: 'app/files-to-lint', |
9 | | - files: ['**/*.{vue,ts,mts,tsx}'], |
| 11 | + name: "app/files-to-lint", |
| 12 | + files: ["**/*.{vue,ts,mts,tsx}"], |
10 | 13 | }, |
11 | | - globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']), |
12 | | - ...pluginVue.configs['flat/essential'], |
| 14 | + globalIgnores(["**/dist/**", "**/dist-ssr/**", "**/coverage/**"]), |
| 15 | + ...pluginVue.configs["flat/essential"], |
13 | 16 | vueTsConfigs.recommended, |
14 | 17 | { |
15 | 18 | rules: { |
16 | 19 | // allowModifiers: Vuetify uses dot notation for column slots (v-slot:item.columnName) |
17 | | - 'vue/valid-v-slot': ['error', { allowModifiers: true }], |
| 20 | + "vue/valid-v-slot": ["error", { allowModifiers: true }], |
18 | 21 | // `any` is used everywhere and will be difficult to eliminate |
19 | | - '@typescript-eslint/no-explicit-any': 'off', |
| 22 | + "@typescript-eslint/no-explicit-any": "off", |
20 | 23 | // Temporary ignores until rules can be fixed |
21 | | - 'vue/require-v-for-key': 'off', |
22 | | - 'vue/valid-v-for': 'off', |
23 | | - 'vue/return-in-computed-property': 'off', |
24 | | - 'vue/no-ref-as-operand': 'off', |
25 | | - 'vue/no-side-effects-in-computed-properties': 'off', |
26 | | - 'vue/no-async-in-computed-properties': 'off', |
27 | | - 'vue/no-use-v-if-with-v-for': 'off', |
| 24 | + "vue/require-v-for-key": "off", |
| 25 | + "vue/valid-v-for": "off", |
| 26 | + "vue/return-in-computed-property": "off", |
| 27 | + "vue/no-ref-as-operand": "off", |
| 28 | + "vue/no-side-effects-in-computed-properties": "off", |
| 29 | + "vue/no-async-in-computed-properties": "off", |
| 30 | + "vue/no-use-v-if-with-v-for": "off", |
28 | 31 | }, |
29 | 32 | }, |
30 | 33 | skipFormatting, |
31 | | -) |
| 34 | +); |
0 commit comments