lint: require strict mode.

This commit is contained in:
Christopher Jeffrey 2017-06-24 05:11:54 -07:00
parent a0bd9680fe
commit d3b24da2e1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
18 changed files with 47 additions and 12 deletions

View File

@ -9,6 +9,7 @@
"ecmaVersion": 8
},
"rules": {
"strict": 2,
"indent": ["error", 2, {
"SwitchCase": 1,
"CallExpression": {

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'ebd41040e4bb3ec742c9e381d31ef2a41a48b6685c96e7cef3c1df6cd4331c99',
'ca42dd41745fd0b81eb902362cf9d8bf719da1bd1b1efc946f5b4c99f42c1b9e',

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'的',
'一',
@ -2046,5 +2048,5 @@ module.exports = [
'韦',
'怨',
'矮',
'歇'
];
'歇'
];

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'的',
'一',
@ -2046,5 +2048,5 @@ module.exports = [
'韋',
'怨',
'矮',
'歇'
];
'歇'
];

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'abandon',
'ability',
@ -2046,5 +2048,5 @@ module.exports = [
'zebra',
'zero',
'zone',
'zoo'
];
'zoo'
];

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'abaisser',
'abandon',
@ -2046,5 +2048,5 @@ module.exports = [
'zèbre',
'zénith',
'zeste',
'zoologie'
];
'zoologie'
];

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'abaco',
'abbaglio',
@ -2046,5 +2048,5 @@ module.exports = [
'zucchero',
'zufolo',
'zulu',
'zuppa'
];
'zuppa'
];

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'あいこくしん',
'あいさつ',
@ -2046,5 +2048,5 @@ module.exports = [
'わじまし',
'わすれもの',
'わらう',
'われる'
];
'われる'
];

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'ábaco',
'abdomen',

View File

@ -4,6 +4,8 @@
* https://github.com/bcoin-org/bcoin
*/
'use strict';
var assert = require('assert');
var crypto = require('../crypto/crypto');

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'2.7.8.12:8333',
'2.228.70.198:8333',

View File

@ -1,3 +1,5 @@
'use strict';
module.exports = [
'thfsmmn2jbitcoin.onion',
'it2pj4f7657g3rhi.onion',

View File

@ -4,4 +4,6 @@
* https://github.com/bcoin-org/bcoin
*/
'use strict';
module.exports = require('../../vendor/setimmediate');

View File

@ -4,6 +4,8 @@
* https://github.com/bcoin-org/bcoin
*/
'use strict';
module.exports = typeof setImmediate !== 'function'
? process.nextTick
: setImmediate;

View File

@ -4,6 +4,8 @@
* https://github.com/bcoin-org/bcoin
*/
'use strict';
var unorm = require('../../vendor/unorm');
function nfkd(str) {

View File

@ -4,6 +4,8 @@
* https://github.com/bcoin-org/bcoin
*/
'use strict';
var unorm;
/**

View File

@ -49,6 +49,8 @@ tojs() {
local data=$(cat)
local body=$(echo "$data" | head -n -1)
local last=$(echo "$data" | tail -n 1)
echo "'use strict';"
echo ''
echo 'module.exports = ['
echo "$body" | while read line; do
echo " '${line}',"

View File

@ -12,6 +12,8 @@ tojs() {
local data=$(cat)
local body=$(echo "$data" | head -n -1)
local last=$(echo "$data" | tail -n 1)
echo "'use strict';"
echo ''
echo 'module.exports = ['
echo "$body" | while read line; do
if echo "$line" | grep '^#' > /dev/null; then