Skip to content

Commit

Permalink
fix(eslint): allow eslint to internally require the custom config (#264)
Browse files Browse the repository at this point in the history
Fixes #263.
  • Loading branch information
varl authored and amcgee committed Jan 15, 2020
1 parent eedd184 commit 27d6693
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shell/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const fs = require('fs'),
const customConfigFile = path.resolve('../../.eslintrc.js')
const hasCustomConfig = fs.existsSync(customConfigFile)

const extendsArray = hasCustomConfig
? [require(customConfigFile)]
: ['react-app']
const extendsArray = hasCustomConfig ? [customConfigFile] : ['react-app']

module.exports = {
extends: extendsArray,
Expand Down

0 comments on commit 27d6693

Please sign in to comment.