Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Latest commit

 

History

History
60 lines (39 loc) · 1.2 KB

LINTING.md

File metadata and controls

60 lines (39 loc) · 1.2 KB

Linting

For each PR, there's a build to validate that all markdown files are following conventions defined in .markdownlint.json


Table Of Contents

Pre-req

Install NPM dependencies to set up pre-commit hook for linting

# make sure you're at the root of the urlist app
npm install

Linting manually/locally

If you want to run these lint check locally before pushing

# make sure you're at the root of the urlist app
npm run lint

Vscode Extension

It is recommended that you install the markdownlint extension.

This extension will highlight rule violation as you edit the files.

Fixing lint errors

Extension

If you have the vscode extenstion installed, you could configure your vscode preferences to fix linting issues on save

"editor.codeActionsOnSave": {
    "source.fixAll.markdownlint": true
}

NPM package

Alternatively, you could run the following command

npm run lint:fix