wip: Discord Server Rules page, fixed ESLint restriction on link components, added linking to specific element ids on internal routes

This commit is contained in:
Benjamin Singleton 2026-02-13 23:55:39 -06:00
parent de86791e2a
commit feacb9b754
11 changed files with 350 additions and 42 deletions

View file

@ -14,6 +14,7 @@ export default defineConfig([
...vue.configs["flat/essential"],
],
files: ["./src/**/*.{js,ts,vue}"],
plugins: { vue },
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
@ -27,11 +28,11 @@ export default defineConfig([
},
},
rules: {
"vue/no-restricted-component-names": [
"vue/no-restricted-html-elements": [
"error",
{
name: "RouterLink",
message: "Use SmartLink instead of RouterLink.",
element: ["a", "RouterLink"],
message: "Use <SmartLink> instead",
},
],
// allow interfaces to only extend another interface without adding properties