style: fix linting issues met Prettier
This commit is contained in:
parent
12005d197c
commit
45e85233a3
5 changed files with 98 additions and 63 deletions
|
@ -1,9 +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'
|
||||
|
@ -12,29 +12,36 @@ 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}"],
|
||||
rules: {
|
||||
'no-useless-assignment': 'off', // Depend on `no-unused-vars` to catch this
|
||||
"no-useless-assignment": "off", // Depend on `no-unused-vars` to catch this
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: 'app/files-to-ignore',
|
||||
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**', 'prettier.config.js', '**/test-results/**', '**/playwright-report/**'],
|
||||
name: "app/files-to-ignore",
|
||||
ignores: [
|
||||
"**/dist/**",
|
||||
"**/dist-ssr/**",
|
||||
"**/coverage/**",
|
||||
"prettier.config.js",
|
||||
"**/test-results/**",
|
||||
"**/playwright-report/**",
|
||||
],
|
||||
},
|
||||
|
||||
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,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue