Skip to content

Commit

Permalink
Consolidate .vscode/settings.json into a single file, shared… (tens…
Browse files Browse the repository at this point in the history
…orflow#1858)

DEV

Have each project share the same vscode settings file by making `package-name/.vscode/settings.json` a symlink to the top-level `.vscode/settings.json`

Also fix a small issue with the default formatter settings.
  • Loading branch information
dsmilkov authored Aug 19, 2019
1 parent 6b787a1 commit ed813e4
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 173 deletions.
32 changes: 32 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Place your settings in this file to overwrite default and user settings.
{
"search.exclude": {
"**/node_modules": true,
"**/coverage/": true,
"**/dist/": true,
"**/yarn.lock": true,
"**/.rpt2_cache/": true,
"**/.yalc/**/*": true,
"**/.cache/**/*": true
},
"files.trimTrailingWhitespace": true,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"[typescript]": {
"editor.formatOnSave": true
},
"[javascript]": {
"editor.formatOnSave": true
},
"[cpp]": {
"editor.formatOnSave": true
},
"editor.defaultFormatter": "xaver.clang-format",
"editor.rulers": [80],
"clang-format.style": "Google",
"files.insertFinalNewline": true,
"editor.detectIndentation": false,
"editor.wrappingIndent": "none",
"typescript.tsdk": "${workspaceRoot}/node_modules/typescript/lib",
"clang-format.executable": "${workspaceRoot}/node_modules/.bin/clang-format"
}
28 changes: 0 additions & 28 deletions tfjs-backend-nodegl/.vscode/settings.json

This file was deleted.

1 change: 1 addition & 0 deletions tfjs-backend-nodegl/.vscode/settings.json
36 changes: 0 additions & 36 deletions tfjs-backend-wasm/.vscode/settings.json

This file was deleted.

1 change: 1 addition & 0 deletions tfjs-backend-wasm/.vscode/settings.json
27 changes: 0 additions & 27 deletions tfjs-backend-webgpu/.vscode/settings.json

This file was deleted.

1 change: 1 addition & 0 deletions tfjs-backend-webgpu/.vscode/settings.json
1 change: 1 addition & 0 deletions tfjs-converter/.vscode/settings.json
20 changes: 0 additions & 20 deletions tfjs-core/.vscode/c_cpp_properties.json

This file was deleted.

29 changes: 0 additions & 29 deletions tfjs-core/.vscode/settings.json

This file was deleted.

1 change: 1 addition & 0 deletions tfjs-core/.vscode/settings.json
1 change: 1 addition & 0 deletions tfjs-data/.vscode/settings.json
1 change: 1 addition & 0 deletions tfjs-layers/.vscode/settings.json
27 changes: 0 additions & 27 deletions tfjs-react-native/.vscode/settings.json

This file was deleted.

1 change: 1 addition & 0 deletions tfjs-react-native/.vscode/settings.json
9 changes: 4 additions & 5 deletions tfjs.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"**/dist/": true,
"**/yarn.lock": true,
"**/.rpt2_cache/": true,
"**/.yalc/**/*": true
"**/.yalc/**/*": true,
"**/.cache/**/*": true
},
"tslint.configFile": "tslint.json",
"files.trimTrailingWhitespace": true,
Expand All @@ -48,14 +49,12 @@
"editor.formatOnSave": true
},
"editor.defaultFormatter": "xaver.clang-format",
"editor.rulers": [
80
],
"editor.rulers": [80],
"clang-format.style": "Google",
"files.insertFinalNewline": true,
"editor.detectIndentation": false,
"editor.wrappingIndent": "none",
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.tsdk": "${workspaceRoot}/node_modules/typescript/lib",
"clang-format.executable": "${workspaceRoot}/node_modules/.bin/clang-format"
},
"extensions": {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ buffer-from@^1.0.0:
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==

chalk@^2.3.0:
chalk@^2.3.0, chalk@~2.4.2:
version "2.4.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
Expand Down

0 comments on commit ed813e4

Please sign in to comment.