From 8951f64b5b62e8d351d4b2fe598aae421a2bfa1a Mon Sep 17 00:00:00 2001 From: francium Date: Tue, 4 Sep 2018 00:27:27 -0400 Subject: [PATCH] Update eslintrc and npm watch target Change eslint semicolon and shadow variable rules. Add no-cache Parcel option to the watch target. --- .eslintrc.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 119ce2f..8660bb3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -178,7 +178,7 @@ "no-script-url": "error", "no-self-compare": "error", "no-sequences": "error", - "no-shadow": "error", + "no-shadow": "off", "no-shadow-restricted-names": "error", "no-spaced-func": "off", "no-sync": "error", @@ -238,7 +238,7 @@ "require-jsdoc": "off", "require-unicode-regexp": "error", "rest-spread-spacing": "error", - "semi": "off", + "semi": ["error", "never"], "semi-spacing": "error", "semi-style": [ "error", diff --git a/package.json b/package.json index c9124a4..27720aa 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "eslint": "^5.5.0" }, "scripts": { - "watch": "parcel watch -d zoidboard/static/ -o bundle.js --public-url '/static' ui/main.js", + "watch": "parcel watch --no-cache -d zoidboard/static/ -o bundle.js --public-url '/static' ui/main.js", "lint": "eslint ui" }, "repository": {