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

Commit 2d1337a

Browse files
committed
style: fix lint issues
1 parent eea05d8 commit 2d1337a

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

lib/main.js

+9-10
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ const loadDeps = () => {
2323
}
2424
};
2525

26-
const getCheckNotificationDetails = checkDetail =>
27-
(notification) => {
28-
const { detail } = notification.getOptions();
29-
if (detail === checkDetail) {
30-
return true;
31-
}
32-
return false;
33-
};
26+
const getCheckNotificationDetails = checkDetail => (notification) => {
27+
const { detail } = notification.getOptions();
28+
if (detail === checkDetail) {
29+
return true;
30+
}
31+
return false;
32+
};
3433

3534
export default {
3635
activate() {
@@ -153,8 +152,8 @@ export default {
153152
try {
154153
lintResult = JSON.parse(output);
155154
} catch (e) {
156-
const excerpt = 'Invalid response received from CSSLint, check ' +
157-
'your console for more details.';
155+
const excerpt = 'Invalid response received from CSSLint, check '
156+
+ 'your console for more details.';
158157
return [{
159158
severity: 'error',
160159
excerpt,

spec/linter-csslint-spec.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
'use babel';
22

33
import * as path from 'path';
4-
// eslint-disable-next-line no-unused-vars
5-
import { it, fit, wait, beforeEach, afterEach } from 'jasmine-fix';
4+
import {
5+
// eslint-disable-next-line no-unused-vars
6+
it, fit, wait, beforeEach, afterEach,
7+
} from 'jasmine-fix';
68
import linterCsslint from '../lib/main';
79

810
const linterProvider = linterCsslint.provideLinter();
@@ -15,8 +17,8 @@ const emptyPath = path.join(__dirname, 'fixtures', 'empty.css');
1517
const projectPath = path.join(__dirname, 'fixtures', 'project');
1618
const projectBadPath = path.join(projectPath, 'files', 'badWC.css');
1719

18-
const emptyRulesDetails = 'Rules without any properties specified should be ' +
19-
'removed. (empty-rules)';
20+
const emptyRulesDetails = 'Rules without any properties specified should be '
21+
+ 'removed. (empty-rules)';
2022
const emptRulesUrl = 'https://github.com/CSSLint/csslint/wiki/Disallow-empty-rules';
2123

2224
describe('The CSSLint provider for Linter', () => {

0 commit comments

Comments
 (0)