diff --git a/.eslintrc.json b/.eslintrc.json index 029800f..b4aa0f8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,3 @@ - /** * This file is part of [York.IE React Base Starter Template] * @@ -47,12 +46,14 @@ }, "plugins": ["react", "import", "prettier"], "rules": { + "react/prop-types": 0, "react/jsx-uses-react": ["off"], "react/react-in-jsx-scope": ["off"], "react/jsx-props-no-spreading": ["off"], "no-shadow": "off", "global-require": 0, "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], + "import/prefer-default-export": ["off", { "target": "any" }], // "import/no-extraneous-dependencies": [ // "error", // { diff --git a/.vscode/settings.json b/.vscode/settings.json index db74a4a..0416131 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "workbench.iconTheme": "vscode-icons", + "workbench.iconTheme": "vs-seti", "editor.formatOnPaste": true, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", diff --git a/craco.config.js b/craco.config.js index 2ae7dd1..51f730f 100644 --- a/craco.config.js +++ b/craco.config.js @@ -1,4 +1,3 @@ - /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ @@ -20,6 +19,7 @@ * -------------------------------------------------- */ +const CracoLessPlugin = require('craco-less'); const { merge } = require('webpack-merge'); const commonConfig = require('./webpack/webpack.common'); @@ -30,6 +30,18 @@ module.exports = (envVars) => { const config = merge(commonConfig, envConfig); return { + plugins: [ + { + plugin: CracoLessPlugin, + options: { + lessLoaderOptions: { + lessOptions: { + javascriptEnabled: true, + }, + }, + }, + }, + ], babel: { presets: [ ['@babel/preset-env'], @@ -52,3 +64,4 @@ module.exports = (envVars) => { webpack: { ...config }, }; }; + diff --git a/package.json b/package.json index cb5ea3b..7216eec 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,29 @@ "version": "0.1.0", "private": true, "dependencies": { + "@ant-design/icons": "^5.1.4", + "@reduxjs/toolkit": "^1.9.5", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^13.0.0", "@testing-library/user-event": "^13.2.1", + "antd": "^5.6.1", + "craco-less": "^2.0.0", + "fast-sort": "^3.4.0", + "history": "^5.3.0", + "less": "^4.1.3", + "lodash.get": "^4.4.2", + "moment": "^2.29.4", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-otp-input": "^3.0.2", + "react-redux": "^8.0.7", + "react-router-dom": "^6.12.1", "react-scripts": "5.0.1", + "redux": "^4.2.1", + "redux-debounced": "^0.5.0", + "redux-persist": "^6.0.0", + "redux-persist-transform-encrypt": "^5.0.0", + "styled-components": "^6.0.0-rc.3", "web-vitals": "^2.1.0" }, "scripts": { @@ -75,7 +92,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "html-webpack-plugin": "^5.5.1", "husky": "^8.0.3", - "less-loader": "^11.1.2", + "less-loader": "^11.1.3", "lint-staged": "^13.2.2", "mini-css-extract-plugin": "^2.7.6", "postcss-loader": "^7.3.2", diff --git a/public/index.html b/public/index.html index aa069f2..a4f5606 100644 --- a/public/index.html +++ b/public/index.html @@ -15,6 +15,10 @@ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ --> + -