From 70396e2f36e88555ab6abca24e7c31c629863e4e Mon Sep 17 00:00:00 2001 From: Peter deHaan Date: Sat, 22 Jul 2017 23:26:42 -0700 Subject: [PATCH 1/2] Stop ESLint from linting the /public/ directory --- .eslintignore | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.eslintignore b/.eslintignore index a05bd28f..a435bfcc 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,5 +1,3 @@ -public/upload.js -public/download.js -public/webcrypto-shim.js +public test/frontend/bundle.js firefox diff --git a/package.json b/package.json index 1031d4f2..681bdc8d 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "build:version": "node scripts/version", "build:l10n": "cp node_modules/l20n/dist/web/l20n.min.js public", "dev": "npm run build && npm start", - "format": "prettier '{frontend/src/,scripts/,server/,test/}*.js' 'public/*.css' --single-quote --write", + "format": "prettier '{frontend/src/,scripts/,server/,test/**/}*.js' 'public/*.css' --single-quote --write", "lint": "npm-run-all lint:*", "lint:css": "stylelint 'public/*.css'", "lint:js": "eslint .", From c3751c2efc3a67f7688d59994c6da5a432996602 Mon Sep 17 00:00:00 2001 From: Peter deHaan Date: Sun, 23 Jul 2017 00:06:24 -0700 Subject: [PATCH 2/2] Ignore console statements in test/ directory because yolo --- test/.eslintrc.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/.eslintrc.yml b/test/.eslintrc.yml index b65502fd..dd9f4ba4 100644 --- a/test/.eslintrc.yml +++ b/test/.eslintrc.yml @@ -19,3 +19,5 @@ rules: mocha/no-pending-tests: error mocha/no-return-and-callback: warn mocha/no-skipped-tests: error + + no-console: off # ¯\_(ツ)_/¯