style: fix linting issues met lint-action
This commit is contained in:
parent
9f88737c48
commit
aeab6aee61
14 changed files with 102 additions and 103 deletions
|
@ -1,12 +1,9 @@
|
|||
import pluginVue from 'eslint-plugin-vue';
|
||||
import {
|
||||
defineConfigWithVueTs,
|
||||
vueTsConfigs,
|
||||
} from '@vue/eslint-config-typescript';
|
||||
import pluginVitest from '@vitest/eslint-plugin';
|
||||
import pluginPlaywright from 'eslint-plugin-playwright';
|
||||
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
|
||||
import rootConfig from '../eslint.config';
|
||||
import pluginVue from "eslint-plugin-vue";
|
||||
import { defineConfigWithVueTs, vueTsConfigs } from "@vue/eslint-config-typescript";
|
||||
import pluginVitest from "@vitest/eslint-plugin";
|
||||
import pluginPlaywright from "eslint-plugin-playwright";
|
||||
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
|
||||
import rootConfig from "../eslint.config";
|
||||
|
||||
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
|
||||
// Import { configureVueProject } from '@vue/eslint-config-typescript'
|
||||
|
@ -15,31 +12,28 @@ import rootConfig from '../eslint.config';
|
|||
|
||||
const vueConfig = defineConfigWithVueTs(
|
||||
{
|
||||
name: 'app/files-to-lint',
|
||||
files: ['**/*.{ts,mts,tsx,vue}'],
|
||||
name: "app/files-to-lint",
|
||||
files: ["**/*.{ts,mts,tsx,vue}"],
|
||||
},
|
||||
|
||||
{
|
||||
name: 'app/files-to-ignore',
|
||||
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
|
||||
name: "app/files-to-ignore",
|
||||
ignores: ["**/dist/**", "**/dist-ssr/**", "**/coverage/**"],
|
||||
},
|
||||
|
||||
pluginVue.configs['flat/essential'],
|
||||
pluginVue.configs["flat/essential"],
|
||||
vueTsConfigs.recommended,
|
||||
|
||||
{
|
||||
...pluginVitest.configs.recommended,
|
||||
files: ['src/**/__tests__/*'],
|
||||
files: ["src/**/__tests__/*"],
|
||||
},
|
||||
|
||||
{
|
||||
...pluginPlaywright.configs['flat/recommended'],
|
||||
files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'],
|
||||
...pluginPlaywright.configs["flat/recommended"],
|
||||
files: ["e2e/**/*.{test,spec}.{js,ts,jsx,tsx}"],
|
||||
},
|
||||
skipFormatting
|
||||
skipFormatting,
|
||||
);
|
||||
|
||||
export default [
|
||||
...rootConfig,
|
||||
...vueConfig
|
||||
]
|
||||
export default [...rootConfig, ...vueConfig];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue