Files
compras/vite.config.ts
T
nalaandClaude Opus 5.5 ec934455e7 Aplicar Pint e formatação de frontend; delimitar o âmbito do lint
Só formatação automática (pint, vp check --fix), sem alterar comportamento.
Excluídos da formatação os registos e artefactos com bytes fixos: docs/,
integrations/, storage/, tmp/, output/, resources/data/, tests/Fixtures/,
compras-release.json e AGENTS*.md. Scripts operacionais, integrations e
auxiliares de teste ficam fora do lint (usam new Function; limpeza na fase 2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:01:42 +02:00

94 lines
2.6 KiB
TypeScript

import inertia from '@inertiajs/vite';
import { wayfinder } from '@laravel/vite-plugin-wayfinder';
import babel from '@rolldown/plugin-babel';
import tailwindcss from '@tailwindcss/vite';
import react, { reactCompilerPreset } from '@vitejs/plugin-react';
import laravel from 'laravel-vite-plugin';
import { bunny } from 'laravel-vite-plugin/fonts';
import { defineConfig, lazyPlugins } from 'vite-plus';
export default defineConfig({
plugins: lazyPlugins(() => [
laravel({
input: ['resources/css/app.css', 'resources/js/app.tsx'],
refresh: true,
fonts: [
bunny('Instrument Sans', {
weights: [400, 500, 600],
optimizedFallbacks: false,
}),
],
}),
inertia(),
react(),
babel({
presets: [reactCompilerPreset()],
}),
tailwindcss(),
wayfinder({
formVariants: true,
}),
]),
server: {
watch: {
ignored: [
'**/.agents/**',
'**/.claude/**',
'**/.cursor/**',
'**/.junie/**',
'**/vendor/**',
],
},
},
lint: {
ignorePatterns: [
'vendor/**',
'node_modules/**',
'public/**',
'bootstrap/ssr/**',
'tailwind.config.js',
'resources/js/actions/**',
'resources/js/components/ui/*',
'resources/js/routes/**',
'resources/js/wayfinder/**',
// Operational check scripts and SGF integration copies are not product code.
'scripts/**',
'integrations/**',
'tests/Support/**',
'tests/scripts/**',
],
options: {
denyWarnings: true,
typeAware: true,
},
},
fmt: {
printWidth: 80,
tabWidth: 4,
singleQuote: true,
semi: true,
singleAttributePerLine: false,
htmlWhitespaceSensitivity: 'css',
ignorePatterns: [
'.github/**',
'packages/**',
'integrations/**',
'docs/**',
'storage/**',
'tmp/**',
'output/**',
'compras-release.json',
'AGENTS*.md',
'resources/data/**',
'tests/Fixtures/**',
'composer.json',
'resources/js/components/ui/*',
'resources/views/mail/*',
],
sortTailwindcss: {
functions: ['clsx', 'cn', 'cva'],
stylesheet: 'resources/css/app.css',
},
},
});