Skip to content

Commit

Permalink
lint: apply to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Feb 14, 2020
1 parent 504a635 commit da05674
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ before_install:
# eslint for linting
# - remove on Node.js < 6
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
npm rm --slient --save-dev eslint
npm rm --slient --save-dev eslint eslint-plugin-markdown
fi
- |
# mocha for testing
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ hbs exposes the `registerHelper` and `registerPartial` method from handlebars.
```javascript
var hbs = require('hbs');

hbs.registerHelper('helper_name', function(...) { ... });
hbs.registerHelper('helper_name', function (options) { return 'helper value'; });
hbs.registerPartial('partial_name', 'partial value');
```

Expand All @@ -46,7 +46,7 @@ For convenience, `registerPartials` provides a quick way to load all partials fr
```javascript
var hbs = require('hbs');

hbs.registerPartials(__dirname + '/views/partials' [, callback]);
hbs.registerPartials(__dirname + '/views/partials', function (err) {});
```

Partials that are loaded from a directory are named based on their filename, where spaces and hyphens are replaced with an underscore character:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install:
- if "%nodejs_version%" equ "0.8" npm install -g --prefix "%npm_prefix:~0,-1%" npm@1.2.8000
- npm config set shrinkwrap false
# Remove all non-test dependencies
- npm rm --silent --save-dev eslint nyc
- npm rm --silent --save-dev eslint eslint-plugin-markdown nyc
# Setup Node.js version-specific dependencies
- ps: |
# mocha for testing
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"devDependencies": {
"eslint": "5.16.0",
"eslint-plugin-markdown": "1.0.1",
"mocha": "7.0.1",
"nyc": "15.0.0",
"rimraf": "2.7.1",
Expand All @@ -31,7 +32,7 @@
"npm": "1.2.8000 || >= 1.4.16"
},
"scripts": {
"lint": "eslint .",
"lint": "eslint --plugin markdown --ext js,md .",
"test": "mocha --reporter spec --ui qunit --bail test/*/index.js",
"test-cov": "nyc --reporter=html --reporter=text npm test"
}
Expand Down

0 comments on commit da05674

Please sign in to comment.