aboutsummaryrefslogtreecommitdiff
path: root/.vscode/settings.json
blob: 15853ebef614861ff45e00d2483a69ee2e5ce195 (plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
	"[rust]": {
		"editor.defaultFormatter": "rust-lang.rust-analyzer"
	},
	"rust-analyzer.procMacro.enable": true,
	"rust-analyzer.diagnostics.experimental.enable": false,
	"tailwindCSS.experimental.classRegex": [
		["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], // cva(....)`...`
		"tw\\.[^`]+`([^`]*)`", // tw.xxx`...`
		"tw\\(.*?\\).*?`([^`]*)" // tw(....)`...`
	],
	"search.exclude": {
		"**/node_modules": true,
		"**/bower_components": true,
		"**/*.code-search": true,
		"**/pnpm-lock.yaml": true,
		"**/.gitignore": true,
		"/packages/ctjs/types/*": true,
		"**/dist": true
	},
	// Enable the flat config support
	"eslint.experimental.useFlatConfig": true,
	// Disable the default formatter
	"prettier.enable": false,
	"editor.formatOnSave": false,
	// Auto fix
	"editor.codeActionsOnSave": {
		"source.fixAll.eslint": true,
		"source.organizeImports": false
	},
	// Silent the stylistic rules in you IDE, but still auto fix them
	"eslint.rules.customizations": [
		{
			"rule": "@stylistic/*",
			"severity": "off"
		},
		{
			"rule": "style*",
			"severity": "off"
		},
		{
			"rule": "*-indent",
			"severity": "off"
		},
		{
			"rule": "*-spacing",
			"severity": "off"
		},
		{
			"rule": "*-spaces",
			"severity": "off"
		},
		{
			"rule": "*-order",
			"severity": "off"
		},
		{
			"rule": "*-dangle",
			"severity": "off"
		},
		{
			"rule": "*-newline",
			"severity": "off"
		},
		{
			"rule": "*quotes",
			"severity": "off"
		},
		{
			"rule": "*semi",
			"severity": "off"
		}
	],
	"eslint.validate": [
		"javascript",
		"javascriptreact",
		"typescript",
		"typescriptreact",
		"vue",
		"html",
		"markdown",
		"json",
		"jsonc",
		"yaml",
		"astro"
	],
	"css.customData": [
		".vscode/tailwind.json"
	],
	"eslint.lintTask.enable": true,
	"eslint.workingDirectories": [],
	"explorer.fileNesting.enabled": true,
	"explorer.fileNesting.patterns": {
		"*.ts": "${capture}.js",
		"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
		"*.jsx": "${capture}.js",
		"*.tsx": "${capture}.ts",
		".npmrc": ".nvmrc, .yarnrc.yml",
		".gitignore": ".eslintignore, .prettierignore",
		"README.md": "CONTRIBUTING.md, CODE_OF_CONDUCT.md, LICENSE",
		"Cargo.toml": "Cargo.lock",
		".eslintrc.js": ".eslintcache",
		".prettierrc.*": ".rustfmt.toml, .gitattributes, .editorconfig, .clippy.toml",
		"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, pnpm-workspace.yaml, .pnp.cjs, .pnp.loader.mjs",
		"tsconfig.json": "tsconfig.*.json",
		"flake.nix": "shell.nix, flake.lock, Cargo.nix"
	}
}