From fae659c32cb86789fd6e371654d36fc25ede4bdb Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Wed, 1 Jan 2020 16:10:17 +0530 Subject: [PATCH] Add .prettierrc config file to APPM store react app --- .../react-app/.prettierrc | 5 +++++ .../react-app/package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/.prettierrc diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/.prettierrc b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/.prettierrc new file mode 100644 index 0000000000..d281e2bd55 --- /dev/null +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/.prettierrc @@ -0,0 +1,5 @@ +{ + "singleQuote": true, + "trailingComma": "all", + "parser": "flow" +} diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/package.json b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/package.json index 2c51b2b550..db8ec651f8 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/package.json +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/package.json @@ -90,6 +90,7 @@ "build_prod": "NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack -p --display errors-only --hide-modules", "build_dev": "NODE_ENV=development webpack -d --watch ", "server": "node-env-run server --exec nodemon | pino-colada", - "dev2": "run-p server start" + "dev2": "run-p server start", + "lint": "eslint \"src/**/*.js\"" } }