vscode - arosh/arosh.github.com GitHub Wiki
{
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"diffEditor.ignoreTrimWhitespace": false,
"editor.fontFamily": "'源柔ゴシック等幅', 'Gen Jyuu Gothic Monospace', Consolas, Meiryo, Osaka-Mono",
"editor.tokenColorCustomizations": {
// https://github.com/microsoft/vscode/issues/97373
"[Default Dark+]": {
"textMateRules": [
{
"scope": [
"variable.other.constant",
"variable.other.enummember"
],
"settings": {
"foreground": "#9CDCFE"
}
}
]
}
},
"explorer.compactFolders": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.openEditors.visible": 0,
"files.autoSave": "afterDelay",
"files.eol": "\n",
"files.exclude": {
"**/*.pyc": true,
"**/.DS_Store": true,
"**/.git": true,
"**/.hg": true,
"**/.svn": true,
"**/CVS": true,
"**/__pycache__": true
},
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"git.autofetch": true,
"git.confirmSync": false,
"git.enableSmartCommit": true,
"go.lintFlags": [
"--fast",
"-E",
"bodyclose",
"-D",
"nlreturn",
"-D",
"gci"
],
"go.lintTool": "golangci-lint",
"go.testTimeout": "10s",
"go.useLanguageServer": true,
"markdown.extension.list.indentationSize": "inherit",
"markdownlint.config": {
"code-block-style": false,
"header-style": {
"style": "atx"
},
"no-alt-text": false,
"no-bare-urls": false,
"no-duplicate-header": false,
"no-inline-html": false,
"ul-indent": {
"indent": 4
},
"ul-style": false
},
"python.linting.pycodestyleArgs": [
"--ignore=E221"
],
"terminal.integrated.commandsToSkipShell": [
"-workbench.action.quickOpen"
],
"window.zoomLevel": 1,
"workbench.editorAssociations": [
{
"filenamePattern": "*.ipynb",
"viewType": "jupyter.notebook.ipynb"
}
],
"yaml.format.enable": true,
"yaml.format.singleQuote": true
}
tsconfig.json
noImplicitAny
はモジュールのimport時に型定義ファイルが必須になるので、ゆるく導入するなら難しい。
strictNullChecks
は有効にする価値がある。
型定義ファイルの書き方
typescriptでJavaScriptをチェックする
- https://qiita.com/terrierscript/items/a9826bc58d550d1b2764
- https://code.visualstudio.com/docs/languages/jsconfig
- https://github.com/Microsoft/TypeScript/wiki/Type-Checking-JavaScript-Files
JSDocの書き方
Extension
- ms-vscode.cpptools
- peterjausovec.vscode-docker
- editorconfig.editorconfig
- dbaeumer.vscode-eslint
- ms-vscode.go
- eg2.vscode-npm-script
- esbenp.prettier-vscode
- ms-python.python
- richie5um2.vscode-sort-json
- redhat.vscode-yaml
golangci-lint
--enable-all -D funlen -D gomnd -D goerr113 -D wsl -D gochecknoglobals -D godot -D testpackage -D lll -D gomodguard -D gochecknoinits