Skip to content

Commit 081abc2

Browse files
committed
adding documentation
1 parent eb5fe33 commit 081abc2

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,23 @@ Then configure the rules you want to use under the rules section.
3535

3636
```json
3737
{
38-
"rules": {
39-
"hbs/rule-name": 2
40-
}
38+
"rules": {
39+
'hbs/check-hbs-template-literals': 2
40+
}
4141
}
4242
```
4343

44+
or
45+
46+
```
47+
"rules": {
48+
'hbs/check-hbs-template-literals': [
49+
'error', 2,
50+
{'ConfigFile': __dirname + '/.eslint-template-lintrc.json'}
51+
],
52+
}
53+
```
54+
4455
The plugin will report the number of errors and the first line of the first error. Here's a running example. Left-hand side is the output of `eslint` from the command-line, right-hand side is `vim` running with `eslint` (via syntastic):
4556

4657

0 commit comments

Comments
 (0)