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