This commit is contained in:
@ -1,10 +1,13 @@
|
||||
{
|
||||
"root": true,
|
||||
"extends": ["html-validate:recommended"],
|
||||
"extends": [],
|
||||
"rules": {
|
||||
"require-meta-charset": "error",
|
||||
"heading-level": "error",
|
||||
"require-img-alt": "error",
|
||||
"no-inline-style": "error",
|
||||
"long-title": ["error", { "maxLength": 60 }]
|
||||
"element-permitted-content": "error",
|
||||
"require-meta-title": "error",
|
||||
"require-meta-description": "error",
|
||||
"no-duplicate-id": "error",
|
||||
"prefer-native-element": "error"
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +1,7 @@
|
||||
import { globalIgnores } from "eslint/config";
|
||||
import {
|
||||
defineConfigWithVueTs,
|
||||
vueTsConfigs,
|
||||
} from "@vue/eslint-config-typescript";
|
||||
import pluginVue from "eslint-plugin-vue";
|
||||
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
|
||||
import { globalIgnores } from 'eslint/config'
|
||||
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
|
||||
import pluginVue from 'eslint-plugin-vue'
|
||||
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
|
||||
|
||||
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
|
||||
// import { configureVueProject } from '@vue/eslint-config-typescript'
|
||||
@ -13,23 +10,19 @@ import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
|
||||
|
||||
export default defineConfigWithVueTs(
|
||||
{
|
||||
name: "app/files-to-lint",
|
||||
files: ["**/*.{ts,mts,tsx,vue}"],
|
||||
name: 'app/files-to-lint',
|
||||
files: ['**/*.{ts,mts,tsx,vue}'],
|
||||
},
|
||||
|
||||
globalIgnores([
|
||||
"**/dist/**",
|
||||
"**/dist-ssr/**",
|
||||
"**/coverage/**",
|
||||
"./src/generated/**",
|
||||
]),
|
||||
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**', './src/generated/**']),
|
||||
|
||||
pluginVue.configs["flat/essential"],
|
||||
pluginVue.configs['flat/essential'],
|
||||
vueTsConfigs.recommended,
|
||||
skipFormatting,
|
||||
{
|
||||
rules: {
|
||||
"vue/multi-word-component-names": "off",
|
||||
'vue/multi-word-component-names': 'off',
|
||||
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
|
||||
},
|
||||
}
|
||||
);
|
||||
},
|
||||
)
|
||||
|
Reference in New Issue
Block a user