From 61a80811f00f096639009812401106326b1dfdaf Mon Sep 17 00:00:00 2001 From: Daniel Thompson-Yvetot <35242872+nothingismagick@users.noreply.github.com> Date: Thu, 2 May 2019 22:33:05 +0200 Subject: [PATCH] chore(housecleaning) lint everywhere --- .lintstagedrc.yml | 2 +- .npmignore | 2 ++ package.json | 2 +- src/install.js | 1 - yarn.lock | 49 ++++++----------------------------------------- 5 files changed, 10 insertions(+), 46 deletions(-) diff --git a/.lintstagedrc.yml b/.lintstagedrc.yml index ca0c8df..34f4c8f 100644 --- a/.lintstagedrc.yml +++ b/.lintstagedrc.yml @@ -1,3 +1,3 @@ linters: - src/*.{js}: + src/**/*.{js}: - eslint diff --git a/.npmignore b/.npmignore index 01f5fdb..bc90bea 100644 --- a/.npmignore +++ b/.npmignore @@ -9,3 +9,5 @@ npm-debug.log test .eslintrc.js .eslintignore +coverage +yarn-error.log diff --git a/package.json b/package.json index 7e180e8..041a056 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "audit:snyk": "snyk test --org=info-fth --json > ./test/audits/snyk.json", "audit:node_modules": "yarn audit --json > ./test/audits/node_modules_audit.json", "audit:licenses": "nlf --summary detail > ./test/audits/licenses.txt", - "precommit": "yarn test && node node_modules/.bin/snyk test --severity-threshold=medium && node node_modules/.bin/jest-badges-readme --coverageDir=./coverage && git add 'README.md' && node_modules/.bin/lint-staged" + "precommit": "yarn test && node node_modules/.bin/jest-badges-readme --coverageDir=./coverage && git add 'README.md' && node_modules/.bin/lint-staged" }, "dependencies": { "@feathersjs/client": "^3.7.8", diff --git a/src/install.js b/src/install.js index f95f90a..817f9f5 100644 --- a/src/install.js +++ b/src/install.js @@ -8,7 +8,6 @@ * @param {function} api */ module.exports = function (api) { - console.log('NOT READY FOR USE') api.render('./templates/base') /* istanbul ignore if */ if (api.prompts.options === 'server') { diff --git a/yarn.lock b/yarn.lock index 54ff0f4..7213066 100644 --- a/yarn.lock +++ b/yarn.lock @@ -975,12 +975,10 @@ "@types/istanbul-lib-coverage" "^1.1.0" "@types/yargs" "^12.0.9" -"@olavoparno/jest-badges-readme@^1.2.6": - version "1.2.8" - resolved "https://registry.npmjs.org/@olavoparno/jest-badges-readme/-/jest-badges-readme-1.2.8.tgz#6b09cbd501e550e89e8dc017808e6f26f3734cbb" - integrity sha512-zZpgFUzsNla8NSsTelgO/Bk0ax4+iT4hyYu6GRO1r/UOeILZkY5Dlfx0LMNk3rM8Jy+pMPEJa/mZVt4Eeup03g== - dependencies: - yargs "^13.2.2" +"@olavoparno/jest-badges-readme@^1.2.8": + version "1.3.4" + resolved "https://registry.npmjs.org/@olavoparno/jest-badges-readme/-/jest-badges-readme-1.3.4.tgz#f0eea3da67c16aa57b6397029ed8b883759ea4e4" + integrity sha512-TaaFkCCPTtE93zN+ipVpoc912Febx18GvU4aqSGunnsDLedRJvQHh63DQz4Lxt/N/RRrHSzUEqCFF/vCgn9KWg== "@quasar/babel-preset-app@^1.0.1": version "1.0.2" @@ -2800,11 +2798,6 @@ get-caller-file@^1.0.1: resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== -get-caller-file@^2.0.1: - version "2.0.5" - resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - get-own-enumerable-property-symbols@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.0.tgz#b877b49a5c16aefac3655f2ed2ea5b684df8d203" @@ -4820,7 +4813,7 @@ os-locale@^1.4.0: dependencies: lcid "^1.0.0" -os-locale@^3.0.0, os-locale@^3.1.0: +os-locale@^3.0.0: version "3.1.0" resolved "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" integrity sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q== @@ -5477,11 +5470,6 @@ require-main-filename@^1.0.1: resolved "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE= -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - require-uncached@^1.0.3: version "1.0.3" resolved "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" @@ -6826,7 +6814,7 @@ y18n@^3.2.0: resolved "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" integrity sha1-bRX7qITAhnnA136I53WegR4H+kE= -"y18n@^3.2.1 || ^4.0.0", y18n@^4.0.0: +"y18n@^3.2.1 || ^4.0.0": version "4.0.0" resolved "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== @@ -6844,14 +6832,6 @@ yargs-parser@^11.1.1: camelcase "^5.0.0" decamelize "^1.2.0" -yargs-parser@^13.0.0: - version "13.0.0" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz#3fc44f3e76a8bdb1cc3602e860108602e5ccde8b" - integrity sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - yargs@^12.0.2: version "12.0.5" resolved "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz#05f5997b609647b64f66b81e3b4b10a368e7ad13" @@ -6870,23 +6850,6 @@ yargs@^12.0.2: y18n "^3.2.1 || ^4.0.0" yargs-parser "^11.1.1" -yargs@^13.2.2: - version "13.2.2" - resolved "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz#0c101f580ae95cea7f39d927e7770e3fdc97f993" - integrity sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA== - dependencies: - cliui "^4.0.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - os-locale "^3.1.0" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^13.0.0" - yargs@^3.19.0: version "3.32.0" resolved "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz#03088e9ebf9e756b69751611d2a5ef591482c995"