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

Commit

Permalink
[fixed] removed duplicated declaration for defaultConfigFile
Browse files Browse the repository at this point in the history
  • Loading branch information
thealjey committed Feb 11, 2017
1 parent 5520224 commit a507dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/JS.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import {JSLint} from './JSLint';
import noop from 'lodash/noop';
import {logError, logLintingErrors} from './logger';
import {findBinary} from './findBinary';
import {join} from 'path';

const defaultConfigFile = join(__dirname, '..', '.eslintrc.yaml');

/**
* JavaScript compilation tools.
Expand Down Expand Up @@ -63,7 +60,7 @@ export class JS {
linter: JSLint;

/* eslint-disable require-jsdoc */
constructor(compress: boolean = true, configFile: string = defaultConfigFile) {
constructor(compress: boolean = true, configFile?: string) {
/* eslint-enable require-jsdoc */
this.compiler = new JSCompiler(compress);
this.linter = new JSLint(configFile);
Expand Down
5 changes: 1 addition & 4 deletions src/SASS.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import {SASSCompiler} from './SASSCompiler';
import {SASSLint} from './SASSLint';
import noop from 'lodash/noop';
import {logLintingErrors} from './logger';
import {join} from 'path';

const defaultConfigFile = join(__dirname, '..', '.stylelintrc.yaml');

/**
* SASS compilation tools.
Expand Down Expand Up @@ -69,7 +66,7 @@ export class SASS {
linter: SASSLint;

/* eslint-disable require-jsdoc */
constructor(compress: boolean = true, includePaths: string[] = [], configFile: string = defaultConfigFile,
constructor(compress: boolean = true, includePaths: string[] = [], configFile?: string,
importOnceOptions: ImportOnceOptions = {}) {
/* eslint-enable require-jsdoc */
this.compiler = new SASSCompiler(compress, includePaths, importOnceOptions);
Expand Down

0 comments on commit a507dbb

Please sign in to comment.