-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathvite.config.ts
More file actions
42 lines (41 loc) · 989 Bytes
/
vite.config.ts
File metadata and controls
42 lines (41 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import nkzw from '@nkzw/oxlint-config';
import { defineConfig } from 'vite-plus';
export default defineConfig({
fmt: {
experimentalSortImports: {
newlinesBetween: false,
},
experimentalSortPackageJson: {
sortScripts: true,
},
ignorePatterns: ['coverage/', 'dist/', 'pnpm-lock.yaml', 'src/graphql/schema.graphql'],
singleQuote: true,
},
lint: {
extends: [nkzw],
ignorePatterns: ['dist/', 'src/prisma/prisma-client/*', 'src/prisma/pothos-types.ts'],
options: { typeAware: true, typeCheck: true },
overrides: [
{
files: ['scripts/**/*.tsx', 'src/app.tsx', 'src/index.tsx', 'src/prisma/seed.tsx'],
rules: {
'no-console': 'off',
},
},
],
},
pack: {
entry: ['./src/app.tsx'],
outputOptions: { file: 'dist/index.js' },
},
run: {
tasks: {
'test:all': {
command: 'vp check && vp test',
},
},
},
staged: {
'*': 'vp check --fix',
},
});