Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 0902105

Browse files
committed
Merge pull request #69 from AnWeber/patch-1
Wrong path to htmlhint
2 parents 95d8fa6 + 4a42c99 commit 0902105

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use babel';
22

33
import * as path from 'path';
4-
import { exec, find, rangeFromLineNumber } from 'atom-linter';
4+
import { execNode, find, rangeFromLineNumber } from 'atom-linter';
55

66
const GRAMMAR_SCOPES = [
77
'text.html.angular',
@@ -17,9 +17,9 @@ const GRAMMAR_SCOPES = [
1717
export const config = {
1818
executablePath: {
1919
title: 'Executable Path',
20-
description: 'HTMLHint Executable Path',
20+
description: 'HTMLHint Node Script Path',
2121
type: 'string',
22-
default: path.join(__dirname, '..', 'node_modules', '.bin', 'htmlhint')
22+
default: path.join(__dirname, '..', 'node_modules', 'htmlhint', 'bin', 'htmlhint')
2323
}
2424
};
2525

@@ -57,7 +57,7 @@ export function provideLinter() {
5757
parameters.push(htmlhintrc);
5858
}
5959

60-
return exec(executablePath, parameters, {}).then(output => {
60+
return execNode(executablePath, parameters, {}).then(output => {
6161
const results = JSON.parse(output);
6262

6363
if (!results.length) {

0 commit comments

Comments
 (0)