Skip to content

Commit

Permalink
test: clean up eslint configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Dec 9, 2021
1 parent eea15c2 commit 72bc83c
Show file tree
Hide file tree
Showing 58 changed files with 4 additions and 230 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
},
"rules": {
"max-len": "off",
"prefer-arrow-callback": "off"
"prefer-arrow-callback": "off",
"no-return-assign": "off"
}
}
],
Expand Down
3 changes: 0 additions & 3 deletions test/address-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
4 changes: 0 additions & 4 deletions test/airdrop-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-return-assign: "off" */

'use strict';

const fs = require('fs');
Expand Down
3 changes: 0 additions & 3 deletions test/anyone-can-renew-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
4 changes: 0 additions & 4 deletions test/auction-reorg-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-return-assign: "off" */

// DO NOT TOUCH THESE TESTS
// They trigger the tree interval reorg bug.

Expand Down
3 changes: 0 additions & 3 deletions test/auction-rpc-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
4 changes: 0 additions & 4 deletions test/auction-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-return-assign: "off" */

'use strict';

const assert = require('bsert');
Expand Down
4 changes: 0 additions & 4 deletions test/block-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-unused-vars: "off" */

'use strict';

const assert = require('bsert');
Expand Down
10 changes: 0 additions & 10 deletions test/blockstore-test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
/**
* test/blockstore-test.js - blockstore test for hsd
* Copyright (c) 2019, Braydon Fuller (MIT License).
* Copyright (c) 2019, Mark Tyneway (MIT License).
* https://github.com/handshake-org/hsd
*/

/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const Logger = require('blgr');
Expand Down
3 changes: 0 additions & 3 deletions test/brontide-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('assert');
Expand Down
3 changes: 0 additions & 3 deletions test/chain-bip9-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/chain-checkpoints-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/chain-locktime-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/chain-migration-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/chain-prune-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/chain-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
4 changes: 0 additions & 4 deletions test/claim-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-implicit-coercion: "off" */

'use strict';

const assert = require('bsert');
Expand Down
4 changes: 0 additions & 4 deletions test/coin-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-unused-vars: "off" */

'use strict';

const {BufferWriter} = require('bufio');
Expand Down
4 changes: 0 additions & 4 deletions test/coins-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-unused-vars: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/consensus-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
2 changes: 0 additions & 2 deletions test/contractstate-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env mocha */

'use strict';

const assert = require('bsert');
Expand Down
9 changes: 0 additions & 9 deletions test/disable-goosig-test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/**
* test/disable-goosig-test.js - Test disabling GooSig
* Copyright (c) 2020, The Handshake Developers (MIT License).
* https://github.com/handshake-org/hsd
*/

/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/dns-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/getwork-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/hd-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const base58 = require('bcrypto/lib/encoding/base58');
Expand Down
3 changes: 0 additions & 3 deletions test/headers-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const Headers = require('../lib/primitives/headers');
Expand Down
3 changes: 0 additions & 3 deletions test/http-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
4 changes: 0 additions & 4 deletions test/input-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-unused-vars: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/interactive-swap-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/invalid-reorg-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
11 changes: 0 additions & 11 deletions test/keyring-test.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/mempool-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/migrations-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
2 changes: 0 additions & 2 deletions test/miner-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env mocha */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/mnemonic-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
6 changes: 0 additions & 6 deletions test/mtx-test.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-unused-vars: "off" */

'use strict';

const assert = require('bsert');
const bio = require('bufio');
const CoinView = require('../lib/coins/coinview');
const WalletCoinView = require('../lib/wallet/walletcoinview');
const MTX = require('../lib/primitives/mtx');
const Path = require('../lib/wallet/path');
const common = require('./util/common');

const mtx1json = require('./data/mtx1.json');
const mtx2json = require('./data/mtx2.json');
Expand Down
3 changes: 0 additions & 3 deletions test/net-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
10 changes: 0 additions & 10 deletions test/node-http-test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
/*!
* test/node-http-test.js - test for wallet http endoints
* Copyright (c) 2019, Mark Tyneway (MIT License).
* https://github.com/handshake-org/hsd
*/

/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-return-assign: "off" */

'use strict';

const assert = require('bsert');
Expand Down
9 changes: 0 additions & 9 deletions test/node-rpc-test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/**
* test/node-rpc-test.js - Node RPC tests for hsd
* Copyright (c) 2020, The Handshake Developers (MIT Licence)
* https://github.com/handshake-org/hsd
*/

/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
4 changes: 0 additions & 4 deletions test/path-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */
/* eslint no-unused-vars: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/script-introspection-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/script-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
6 changes: 0 additions & 6 deletions test/sighash-test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*!
* sighash-test.js - test sighash types
* Copyright (c) 2019, Mark Tyneway (MIT License).
* https://github.com/handshake-org/hsd
*/

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/slidingwindow-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/tx-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const {encoding} = require('bufio');
Expand Down
3 changes: 0 additions & 3 deletions test/txmeta-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/txstart-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/utils-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
3 changes: 0 additions & 3 deletions test/wallet-accounts-auction-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-env mocha */
/* eslint prefer-arrow-callback: "off" */

'use strict';

const assert = require('bsert');
Expand Down
Loading

0 comments on commit 72bc83c

Please sign in to comment.