1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-12-27 23:27:50 +01:00

ESlint fixes

* use local eslint on Travis
* lint fixes for examples
This commit is contained in:
Matthias Kretschmann 2018-05-11 15:49:16 +02:00
parent a149ef9125
commit 364f0a25d3
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,6 @@
const driver = require('bigchaindb-driver') // eslint-disable-line import/no-unresolved
/* eslint-disable import/no-unresolved */
const driver = require('bigchaindb-driver')
require('dotenv').config()

View File

@ -1,4 +1,6 @@
const driver = require('bigchaindb-driver') // eslint-disable-line import/no-unresolved
/* eslint-disable import/no-unresolved */
const driver = require('bigchaindb-driver')
require('dotenv').config()

View File

@ -1,4 +1,6 @@
const driver = require('bigchaindb-driver') // eslint-disable-line import/no-unresolved
/* eslint-disable import/no-unresolved */
const driver = require('bigchaindb-driver')
require('dotenv').config()

View File

@ -1,6 +1,8 @@
import bip39 from 'bip39' // eslint-disable-line import/no-unresolved
/* eslint-disable import/no-unresolved */
const driver = require('bigchaindb-driver') // eslint-disable-line import/no-unresolved
import bip39 from 'bip39'
const driver = require('bigchaindb-driver')
// ======== Create Keypair ======== //
/**

View File

@ -13,7 +13,7 @@
"main": "./dist/node/index.js",
"browser": "./dist/browser/bigchaindb-driver.cjs2.min.js",
"scripts": {
"lint": "eslint ./",
"lint": "./node_modules/.bin/eslint ./",
"build": "npm run clean && npm run build:cjs && npm run build:dist",
"build:bundle": "webpack",
"build:cjs": "cross-env BABEL_ENV=cjs babel ./src -d dist/node",