Add .devcontainer/vale support

master
Bradlee Speice 2022-11-20 21:18:33 +00:00
parent abfc1496f1
commit 95044631f5
4 changed files with 27 additions and 0 deletions

6
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-2.7-bullseye
RUN wget https://github.com/errata-ai/vale/releases/download/v2.21.0/vale_2.21.0_Linux_64-bit.tar.gz -O /tmp/vale.tar.gz \
&& cd /usr/local/bin \
&& tar xf /tmp/vale.tar.gz \
&& rm /tmp/vale.tar.gz

View File

@ -0,0 +1,13 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/ruby
{
"name": "Ruby",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": ["--userns=keep-id"],
"remoteUser": "vscode",
"containerUser": "vscode",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,Z"
}

1
.gitignore vendored
View File

@ -4,4 +4,5 @@ _site/
.jekyll-metadata
.bundle/
vendor/
.styles/
.vscode/

7
.vale.ini Normal file
View File

@ -0,0 +1,7 @@
StylesPath = .styles
MinAlertLevel = suggestion
Packages = Microsoft, write-good
[*]
BasedOnStyles = Vale, Microsoft, write-good
write-good.E-Prime = NO