2025-08-14 21:48:38 +01:00
|
|
|
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 = [
|
feat: consistently format all HTML, XML, JSON, CSS, JS, TS, SQL, TOML, YAML, and Markdown files as far as possible (#4193)
* feat: consistently format all HTML, XML, JSON, CSS, JS, TS, SQL, TOML, YAML, and Markdown files
* chore: deal with VS Code not being able to parse valid editorconfig syntax
Sometimes I'm surprised that computers even work.
* chore: get rid of IntelliJ IDE config files that should not be there
These were already added to the `.gitignore` a long time ago, and now
are being ignored by Prettier.
* fix: rename `tooling-config` `format` script to `fix` for it to run with Turbo
2025-08-16 19:40:31 +02:00
|
|
|
...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',
|
2025-08-17 12:15:49 +01:00
|
|
|
'vue/no-undef-components': [
|
|
|
|
|
'error',
|
|
|
|
|
{
|
|
|
|
|
ignorePatterns: [
|
|
|
|
|
'NuxtPage',
|
|
|
|
|
'NuxtLayout',
|
|
|
|
|
'NuxtLink',
|
2025-12-30 15:06:52 +00:00
|
|
|
'NuxtRouteAnnouncer',
|
2025-08-17 12:15:49 +01:00
|
|
|
'ClientOnly',
|
|
|
|
|
'Teleport',
|
|
|
|
|
'Transition',
|
|
|
|
|
'TransitionGroup',
|
|
|
|
|
'Head',
|
|
|
|
|
'Title',
|
|
|
|
|
'router-link',
|
|
|
|
|
'RouterView',
|
|
|
|
|
'RouterLink',
|
|
|
|
|
'nuxt-link',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
2025-08-18 12:46:58 +01:00
|
|
|
'vue/no-undef-properties': 'warn',
|
feat: consistently format all HTML, XML, JSON, CSS, JS, TS, SQL, TOML, YAML, and Markdown files as far as possible (#4193)
* feat: consistently format all HTML, XML, JSON, CSS, JS, TS, SQL, TOML, YAML, and Markdown files
* chore: deal with VS Code not being able to parse valid editorconfig syntax
Sometimes I'm surprised that computers even work.
* chore: get rid of IntelliJ IDE config files that should not be there
These were already added to the `.gitignore` a long time ago, and now
are being ignored by Prettier.
* fix: rename `tooling-config` `format` script to `fix` for it to run with Turbo
2025-08-16 19:40:31 +02:00
|
|
|
},
|
|
|
|
|
languageOptions: {
|
|
|
|
|
parserOptions: {
|
|
|
|
|
warnOnUnsupportedTypeScriptVersion: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-08-14 21:48:38 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export default createConfigForNuxt().append(configurationNuxtToAppend)
|