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

Commit 8ca6347

Browse files
committed
style: fix lint issues
1 parent d3e19c6 commit 8ca6347

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

lib/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ const getConfig = async (filePath) => {
3232
return null;
3333
};
3434

35-
const phpScopedEditor = editor => editor.getCursors().some(cursor =>
36-
cursor.getScopeDescriptor().getScopesArray().some(scope =>
37-
scope === phpEmbeddedScope));
35+
const phpScopedEditor = editor => (
36+
editor.getCursors().some(cursor => (
37+
cursor.getScopeDescriptor().getScopesArray().some(scope => (
38+
scope === phpEmbeddedScope
39+
))
40+
))
41+
);
3842

3943
const removePHP = str => str.replace(/<\?(?:php|=)?(?:[\s\S])+?\?>/gi, (match) => {
4044
const newlines = match.match(/\r?\n|\r/g);

spec/linter-htmlhint-spec.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
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+
5+
import {
6+
// eslint-disable-next-line no-unused-vars
7+
it, fit, wait, beforeEach, afterEach
8+
} from 'jasmine-fix';
69

710
const { lint } = require('../lib/index.js').provideLinter();
811

0 commit comments

Comments
 (0)