Skip to content

Commit

Permalink
chore: enable files.insertFinalNewline in vscode (#518)
Browse files Browse the repository at this point in the history
Ensures there's always a newline at the end of files. They seem to be
randomly missing, which cause weird diffs.
  • Loading branch information
coadler committed Mar 22, 2022
1 parent 01ab487 commit 3b29b15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
"files.exclude": {
"**/node_modules": true
},
// Ensure files always have a newline.
"files.insertFinalNewline": true,
"go.lintTool": "golangci-lint",
"go.lintFlags": ["--fast"],
"go.lintOnSave": "package",
Expand All @@ -79,5 +81,5 @@
},
// We often use a version of TypeScript that's ahead of the version shipped
// with VS Code.
"typescript.tsdk": "./site/node_modules/typescript/lib"
"typescript.tsdk": "./site/node_modules/typescript/lib",
}

0 comments on commit 3b29b15

Please sign in to comment.