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

Commit b69a068

Browse files
committed
style: fix linting issues
1 parent 56dd6a4 commit b69a068

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

lib/init.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
// eslint-disable-next-line import/no-extraneous-dependencies, import/extensions
44
import { CompositeDisposable, Range } from 'atom';
55
import { find, generateRange, exec } from 'atom-linter';
6-
import { dirname, join, relative, sep, isAbsolute } from 'path';
6+
import {
7+
dirname, join, relative, sep, isAbsolute,
8+
} from 'path';
79
import { existsSync, readFileSync, readdirSync } from 'fs';
810

911
const tmp = require('tmp');
@@ -368,11 +370,11 @@ export default {
368370
async lint(textEditor) {
369371
const filePath = textEditor.getPath();
370372
if (
371-
isForcedElixirc() ||
372-
!(await isMixProject(filePath)) ||
373-
isExsFile(filePath) ||
374-
(await isPhoenixProject(filePath)) ||
375-
(await isUmbrellaProject(filePath))
373+
isForcedElixirc()
374+
|| !(await isMixProject(filePath))
375+
|| isExsFile(filePath)
376+
|| (await isPhoenixProject(filePath))
377+
|| (await isUmbrellaProject(filePath))
376378
) {
377379
return lintElixirc(textEditor);
378380
}

spec/linter-elixirc-spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import { join } from 'path';
44
import { remove } from 'fs-extra';
5-
// eslint-disable-next-line no-unused-vars
6-
import { it, fit, wait, beforeEach, afterEach } from 'jasmine-fix';
5+
import {
6+
// eslint-disable-next-line no-unused-vars
7+
it, fit, wait, beforeEach, afterEach,
8+
} from 'jasmine-fix';
79

810
const { lint } = require('../lib/init.js').provideLinter();
911

0 commit comments

Comments
 (0)