Skip to content

Commit

Permalink
Refactor the loading logic
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrZhynzher committed Nov 13, 2023
1 parent 41d5bfb commit 70d89e1
Show file tree
Hide file tree
Showing 83 changed files with 6,045 additions and 6,700 deletions.
14 changes: 14 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"corejs": false,
"helpers": true,
"regenerator": true,
"useESModules": false
}
]
]
}
23 changes: 17 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
"es6": true
},
"root": true,
"parser": "babel-eslint",
"plugins": ["react", "prettier"],
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "prettier", "@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier", "plugin:@typescript-eslint/recommended"],
"settings": {
"react": {
"createClass": "createReactClass",
Expand All @@ -28,6 +35,7 @@
"react/no-string-refs": "off",
"react/jsx-no-undef": "off",
"react/jsx-key": "off",
"react/react-in-jsx-scope": "off",
"no-case-declarations": "off",
"react/no-unescaped-entities": "off",
"linebreak-style": "off",
Expand All @@ -53,7 +61,7 @@
"no-multi-spaces": "off",
"no-prototype-builtins": "off",
"wrap-iife": ["error", "any"],
"no-use-before-define": ["error", "nofunc"],
"no-use-before-define": "off",
"object-property-newline": "off",
"no-restricted-syntax": "off",
"no-else-return": "off",
Expand All @@ -66,8 +74,11 @@
"no-plusplus": "off",
"no-multi-assign": "off",
"react/no-unknown-property": "off",
"lines-between-class-members": ["error", "always"],
"lines-between-class-members": ["off"],
"no-debugger": "warn",
"prettier/prettier": ["error"]
"prettier/prettier": ["error"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
4 changes: 2 additions & 2 deletions .github/workflows/aws-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 16.x
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/aws-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 16.x
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/aws-tst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 16.x
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 16.x
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
uses: gittools/actions/gitversion/[email protected]
id: gitversion

- name: Use Node.js 12
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Cache Node.js modules
uses: actions/cache@v2
Expand All @@ -54,7 +54,7 @@ jobs:
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
Expand All @@ -74,4 +74,4 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: echo ${{ steps.docker_build.outputs.digest }}
Loading

0 comments on commit 70d89e1

Please sign in to comment.