Skip to content

Commit 33ce4f0

Browse files
author
Sashko Stubailo
committed
Put ESLint logo next to a linted rule
1 parent 7f70b7f commit 33ce4f0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This section has been eliminated in the Meteor version, because it does not spec
5151

5252
## References
5353

54-
- [2.1](#2.1) <a name='2.1'></a> Use `const` for all of your references; avoid using `var`.
54+
- [2.1](#2.1) <a name='2.1'></a> <img src="http://eslint.org/img/logo.svg" height="18" alt="linted by eslint" /> Use `const` for all of your references; avoid using `var`.
5555

5656
> Why? This ensures that you can't reassign your references (mutation), which can lead to bugs and difficult to comprehend code.
5757
@@ -65,7 +65,7 @@ This section has been eliminated in the Meteor version, because it does not spec
6565
const b = 2;
6666
```
6767

68-
- [2.2](#2.2) <a name='2.2'></a> If you must mutate references, use `let` instead of `var`.
68+
- [2.2](#2.2) <a name='2.2'></a> <img src="http://eslint.org/img/logo.svg" height="18" alt="linted by eslint" /> If you must mutate references, use `let` instead of `var`.
6969

7070
> Why? `let` is block-scoped rather than function-scoped like `var`.
7171

@@ -89,7 +89,7 @@ This section has been eliminated in the Meteor version, because it does not spec
8989
9090
## Objects
9191
92-
- [3.1](#3.1) <a name='3.1'></a> Use the literal syntax for object creation.
92+
- [3.1](#3.1) <a name='3.1'></a> Use the literal syntax for object creation.
9393
9494
```javascript
9595
// bad
@@ -1284,7 +1284,8 @@ This section has been eliminated in the Meteor version, because it does not spec
12841284
};
12851285
```
12861286
1287-
- [19.2](#19.2) <a name='19.2'></a> <span style="color: green">Linted: comma-dangle</span> Additional trailing comma: **Yup.**
1287+
- [19.2](#19.2) <a name='19.2'></a> <a href="http://eslint.org/docs/rules/comma-dangle"><img src="http://eslint.org/img/logo.svg" height="18" alt="linted by eslint" /></a>
1288+
Additional trailing comma: **Yup.**
12881289
12891290
> Why? This leads to cleaner git diffs. Also, transpilers like Babel will remove the additional trailing comma in the transpiled code which means you don't have to worry about the [trailing comma problem](es5/README.md#commas) in legacy browsers.
12901291

0 commit comments

Comments
 (0)