remark-lint/packages/remark-lint-no-shell-dollars/readme.md
Titus Wormer 4a380fca27 Rewrite so that rules are published to npm individually
Additionally, this updates for remark@7.0.0, unified@6.0.0.
2017-02-23 18:07:52 +01:00

57 lines
962 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--This file is generated-->
# remark-lint-no-shell-dollars
Warn when shell code is prefixed by dollar-characters.
Ignored indented code blocks and fenced code blocks without language
flag.
## Install
```sh
npm install --save remark-lint-no-shell-dollars
```
## Example
When this rule is turned on, the following file
`valid.md` is ok:
````markdown
```sh
echo a
echo a > file
```
```zsh
$ echo a
a
$ echo a > file
```
Its fine to use dollars in non-shell code.
```js
$('div').remove();
```
````
When this rule is turned on, the following file
`invalid.md` is **not** ok:
````markdown
```bash
$ echo a
$ echo a > file
```
````
```text
1:1-4:4: Do not use dollar signs before shell-commands
```
## License
[MIT](https://github.com/wooorm/remark-lint/blob/master/LICENSE) © [Titus Wormer](http://wooorm.com)