Skip to content

Commit

Permalink
Tools: check-examples: Make 'npm run linter' pass
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-be committed Nov 1, 2017
1 parent 734c5be commit 16ac1fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions check-examples/README.md
Expand Up @@ -7,6 +7,6 @@ runs a code linter on them.
`$ node check.js ../webrtc.html`

## Self Linting
Run the linter on the script itself with the same rules that are used for
specification examples:
Run the linter on the script itself (indentation rule differs from example
rules):
`$ npm run linter`
2 changes: 1 addition & 1 deletion check-examples/package.json
Expand Up @@ -5,7 +5,7 @@
"main": "check.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"linter": "eslint check.js"
"linter": "eslint --rule 'indent: [2, 4]' check.js"
},
"author": "adambe",
"dependencies": {
Expand Down

0 comments on commit 16ac1fd

Please sign in to comment.