Skip to content

Commit dfeb3a1

Browse files
committed
(chore) fix tiny style issues, add linting npm task
- fixes tiny style issues - adds `npm run lint` for linting the main library source (not languages which are still much messier)
1 parent 014343e commit dfeb3a1

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"types": "./types/index.d.ts",
2525
"scripts": {
2626
"mocha": "mocha",
27+
"lint": "eslint -c .eslintrc.js src/*.js src/lib/*.js",
2728
"build_and_test": "npm run build && npm run test",
2829
"build": "node ./tools/build.js -t node",
2930
"build-cdn": "node ./tools/build.js -t cdn",

src/highlight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ const HLJS = function(hljs) {
684684
language: result.language,
685685
// TODO: remove with version 11.0
686686
re: result.relevance,
687-
relavance: result.relevance,
687+
relavance: result.relevance
688688
};
689689
if (result.second_best) {
690690
element.second_best = {

src/lib/html_renderer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,4 @@ export default class HTMLRenderer {
8484
span(className) {
8585
this.buffer += `<span class="${className}">`;
8686
}
87-
8887
}

0 commit comments

Comments
 (0)