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:
parent
de86791e2a
commit
feacb9b754
11 changed files with 350 additions and 42 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue