Skip to content

Commit

Permalink
Disable import/no-unresolved on lines that require build
Browse files Browse the repository at this point in the history
Certain lines only work after a build stage has been completed, so
these failure can be ignored by the no-unresolved rule.
  • Loading branch information
Gudahtt committed Nov 14, 2019
1 parent a57ff0b commit 9ca22d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion development/metamaskbot-build-announce.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
const request = require('request-promise')
const VERSION = require('../dist/chrome/manifest.json').version
const VERSION = require('../dist/chrome/manifest.json').version // eslint-disable-line import/no-unresolved

start().catch(console.error)

Expand Down
4 changes: 3 additions & 1 deletion development/mock-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ const h = require('react-hyperscript')
const Root = require('../ui/app/pages')
const configureStore = require('../ui/app/store/store')
const actions = require('../ui/app/store/actions')
const states = require('./states')
const backGroundConnectionModifiers = require('./backGroundConnectionModifiers')
const Selector = require('./selector')
const MetamaskController = require('../app/scripts/metamask-controller')
const firstTimeState = require('../app/scripts/first-time-state')
const ExtensionPlatform = require('../app/scripts/platforms/extension')
const noop = function () {}

// the states file is generated before this file is run, but after `lint` is run
const states = require('./states') /* eslint-disable-line import/no-unresolved */

const log = require('loglevel')
window.log = log
log.setLevel('debug')
Expand Down
2 changes: 1 addition & 1 deletion development/sentry-publish.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
const pify = require('pify')
const exec = pify(require('child_process').exec, { multiArgs: true })
const VERSION = require('../dist/chrome/manifest.json').version
const VERSION = require('../dist/chrome/manifest.json').version // eslint-disable-line import/no-unresolved

start().catch(console.error)

Expand Down

0 comments on commit 9ca22d8

Please sign in to comment.