Skip to content

Commit 4b6ac25

Browse files
committed
Update lesshint to 3.x
1 parent 071147b commit 4b6ac25

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## 3.0.0 (2017-XX-XX)
3+
* Updated `lesshint` to `3.0.0`. ([4e734d9](https://github.com/lesshint/atom-linter-lesshint/commit/4e734d9711108b752353f4085e141bce13ddb00f))
4+
25
## 2.2.0 (2016-11-23)
36
* Added a `globalConfig` option to provide a way to use global configs. ([d2bd9f0](https://github.com/lesshint/atom-linter-lesshint/commit/d2bd9f074144b9ff7735d012b5235251e1e7c729))
47
* Updated `lesshint` to `2.2.1`. ([6f5e88a](https://github.com/lesshint/atom-linter-lesshint/commit/6f5e88a60755965df5ede35fb8476154e8bfcd95))

index.js

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

3-
import configLoader from 'lesshint/lib/config-loader';
43
import { findCachedAsync, rangeFromLineNumber } from 'atom-linter';
5-
import Lesshint from 'lesshint';
4+
import { Lesshint } from 'lesshint';
65
import path from 'path';
76
import os from 'os';
87

@@ -65,7 +64,7 @@ export default class LinterLesshint {
6564

6665
try {
6766
if (configFile) {
68-
config = configLoader(configFile);
67+
config = lesshint.getConfig(configFile);
6968
}
7069
} catch (e) {
7170
atom.notifications.addError("Something's wrong with the `.lesshintrc` file.", {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"atom-linter": "^8.0.0",
1313
"atom-package-deps": "^4.0.1",
14-
"lesshint": "^2.2.1"
14+
"lesshint": "^3.0.0"
1515
},
1616
"devDependencies": {
1717
"babel-eslint": "^7.0.0",

0 commit comments

Comments
 (0)