forked from didirus/AstralRinth
* feat: frontend explicit imports * fix: error handling * fix: dashboard missing import * fix: error page issues * fix: exclude RouterView * feat: fix lint issues * fix: lint issues * fix: import issues * add getVersionLink * make articles.json use tabs on generation so it doesn't have to be reformatted * fix: lint issues --------- Signed-off-by: Cal H. <hendersoncal117@gmail.com> Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
52 lines
1.0 KiB
JavaScript
52 lines
1.0 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',
|
|
'ClientOnly',
|
|
'Teleport',
|
|
'Transition',
|
|
'TransitionGroup',
|
|
'Head',
|
|
'Title',
|
|
'router-link',
|
|
'RouterView',
|
|
'RouterLink',
|
|
'nuxt-link',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
languageOptions: {
|
|
parserOptions: {
|
|
warnOnUnsupportedTypeScriptVersion: false,
|
|
},
|
|
},
|
|
},
|
|
]
|
|
|
|
export default createConfigForNuxt().append(configurationNuxtToAppend)
|