From bc701a20711fd27d87518e153ce9a79bce3da6fe Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 10 Nov 2020 21:12:59 +0200 Subject: [PATCH] chore(travis) node v15 --- .eslintrc.json | 4 ++-- .gitignore | 2 +- .madrun.js | 2 +- .travis.yml | 2 +- lib/rest/get.spec.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index c50f3a2..57a5ecd 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,8 +6,8 @@ } }], "extends": [ - "plugin:putout/recommended", - "plugin:node/recommended" + "plugin:node/recommended", + "plugin:putout/recommended" ], "plugins": [ "putout", diff --git a/.gitignore b/.gitignore index 857df65..4db0add 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,5 @@ legacy .nyc_output *.swp - +.putoutcache diff --git a/.madrun.js b/.madrun.js index 0a24724..c7d9a3e 100644 --- a/.madrun.js +++ b/.madrun.js @@ -9,7 +9,7 @@ module.exports = { 'watch:test': () => run('watcher', 'npm test'), 'watch:lint': () => run('watcher', '\'npm run lint\''), 'watcher': () => 'nodemon -w test -w lib --exec', - 'lint': () => 'putout lib .madrun.js', + 'lint': () => 'putout lib *.js *.md', 'fix:lint': () => run('lint', '--fix'), }; diff --git a/.travis.yml b/.travis.yml index 2d3e9c4..72fc6ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: node_js node_js: + - 15 - 14 - 12 - - 10 script: - npm run lint diff --git a/lib/rest/get.spec.js b/lib/rest/get.spec.js index 7b68d82..b96f8b9 100644 --- a/lib/rest/get.spec.js +++ b/lib/rest/get.spec.js @@ -128,7 +128,7 @@ test('restbox: get: readbox: hash', async (t) => { const {random} = Math; Math.random = stub() - .returns(31337); + .returns(31_337); const {body} = await request.get('/dropbox/fs/?hash');