mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-05 19:22:07 +00:00
25 lines
746 B
JavaScript
25 lines
746 B
JavaScript
// @ts-check
|
|
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
|
|
import pluginVue from 'eslint-plugin-vue';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
/* Rules used for anything browser related (dashboard and graphics). */
|
|
export default tseslint.config({
|
|
extends: defineConfigWithVueTs(
|
|
pluginVue.configs['flat/recommended'],
|
|
vueTsConfigs.recommended,
|
|
),
|
|
rules: {
|
|
// Allows "main.vue" files to be named as such.
|
|
'vue/multi-word-component-names': ['error', { ignores: ['main'] }],
|
|
},
|
|
files: [
|
|
'src/browser_shared/**/*.ts',
|
|
'src/browser_shared/**/*.vue',
|
|
'src/dashboard/**/*.ts',
|
|
'src/dashboard/**/*.vue',
|
|
'src/graphics/**/*.ts',
|
|
'src/graphics/**/*.vue',
|
|
],
|
|
});
|