0.3.2 • Published 9 years ago
remark-lint-hiring-without-whiteboards-links v0.3.2
remark-lint-hiring-without-whiteboards-links
This remark-lint rule was created for hiring-without-whiteboards to enforce hiring-without-whiteboards formatting guidelines.
This rule only applies to list items starting with a link. It enforces the following things:
Location
A single location must contain city name and country, separated by a ,.
Multiple locations should be separated by ;, & or /.
Remote should just contain Remote, and not online, distributed, anywhere, etc
Good
- [MyCompany](https://example.com/jobs) | San Francisco, CA; Tokyo, Japan | My description
- [MyCompany](https://example.com/jobs) | San Francisco, CA; Tokyo, Japan; Remote | My descriptionBad
- [MyCompany](https://example.com/jobs) | Tokyo | My description
- [MyCompany](https://example.com/jobs) | Melbourne, Victoria, Australia | My description
- [MyCompany](https://example.com/jobs) | Tokyo, Japan (HQ) & anywhere in the world | My descriptionFormat
The link format should be company name and link | locations | description.
Good
- [MyCompany](https://example.com/jobs) | San Francisco, CA; Tokyo, Japan | My descriptionBad
- [MyCompany](https://example.com/jobs) | San Francisco, CA; Tokyo, JapanUsing the rule
Via .remarkrc
npm install -g remark-cli
npm install remark-lint remark-lint-hiring-without-whiteboards-linksThen, set up your .mdastrc:
{
"plugins": [
"lint",
"lint-hww-links"
]
}Now you can use the following command to run the lint:
remark xxx.mdVia CLI
npm install -g remark-cli
npm install remark-lint remark-lint-hiring-without-whiteboards-links
remark -u lint -u lint-hww-links xxx.md