git clone https://github.com/lablueprint/website
cd website
npm install --save
export NODE_OPTIONS=--openssl-legacy-provider
By default, the linter will indicate what errors are present before you can commit.
If you wish to run the linter on a specific file, use npx eslint [file/directory]
to invoke it.
For more information, visit: https://eslint.org/docs/user-guide/getting-started
To more productively comply with our ESLint rules, we can underline the problem areas and enable autoformatting on save.
Install the ESLint plugin: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
Then add the following to your .vscode/settings.json
(create it if it doesn't exist):
{
"javascript.format.enable": false,
"eslint.autoFixOnSave": true,
"eslint.run": "onSave",
"files.eol": "\n"
}
Add a git pre-commit hook to your .git/hooks
folder. Ask Leo for the file.