Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 23 additions & 0 deletions projects/frontend/shared-components/gui/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.{ts, js}]
quote_type = single

[*.js]
max_line_length = off

[*.{json, scss}]
quote_type = double
indent_size = 2

[*.md]
max_line_length = off
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions projects/frontend/shared-components/gui/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
projects/shared/src/main.ts
projects/documentation-ui/src/main.ts
projects/documentation-ui/src/test.ts
polyfills.ts
108 changes: 108 additions & 0 deletions projects/frontend/shared-components/gui/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*",
"**/node_modules/*"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": {
"project": [
"tsconfig.json"
]
},
"node": {
"project": [
"tsconfig.json"
]
}
}
},
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:ngrx/recommended",
"plugin:rxjs/recommended"
],
"plugins": [
"ngrx",
"prefer-arrow",
"rxjs"
],
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/dot-notation": [
"warn",
{
"allowPrivateClassPropertyAccess": true,
"allowProtectedClassPropertyAccess": true,
"allowIndexSignaturePropertyAccess": true
}
],
"@typescript-eslint/unbound-method": "warn",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-unsafe-argument": "error",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"ngrx/prefer-effect-callback-in-block-statement": "off",
"ngrx/use-consistent-global-store-name": "off",
"ngrx/prefer-action-creator": "off",
"ngrx/no-typed-global-store": "off",
"ngrx/prefer-selector-in-select": "off",
"no-underscore-dangle": "off"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {
"@angular-eslint/template/conditional-complexity": [
"warn",
{
"maxComplexity": 10
}
],
"@angular-eslint/template/cyclomatic-complexity": [
"warn",
{
"maxComplexity": 10
}
],
"@angular-eslint/template/no-positive-tabindex": "warn",
"@angular-eslint/template/use-track-by-function": "off",
"@angular-eslint/template/no-call-expression": "warn"
}
}
]
}
1 change: 1 addition & 0 deletions projects/frontend/shared-components/gui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ npm-debug.log
yarn-error.log
testem.log
/typings
/reports/**

# System Files
.DS_Store
Expand Down
1 change: 1 addition & 0 deletions projects/frontend/shared-components/gui/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
Comment thread
DeltaMichael marked this conversation as resolved.
1 change: 1 addition & 0 deletions projects/frontend/shared-components/gui/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.15.0
26 changes: 26 additions & 0 deletions projects/frontend/shared-components/gui/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"tabWidth": 2,
"useTabs": true,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"arrowParens": "always",
"insertPragma": false,
"overrides": [
{
"files": "*.component.html",
"options": {
"parser": "angular"
}
},
{
"files": "*.html",
"options": {
"parser": "html"
}
}
]
}
5 changes: 1 addition & 4 deletions projects/frontend/shared-components/gui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Bug in general the steps are:
```bash
$ npm config set legacy-peer-deps true
```
1. Install Angular Cli and all other dependencies except '@taurus/shared'
1. Install Angular Cli and all other dependencies except '@vdk/shared'
```bash
npm i -g @angular/cli
```
Expand Down Expand Up @@ -64,6 +64,3 @@ Run `npm run lint` to execute lint via [ESLint](https://eslint.org/docs/user-gui
_**Note**_: Code coverage report will be generated in `reports/coverage`(for the UI Document Wrapper and the Shared Components Library)

_**Note**_: Code coverage report for the Shared UI Components library will be also logged in the Console(and consumed by the CI/CD)

[E2E] Run `npm run e2e` to open [Cypress](https://www.cypress.io/) dev tool for e2e testing
- Cypress environment variables must be supplied providing credentials for needed infrastructure
Loading