Skip to content

Commit ecb442a

Browse files
committed
Bump min Node version to 6
Remove older Node versions from Travis Use some modern syntax
1 parent 1304e4a commit ecb442a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ node_js:
88
- "8"
99
- "7"
1010
- "6"
11-
- "5"
12-
- "4"
1311

1412
git:
1513
depth: 1

index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ const PluginError = require('plugin-error');
44
const Lesshint = require('lesshint').Lesshint;
55
const through = require('through2');
66

7-
const lesshintPlugin = (options) => {
7+
const lesshintPlugin = (options = {}) => {
88
const lesshint = new Lesshint();
9-
10-
options = options || {};
11-
129
const config = lesshint.getConfig(options.configPath);
1310

1411
lesshint.configure(config);
@@ -68,10 +65,9 @@ const lesshintPlugin = (options) => {
6865
});
6966
};
7067

71-
lesshintPlugin.reporter = (reporter) => {
68+
lesshintPlugin.reporter = (reporter = 'lesshint-reporter-stylish') => {
7269
const lesshint = new Lesshint();
7370

74-
reporter = reporter || 'lesshint-reporter-stylish';
7571
reporter = lesshint.getReporter(reporter);
7672

7773
let results = [];

0 commit comments

Comments
 (0)