-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
76 lines (75 loc) · 2.19 KB
/
vite.config.ts
File metadata and controls
76 lines (75 loc) · 2.19 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { defineConfig } from 'vite-plus'
export default defineConfig({
staged: { '*': 'vp check --fix' },
fmt: {
ignorePatterns: ['*.md', 'components.d.ts', 'typed-router.d.ts'],
endOfLine: 'lf',
semi: false,
useTabs: false,
printWidth: 100,
tabWidth: 2,
singleQuote: true,
trailingComma: 'none',
sortPackageJson: { sortScripts: true },
arrowParens: 'avoid',
jsxSingleQuote: true,
singleAttributePerLine: false,
vueIndentScriptAndStyle: false,
sortTailwindcss: {
preserveDuplicates: false,
preserveWhitespace: false,
stylesheet: './packages/plugin/src/index.css',
attributes: ['overlayClass', ':class', 'Class'],
functions: ['twMerge']
},
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
insertFinalNewline: false,
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
objectWrap: 'collapse',
quoteProps: 'consistent',
sortImports: {
groups: [
['builtin'],
['external', 'type-external'],
['internal', 'type-internal'],
['parent', 'type-parent'],
['sibling', 'type-sibling'],
['index', 'type-index']
]
}
},
lint: {
plugins: ['unicorn', 'typescript', 'oxc', 'vue'],
categories: { correctness: 'error' },
rules: {
'no-unused-expressions': 'allow',
'no-useless-escape': 'allow',
'no-non-null-asserted-optional-chain': 'allow',
'no-thenable': 'allow',
'restrict-template-expressions': 'allow'
},
settings: {
'jsx-a11y': { components: {}, attributes: {} },
'next': { rootDir: [] },
'jsdoc': {
ignorePrivate: false,
ignoreInternal: false,
ignoreReplacesDocs: true,
overrideReplacesDocs: true,
augmentsExtendsReplacesDocs: false,
implementsReplacesDocs: false,
exemptDestructuredRootsFromChecks: false,
tagNamePreference: {}
},
'vitest': { typecheck: true }
},
env: { builtin: true },
globals: {},
ignorePatterns: ['.vscode', './package.json'],
options: { typeAware: true, typeCheck: true }
},
run: { cache: { tasks: true, scripts: true } }
})