Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Latest commit

 

History

History
62 lines (39 loc) · 1.2 KB

LINTING.md

File metadata and controls

62 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

Vscode Extension

It is recommended that you install the markdownlint extension.

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

Linting manually/locally

Pre-req

Install NPM dependencies at root level of project

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

Run lint check

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

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