From d4aa37534dbd707788da370a44acea8f6ea2c486 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Tue, 27 Apr 2021 10:34:52 +0100 Subject: [PATCH] Added new lint command for code only - allows for linting just code files, not the tests because the tests take a really long time to lint - I want to make eslint do more heavy lifting in terms of code style, so this will be useful as the warnings start to pile up --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 9a6de131ed..27820ae816 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "lint:shared": "eslint --ignore-path .eslintignore 'core/shared/**/*.js'", "lint:frontend": "eslint --ignore-path .eslintignore 'core/frontend/**/*.js'", "lint:test": "eslint -c test/.eslintrc.json --ignore-path test/.eslintignore 'test/**/*.js'", + "lint:code": "yarn lint:server && yarn lint:shared && yarn lint:frontend", "lint": "yarn lint:server && yarn lint:shared && yarn lint:frontend && yarn lint:test", "posttest": "yarn lint", "fixmodulenotdefined": "yarn cache clean && cd core/client && rm -rf node_modules tmp dist && yarn && cd ../../"