This repository was archived by the owner on Aug 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { dirname } from 'path';
7
7
8
8
const lazyReq = require ( 'lazy-req' ) ( require ) ;
9
9
10
- const { findAsync, rangeFromLineNumber } = lazyReq ( 'atom-linter' ) ( 'findAsync' , 'rangeFromLineNumber ' ) ;
10
+ const { findAsync, generateRange } = lazyReq ( 'atom-linter' ) ( 'findAsync' , 'generateRange ' ) ;
11
11
const stripJSONComments = lazyReq ( 'strip-json-comments' ) ;
12
12
const tinyPromisify = lazyReq ( 'tiny-promisify' ) ;
13
13
@@ -70,7 +70,7 @@ export function provideLinter() {
70
70
}
71
71
72
72
return messages . map ( message => ( {
73
- range : rangeFromLineNumber ( editor , message . line - 1 , message . col - 1 ) ,
73
+ range : generateRange ( editor , message . line - 1 , message . col - 1 ) ,
74
74
type : message . type ,
75
75
text : message . message ,
76
76
filePath
Original file line number Diff line number Diff line change 44
44
},
45
45
"homepage" : " https://github.com/AtomLinter/linter-htmlhint#readme" ,
46
46
"dependencies" : {
47
- "atom-linter" : " ^8 .0.0" ,
47
+ "atom-linter" : " ^9 .0.0" ,
48
48
"atom-package-deps" : " ^4.0.1" ,
49
49
"htmlhint" : " 0.9.13" ,
50
- "lazy-req" : " ^1.1 .0" ,
50
+ "lazy-req" : " ^2.0 .0" ,
51
51
"strip-json-comments" : " ^2.0.1" ,
52
52
"tiny-promisify" : " ^1.0.0"
53
53
},
54
54
"devDependencies" : {
55
- "eslint" : " ^3.8 .0" ,
56
- "eslint-config-airbnb-base" : " ^9.0 .0" ,
57
- "eslint-plugin-import" : " ^2.0.1 "
55
+ "eslint" : " ^3.15 .0" ,
56
+ "eslint-config-airbnb-base" : " ^11.1 .0" ,
57
+ "eslint-plugin-import" : " ^2.2.0 "
58
58
},
59
59
"eslintConfig" : {
60
60
"rules" : {
You can’t perform that action at this time.
0 commit comments