-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
65 lines (64 loc) · 1.36 KB
/
vite.config.ts
File metadata and controls
65 lines (64 loc) · 1.36 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
import { defineConfig } from 'vite-plus';
export default defineConfig({
staged: {
'*': 'vp check --fix',
},
fmt: {
ignorePatterns: ['worker-configuration.d.ts'],
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
trailingComma: 'es5',
endOfLine: 'lf',
experimentalSortImports: {
groups: [
['side_effect'],
['builtin'],
['external'],
['internal'],
['parent', 'sibling', 'index'],
],
sortSideEffects: false,
newlinesBetween: true,
ignoreCase: true,
},
experimentalSortPackageJson: true,
},
lint: {
ignorePatterns: ['worker-configuration.d.ts'],
plugins: ['typescript', 'oxc'],
rules: {
eqeqeq: [
'error',
'always',
{
null: 'ignore',
},
],
'no-console': [
'error',
{
allow: ['info', 'warn', 'error'],
},
],
'no-debugger': 'error',
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'typescript/no-floating-promises': 'error',
'typescript/no-namespace': 'off',
'import/no-cycle': 'error',
},
options: {
typeAware: true,
typeCheck: true,
},
},
});