forked from mojaloop/ml-testing-toolkit-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mojaloop/#2092)!: prefixes for api definitions and upgraded node…
… version (mojaloop#138) feat(mojaloop/[#2092](mojaloop/project#2092)): upgrade nodeJS version for core services - mojaloop/project#2092 - Upgrade to node v16 - Update packages/linting/audit/dockerfile - Update ci with dep/audit checks - Installed pre-commit hooks - feat:added options to api management page Notes: - Helm chart mountPaths need to be updated from `/opt/mojaloop-testing-toolkit-ui` to `/opt/app` as follows: ```YAML volumeMounts: - mountPath: /opt/app/config name: <deployment-name> ``` BREAKING CHANGE: Major version bump for node v16 LTS support, re-structuring of project directories to align to core Mojaloop repositories and docker image now uses `/opt/app` instead of `/opt/mojaloop-testing-toolkit-ui` which will impact config mounts. Major version bump since this is a big upgrade.
- Loading branch information
Showing
92 changed files
with
55,504 additions
and
53,216 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"plugins": ["@typescript-eslint", "import"], | ||
"extends": ["airbnb-typescript", "plugin:react/recommended"], | ||
"parser": "@typescript-eslint/parser", | ||
"ignorePatterns": ["src/test"], | ||
"parserOptions": { | ||
"project": "./tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"settings": { | ||
"import/resolver": "node" | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
4, | ||
{ "SwitchCase": 1 } | ||
], | ||
"linebreak-style": [ | ||
2, | ||
"unix" | ||
], | ||
"quotes": [ | ||
2, | ||
"single" | ||
], | ||
"semi": [ | ||
2, | ||
"always" | ||
], | ||
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }], | ||
"no-console": "off", | ||
"no-prototype-builtins": "off", | ||
"object-curly-spacing": ["warn", "always"], | ||
"no-unused-vars": [ | ||
"warn", | ||
{ | ||
"vars": "all", | ||
"args": "none" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"vars": "all", | ||
"args": "none" | ||
} | ||
], | ||
"@typescript-eslint/no-explicit-any": [ | ||
"off", | ||
{ | ||
"ignoreRestArgs": true | ||
} | ||
], | ||
"@typescript-eslint/indent": [ | ||
"error", | ||
4, | ||
{ "SwitchCase": 1 } | ||
], | ||
"react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }], | ||
"max-len": "off", | ||
"no-plusplus": [ | ||
"error", | ||
{ | ||
"allowForLoopAfterthoughts": true | ||
} | ||
], | ||
"no-underscore-dangle": "off", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"**/*.test.js", | ||
"**/*.test.ts", | ||
"src/tests/**/*" | ||
] | ||
} | ||
], | ||
"import/prefer-default-export": "off", | ||
"spaced-comment": ["error", "always", { "exceptions": ["*"] }], | ||
"@typescript-eslint/keyword-spacing": ["error", { "overrides": { | ||
"if": { "after": false }, | ||
"for": { "after": false }, | ||
"while": { "after": false } | ||
} }], | ||
"arrow-parens": ["error", "as-needed"], | ||
"import/extensions": [ | ||
"error", | ||
{ | ||
"js": "never", | ||
"ts": "never", | ||
"json": "ignore" | ||
} | ||
], | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-shadow": "off", | ||
"react/prop-types": "off", | ||
"react/no-direct-mutation-state": "off", | ||
"react/jsx-key": "off", | ||
"@typescript-eslint/space-before-blocks": "off", | ||
"react/no-string-refs": "off", | ||
"react/react-in-jsx-scope": "off" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## Add a TODO comment indicating the reason for each rejected dependency upgrade added to this list, and what should be done to resolve it (i.e. handle it through a story, etc). | ||
reject: [ | ||
# TODO: Tried to upgrade the react and getting many issues while building the app due to the difference in the libraries. | ||
# So keeping the react versions same for now. | ||
"react", | ||
"react-ace", | ||
"react-dom", | ||
"react-router-dom", | ||
"react-scripts", | ||
"web-vitals", | ||
"@types/react", | ||
"@testing-library/jest-dom", | ||
"@testing-library/react", | ||
"@testing-library/user-event", | ||
# Keeping the bootstrap to the same version because there are many renames in the class names in the recent versions | ||
"bootstrap" | ||
|
||
] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
16.15.0 |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Each line is a file pattern followed by one or more owners. | ||
## These owners will be the default owners for everything in | ||
## the repo. Unless a later match takes precedence, | ||
## @global-owner1 and @global-owner2 will be requested for | ||
## review when someone opens a pull request. | ||
#* @global-owner1 @global-owner2 | ||
* @vijayg10 @mdebarros @elnyry-sam-k | ||
## Order is important; the last matching pattern takes the most | ||
## precedence. When someone opens a pull request that only | ||
## modifies JS files, only @js-owner and not the global | ||
## owner(s) will be requested for a review. | ||
# *.js @js-owner | ||
## You can also use email addresses if you prefer. They'll be | ||
## used to look up users just like we do for commit author | ||
## emails. | ||
#*.go docs@example.com | ||
# In this example, @doctocat owns any files in the build/logs | ||
# directory at the root of the repository and any of its | ||
# subdirectories. | ||
# /build/logs/ @doctocat | ||
## The `docs/*` pattern will match files like | ||
## `docs/getting-started.md` but not further nested files like | ||
## `docs/build-app/troubleshooting.md`. | ||
# docs/* docs@example.com | ||
## In this example, @octocat owns any file in an apps directory | ||
## anywhere in your repository. | ||
#apps/ @octocat | ||
## In this example, @doctocat owns any file in the `/docs` | ||
## directory in the root of your repository. | ||
#/docs/ @doctocat |
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
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json", | ||
// audit-ci supports reading JSON, JSONC, and JSON5 config files. | ||
// Only use one of ["low": true, "moderate": true, "high": true, "critical": true] | ||
"moderate": true, | ||
"allowlist": [ | ||
// These are all the exceptions for react, react-scripts and their dependencies as it is very hard to update react version at the moment. | ||
"GHSA-whgm-jr23-g3j9", | ||
"GHSA-whgm-jr23-g3j9", | ||
"GHSA-w8qv-6jwh-64r5", | ||
"GHSA-phwq-j96m-2c2q", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-ww39-953v-wcq6", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-cj88-88mr-972w", | ||
"GHSA-pfrx-2q88-qq97", | ||
"GHSA-c36v-fmgq-m8hx", | ||
"GHSA-33f9-j839-rf8h", | ||
"GHSA-8fr3-hfg3-gpgp", | ||
"GHSA-2r2c-g63r-vccr", | ||
"GHSA-x4jg-mjrx-434g", | ||
"GHSA-cfm4-qjh2-4765", | ||
"GHSA-rp65-9cf3-cjxr", | ||
"GHSA-rp65-9cf3-cjxr", | ||
"GHSA-g4rg-993r-mgx7" | ||
] | ||
} |
Oops, something went wrong.