-
Notifications
You must be signed in to change notification settings - Fork 316
Expand file tree
/
Copy pathvite.config.ts
More file actions
48 lines (47 loc) · 1.72 KB
/
vite.config.ts
File metadata and controls
48 lines (47 loc) · 1.72 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
import { defineConfig } from "vite-plus";
export default defineConfig({
staged: {
"*.{js,ts,tsx}": "vp check --fix",
},
lint: {
ignorePatterns: [".next", "dist", "build", "bundled_*.mjs", "bin"],
plugins: ["typescript"],
rules: {
"@typescript-eslint/ban-ts-comment": "error",
"no-array-constructor": "error",
"@typescript-eslint/no-duplicate-enum-values": "error",
"@typescript-eslint/no-empty-object-type": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-extra-non-null-assertion": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unnecessary-type-constraint": "error",
"@typescript-eslint/no-unsafe-declaration-merging": "error",
"@typescript-eslint/no-unsafe-function-type": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"@typescript-eslint/no-wrapper-object-types": "error",
"@typescript-eslint/prefer-as-const": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/triple-slash-reference": "error",
},
overrides: [
{
files: ["apps/**/*.{ts,tsx}", "packages/**/*.{ts,tsx}"],
rules: {
"no-var": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
},
},
],
},
fmt: {
semi: true,
singleQuote: false,
ignorePatterns: [".next", "node_modules", "dist", "build", "pnpm-lock.yaml"],
},
});