- Migrate from legacy .eslintrc.json to modern flat config system - Remove conflicting ESLint configuration files - Fix auto-generation of eslint.config.mjs by Nuxt - Update ESLint rules to use single quotes and proper formatting - Add comprehensive theme switching system with 24 palettes - Implement proper daisyUI theme integration - Add theme store with persistence and dark/light mode support - Create ThemeSwitcher component with enhanced UI - Fix package.json scripts to work with new ESLint flat config - Update VS Code settings for proper ESLint integration - Add changelogen scripts for proper changelog management BREAKING CHANGE: ESLint configuration migrated to flat config system
67 lines
1.1 KiB
TypeScript
67 lines
1.1 KiB
TypeScript
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineNuxtConfig({
|
|
modules: [
|
|
'@nuxt/eslint',
|
|
'@pinia/nuxt',
|
|
],
|
|
ssr: false,
|
|
devtools: { enabled: true },
|
|
app: {
|
|
baseURL: './',
|
|
cdnURL: './',
|
|
head: {
|
|
title: 'Ziya',
|
|
meta: [
|
|
{ 'http-equiv': 'content-security-policy', 'content': 'script-src \'self\' \'unsafe-inline\'' },
|
|
],
|
|
},
|
|
},
|
|
css: [
|
|
'~/assets/css/main.css',
|
|
],
|
|
|
|
vite: {
|
|
plugins: [
|
|
tailwindcss(),
|
|
],
|
|
server: {
|
|
watch: {
|
|
ignored: ['./docker-data/*'],
|
|
},
|
|
},
|
|
},
|
|
|
|
postcss: {
|
|
plugins: {
|
|
'@tailwindcss/postcss': {},
|
|
},
|
|
},
|
|
|
|
router: {
|
|
options: {
|
|
hashMode: true,
|
|
},
|
|
},
|
|
|
|
future: { compatibilityVersion: 4 },
|
|
features: {
|
|
inlineStyles: false,
|
|
},
|
|
experimental: {
|
|
typedPages: true,
|
|
payloadExtraction: false,
|
|
renderJsonPayloads: false,
|
|
},
|
|
compatibilityDate: '2025-05-26',
|
|
eslint: {
|
|
config: {
|
|
stylistic: true,
|
|
},
|
|
checker: {
|
|
lintOnStart: false,
|
|
include: ['**/*.{js,ts,vue,mjs}'],
|
|
exclude: ['node_modules', '.nuxt', '.output', 'dist', 'coverage'],
|
|
},
|
|
},
|
|
})
|