Skip to content
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules/*
dist/*
test/*
scripts/*
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ module.exports = {
"extends": "airbnb",
"env": {
"browser": false,
"jest": true
"jest": true,
"mocha": true,
},
"plugins": [
"import"
],
"rules": {
"global-require": 0,
Comment on lines +6 to +12
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use this eslint rules only for test folder. And disable this rule for tests too.

"overrides": [{
	"files": ["test/**/*.js"],
	"env": { "mocha": true },
	"rules": { "func-names": 0, "global-require": 0 },
}],

"arrow-parens": [
"error",
"always"
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
if: tag IS blank
name: "Test lint and audit"
script:
- npm install
- npm run build
- npm run lint
- audit-ci --moderate
- stage: test
Expand All @@ -29,6 +31,4 @@ jobs:
name: "Deploy to npm"
script:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
- npm install
- npm run build
- ./script.sh
2 changes: 1 addition & 1 deletion test/_test-data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrivateKey, constants } from "../";
import { PrivateKey, constants } from '../';

export const privateKey = PrivateKey.fromWif('5KkYp8qdQBaRmLqLz8WVrGjzkt7E13qVcr7cpdLowgJ1mjRyDx2');
export const accountName = 'nathan';
Expand Down
4 changes: 2 additions & 2 deletions test/_test-utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { strictEqual, ok, fail } from "assert";
import { inspect } from "util";
import { strictEqual, ok, fail } from 'assert';
import { inspect } from 'util';

/**
* @param {() => Promise<any> | any} f
Expand Down
Loading