Skip to content

Commit

Permalink
fix: add an eslint config to shell, falling back to react-app defaults (
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgee committed Dec 20, 2019
1 parent 127fd16 commit 2c7deae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions shell/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const fs = require('fs'),
path = require('path')

const customConfigFile = path.resolve('../../.eslintrc.js')
const hasCustomConfig = fs.existsSync(customConfigFile)

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

module.exports = {
extends: extendsArray,
}

0 comments on commit 2c7deae

Please sign in to comment.