mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add custom rule example to lint JavaScript code blocks using ESLint (fixes #197).
This commit is contained in:
parent
c3e8eab87b
commit
4d11e60cfe
4 changed files with 99 additions and 2 deletions
23
test/lint-javascript.md
Normal file
23
test/lint-javascript.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Lint JavaScript
|
||||
|
||||
<!-- markdownlint-disable MD046 -->
|
||||
|
||||
Text
|
||||
|
||||
```js
|
||||
"use strict";
|
||||
|
||||
var x = 0;
|
||||
|
||||
console.log(x);
|
||||
```
|
||||
|
||||
Text
|
||||
|
||||
var y = 0;
|
||||
|
||||
Text
|
||||
|
||||
Text `undefined` text
|
||||
|
||||
Text
|
||||
Loading…
Add table
Add a link
Reference in a new issue