You've already forked AstralRinth
forked from didirus/AstralRinth
* feat: nuxt 3.14 → 3.15.4 * feat: nuxt 3.15.4 → 3.16.2 (vite 6) * feat: bump nuxt-i18n * feat: nuxt 3.20 * fix: lint * feat: use rolldown-vite * fix: shut the fuck up * fix: silence for app as well * fix: vue-router mismatch --------- Signed-off-by: Calum H. <contact@cal.engineer>
54 lines
1.1 KiB
JavaScript
54 lines
1.1 KiB
JavaScript
import { fixupPluginRules } from '@eslint/compat'
|
|
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
|
|
import turboPlugin from 'eslint-plugin-turbo'
|
|
import common from './common.mjs'
|
|
|
|
export const configurationNuxtToAppend = [
|
|
...common,
|
|
{
|
|
name: 'turbo',
|
|
plugins: {
|
|
turbo: fixupPluginRules(turboPlugin),
|
|
},
|
|
rules: {
|
|
'turbo/no-undeclared-env-vars': 'error',
|
|
},
|
|
},
|
|
{
|
|
name: 'modrinth',
|
|
rules: {
|
|
'vue/html-self-closing': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/no-undef-components': [
|
|
'error',
|
|
{
|
|
ignorePatterns: [
|
|
'NuxtPage',
|
|
'NuxtLayout',
|
|
'NuxtLink',
|
|
'NuxtRouteAnnouncer',
|
|
'ClientOnly',
|
|
'Teleport',
|
|
'Transition',
|
|
'TransitionGroup',
|
|
'Head',
|
|
'Title',
|
|
'router-link',
|
|
'RouterView',
|
|
'RouterLink',
|
|
'nuxt-link',
|
|
],
|
|
},
|
|
],
|
|
'vue/no-undef-properties': 'warn',
|
|
},
|
|
languageOptions: {
|
|
parserOptions: {
|
|
warnOnUnsupportedTypeScriptVersion: false,
|
|
},
|
|
},
|
|
},
|
|
]
|
|
|
|
export default createConfigForNuxt().append(configurationNuxtToAppend)
|