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

Commit

Permalink
Autogenerated new docs and demo at Sat Nov 30 2019 12:03:36
Browse files Browse the repository at this point in the history
  • Loading branch information
ESLint Jenkins committed Nov 30, 2019
1 parent 2b46769 commit 89f74b3
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 11 deletions.
44 changes: 44 additions & 0 deletions _posts/2019-11-30-eslint-v6.7.2-released.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
layout: post
title: ESLint v6.7.2 released
tags:
- release
- patch
---
# ESLint v6.7.2 released

We just pushed ESLint v6.7.2, which is a patch release upgrade of ESLint. This release fixes several bugs found in the previous release.












## Bug Fixes


* [`bc435a9`](https://github.com/eslint/eslint/commit/bc435a93afd6ba4def1b53993ef7cf8220f3f070) Fix: isSpaceBetweenTokens() recognizes spaces in JSXText (fixes [#12614](https://github.com/eslint/eslint/issues/12614)) ([#12616](https://github.com/eslint/eslint/issues/12616)) (Toru Nagashima)
* [`4928d51`](https://github.com/eslint/eslint/commit/4928d513b4fe716c7ed958c294a10ef8517be25e) Fix: don't ignore the entry directory (fixes [#12604](https://github.com/eslint/eslint/issues/12604)) ([#12607](https://github.com/eslint/eslint/issues/12607)) (Toru Nagashima)
* [`ea16de4`](https://github.com/eslint/eslint/commit/ea16de4e7c6f661398b0b7843f95e5f307c89551) Fix: Support tagged template literal generics in [no-unexpected-multiline](/docs/rules/no-unexpected-multiline) ([#11698](https://github.com/eslint/eslint/issues/11698)) (Brad Zacher)




## Documentation


* [`b41677a`](https://github.com/eslint/eslint/commit/b41677ae2a143790b19b0e70391a46ec6c8f5de1) Docs: Clarify suggestion's data in Working with Rules (refs [#12606](https://github.com/eslint/eslint/issues/12606)) ([#12617](https://github.com/eslint/eslint/issues/12617)) (Milos Djermanovic)








34 changes: 34 additions & 0 deletions docs/developer-guide/working-with-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,40 @@ module.exports = {
};
```
#### Placeholders in suggestion messages
You can also use placeholders in the suggestion message. This works the same way as placeholders for the overall error (see [using message placeholders](#using-message-placeholders)).
Please note that you have to provide `data` on the suggestion's object. Suggestion messages cannot use properties from the overall error's `data`.
```js
module.exports = {
meta: {
messages: {
unnecessaryEscape: "Unnecessary escape character: \\{{character}}.",
removeEscape: "Remove `\\` before {{character}}.",
}
},
create: function(context) {
// ...
context.report({
node: node,
messageId: "unnecessaryEscape",
data: { character }, // data for the unnecessaryEscape overall message
suggest: [
{
messageId: "removeEscape",
data: { character }, // data for the removeEscape suggestion message
fix: function(fixer) {
return fixer.removeRange(range);
}
}
]
});
}
};
```
### context.options
Some rules require options in order to function correctly. These options appear in configuration (`.eslintrc`, command line, or in comments). For example:
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/formatters/html-formatter-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<div id="overview" class="bg-2">
<h1>ESLint Report</h1>
<div>
<span>9 problems (5 errors, 4 warnings)</span> - Generated on Sun Nov 24 2019 22:24:32 GMT-0500 (Eastern Standard Time)
<span>9 problems (5 errors, 4 warnings)</span> - Generated on Sat Nov 30 2019 12:03:35 GMT-0500 (Eastern Standard Time)
</div>
</div>
<table>
Expand Down
Loading

0 comments on commit 89f74b3

Please sign in to comment.