-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix browser back, logo click, navItem select and sidebar open large d… (
#23) * fix browser back, logo click, navItem select and sidebar open large device fix * Task 5093: Code Review (fixed eslint, prettier, props, unused code and files) --------- Co-authored-by: ct-amit <[email protected]>
- Loading branch information
1 parent
019b9e5
commit ce3779e
Showing
107 changed files
with
28,193 additions
and
36,420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
REACT_APP_VERSION = v1.1.0 | ||
REACT_APP_VERSION = v1.1.1 | ||
GENERATE_SOURCEMAP = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,89 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"prettier", | ||
"plugin:react/jsx-runtime", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:react-hooks/recommended", | ||
"eslint:recommended", | ||
"plugin:react/recommended" | ||
], | ||
"settings": { | ||
"react": { | ||
"createClass": "createReactClass", // Regex for Component Factory to use, | ||
// default to "createReactClass" | ||
"pragma": "React", // Pragma to use, default to "React" | ||
"fragment": "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment" | ||
"version": "detect", // React version. "detect" automatically picks the version you have installed. | ||
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value. | ||
// It will default to "latest" and warn if missing, and to "detect" in the future | ||
"flowVersion": "0.53" // Flow version | ||
}, | ||
"extends": ["prettier", "plugin:react/jsx-runtime", "plugin:jsx-a11y/recommended", "plugin:react-hooks/recommended"], | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"moduleDirectory": ["node_modules", "src/"] | ||
} | ||
} | ||
}, | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"experimentalObjectRestSpread": true, | ||
"impliedStrict": true | ||
}, | ||
"ecmaVersion": 12 | ||
}, | ||
"plugins": ["prettier", "react", "react-hooks"], | ||
"rules": { | ||
"react/jsx-filename-extension": 0, | ||
"no-param-reassign": 0, | ||
"react/prop-types": 1, | ||
"react/require-default-props": 0, | ||
"react/no-array-index-key": 0, | ||
"react/jsx-props-no-spreading": 0, | ||
"react/forbid-prop-types": 0, | ||
"import/order": 0, | ||
"no-console": 0, | ||
"jsx-a11y/anchor-is-valid": 0, | ||
"prefer-destructuring": 0, | ||
"no-shadow": 0, | ||
"no-unused-vars": [ | ||
1, | ||
{ | ||
"ignoreRestSiblings": false | ||
} | ||
], | ||
"prettier/prettier": [ | ||
2, | ||
{ | ||
"bracketSpacing": true, | ||
"printWidth": 140, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"tabWidth": 4, | ||
"useTabs": false, | ||
"endOfLine": "auto" | ||
} | ||
] | ||
"import/resolver": { | ||
"node": { | ||
"moduleDirectory": ["node_modules", "src/"] | ||
} | ||
} | ||
}, | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"experimentalObjectRestSpread": true, | ||
"impliedStrict": true, | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 12 | ||
}, | ||
"plugins": ["prettier", "react", "react-hooks"], | ||
"rules": { | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
"react/react-in-jsx-scope": "off", | ||
"no-undef": "off", | ||
"react/display-name": "off", | ||
"react/jsx-filename-extension": "off", | ||
"no-param-reassign": "off", | ||
"react/prop-types": 1, | ||
"react/require-default-props": "off", | ||
"react/no-array-index-key": "off", | ||
"react/jsx-props-no-spreading": "off", | ||
"react/forbid-prop-types": "off", | ||
"import/order": "off", | ||
"import/no-cycle": "off", | ||
"no-console": "off", | ||
"jsx-a11y/anchor-is-valid": "off", | ||
"prefer-destructuring": "off", | ||
"no-shadow": "off", | ||
"import/no-named-as-default": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"jsx-a11y/no-autofocus": "off", | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"patterns": ["@mui/*/*/*", "!@mui/material/test-utils/*"] | ||
} | ||
], | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"ignoreRestSiblings": false | ||
} | ||
], | ||
"prettier/prettier": [ | ||
"warn", | ||
{ | ||
"bracketSpacing": true, | ||
"printWidth": 140, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"endOfLine": "auto" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,38 +2,38 @@ name: Node - SSH deploy | |
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
SFTP-deploy: | ||
name: 🎉 Deploy | ||
runs-on: ubuntu-latest | ||
SFTP-deploy: | ||
name: 🎉 Deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 🚚 Get latest code | ||
uses: actions/checkout@v2 | ||
steps: | ||
- name: 🚚 Get latest code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '16' | ||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '16' | ||
|
||
- name: 🔨 Build Project | ||
run: | | ||
yarn | ||
yarn build | ||
- name: 🔨 Build Project | ||
run: | | ||
yarn | ||
yarn build | ||
- name: 📂 Deploy to Server | ||
uses: easingthemes/[email protected] | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }} | ||
# ARGS: "-rltgoDzvO --delete" | ||
SOURCE: 'build/' | ||
REMOTE_HOST: 192.34.62.123 | ||
REMOTE_USER: mantis | ||
TARGET: public_html/free | ||
EXCLUDE: '/dist/, /node_modules/' | ||
- name: 📂 Deploy to Server | ||
uses: easingthemes/[email protected] | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }} | ||
# ARGS: "-rltgoDzvO --delete" | ||
SOURCE: 'build/' | ||
REMOTE_HOST: 192.34.62.123 | ||
REMOTE_USER: mantis | ||
TARGET: public_html/free | ||
EXCLUDE: '/dist/, /node_modules/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"printWidth": 140, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"tabWidth": 4, | ||
"useTabs": false | ||
"bracketSpacing": true, | ||
"printWidth": 140, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.