Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit a507dbb

Browse files
committed
[fixed] removed duplicated declaration for defaultConfigFile
1 parent 5520224 commit a507dbb

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/JS.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import {JSLint} from './JSLint';
66
import noop from 'lodash/noop';
77
import {logError, logLintingErrors} from './logger';
88
import {findBinary} from './findBinary';
9-
import {join} from 'path';
10-
11-
const defaultConfigFile = join(__dirname, '..', '.eslintrc.yaml');
129

1310
/**
1411
* JavaScript compilation tools.
@@ -63,7 +60,7 @@ export class JS {
6360
linter: JSLint;
6461

6562
/* eslint-disable require-jsdoc */
66-
constructor(compress: boolean = true, configFile: string = defaultConfigFile) {
63+
constructor(compress: boolean = true, configFile?: string) {
6764
/* eslint-enable require-jsdoc */
6865
this.compiler = new JSCompiler(compress);
6966
this.linter = new JSLint(configFile);

src/SASS.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import {SASSCompiler} from './SASSCompiler';
55
import {SASSLint} from './SASSLint';
66
import noop from 'lodash/noop';
77
import {logLintingErrors} from './logger';
8-
import {join} from 'path';
9-
10-
const defaultConfigFile = join(__dirname, '..', '.stylelintrc.yaml');
118

129
/**
1310
* SASS compilation tools.
@@ -69,7 +66,7 @@ export class SASS {
6966
linter: SASSLint;
7067

7168
/* eslint-disable require-jsdoc */
72-
constructor(compress: boolean = true, includePaths: string[] = [], configFile: string = defaultConfigFile,
69+
constructor(compress: boolean = true, includePaths: string[] = [], configFile?: string,
7370
importOnceOptions: ImportOnceOptions = {}) {
7471
/* eslint-enable require-jsdoc */
7572
this.compiler = new SASSCompiler(compress, includePaths, importOnceOptions);

0 commit comments

Comments
 (0)