-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
settings.json
59 lines (53 loc) · 2 KB
/
settings.json
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
{
"files.associations": {
// Enable JSON5 syntax highlighting and auto-formatting for OWNERS files.
// Until VS Code adds native JSON5 support, this needs
// https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-json5
"OWNERS": "json5",
// Enable JSON auto-formatting for these files.
".prettierrc": "json",
".renovaterc.json": "json",
// Allow comments in JSON schema files.
"*.schema.json": "jsonc"
},
"files.insertFinalNewline": true,
// Auto-fix JS files with ESLint using amphtml's custom settings. Needs
// https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"[js]": {"editor.formatOnSave": false},
// Auto-fix non-JS files with Prettier using amphtml's custom settings. Needs
// https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
"[yaml]": {"editor.formatOnSave": true},
"[json]": {"editor.formatOnSave": true},
"[json5]": {"editor.formatOnSave": true},
"[markdown]": {"editor.formatOnSave": true},
// Validate JSON schemas on the fly. Also used by the `amp check-json-schemas`
// task. Do not use URLs from the web, they are unsupported by this task.
"json.schemas": [
{
"fileMatch": [
"build-system/global-configs/canary-config.json",
"build-system/global-configs/prod-config.json"
],
"url": "./build-system/json-schemas/amp-config.json"
},
{
"fileMatch": ["build-system/tasks/bundle-size/APPROVERS.json"],
"url": "./build-system/json-schemas/APPROVERS.json"
},
{
"fileMatch": ["build-system/global-configs/caches.json"],
"url": "./build-system/json-schemas/caches.json"
},
{
"fileMatch": ["build-system/tasks/bundle-size/filesize.json"],
"url": "./build-system/json-schemas/filesize.json"
},
{
"fileMatch": ["test/visual-diff/visual-tests.jsonc"],
"url": "./build-system/json-schemas/visual-tests.json"
}
]
}