eslint-plugin-markdown-antd

0.1.0 • Public • Published

eslint-plugin-markdown

Join the chat at https://gitter.im/eslint/eslint-plugin-markdown

An ESLint plugin to lint JavaScript in Markdown.

Supported extensions are .markdown, .mdown, .mkdn, and .md.

Usage

Install the plugin:

npm install --save-dev eslint-plugin-markdown

Add it to your .eslintrc:

{
    "plugins": [
        "markdown"
    ]
}

It will lint js, javascript, jsx, or node fenced code blocks in your Markdown documents:

```js
// This gets linted
var answer = 6 * 7;
console.log(answer);
```

```JavaScript
// This also gets linted

/* eslint quotes: [2, "double"] */

function hello() {
    console.log("Hello, world!");
}
hello();
```

```jsx
// This gets linted too
var div = <div className="jsx"></div>;
```

```node
// And this
console.log(process.version);
```

Blocks that don't specify either js, javascript, jsx, or node syntax are ignored:

```
This is plain text and doesn't get linted.
```

```python
print("This doesn't get linted either.")
```

Contributing

$ git clone https://github.com/eslint/eslint-plugin-markdown.git
cd eslint-plugin-markdown
$ npm link
$ npm link eslint-plugin-markdown
$ npm test

This project follows the ESLint contribution guidelines.

Package Sidebar

Install

npm i eslint-plugin-markdown-antd

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • afc163