Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/1135 formatter naming conventions #1250

Draft
wants to merge 77 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
d014006
introduce spotless formatter
kcinay055679 Nov 15, 2024
27388c7
update readme and pipeline
kcinay055679 Nov 15, 2024
666571e
add typescript formatter
kcinay055679 Nov 18, 2024
18e3014
add frontedn config
kcinay055679 Nov 18, 2024
2bd83c9
update tsconfig.json
kcinay055679 Nov 18, 2024
f68dde5
install eslint for formating
kcinay055679 Nov 18, 2024
a07669b
update typescript-eslint to 8.15.0
Miguel7373 Nov 19, 2024
c484f77
edit config
Miguel7373 Nov 19, 2024
e04c86c
put unused-imports plugin into config
Miguel7373 Nov 19, 2024
1c8261e
change config for spec files
Miguel7373 Nov 19, 2024
9df282c
add stylistic plugin to eslnt
kcinay055679 Nov 22, 2024
5c98be6
add eslint stylistic rules
kcinay055679 Nov 22, 2024
29d1443
update config for eslint stylic
kcinay055679 Nov 22, 2024
86f5d14
styling indent set to 2
kcinay055679 Nov 22, 2024
3527ca8
add html formatting
kcinay055679 Nov 22, 2024
84b31d5
extract eslint format in seperated command
kcinay055679 Nov 22, 2024
6911fa8
readd prettier for css json and yaml
kcinay055679 Nov 22, 2024
b1b3898
update eslint config
kcinay055679 Nov 22, 2024
1172e4e
disable check for multipline tenary
kcinay055679 Nov 22, 2024
81c0e67
refactor config to extract rules to apply only on ts files
kcinay055679 Nov 22, 2024
89c169b
allow arguments
kcinay055679 Nov 22, 2024
766684a
Update excluded eslint rules that we want to resolve in follow up ticket
RandomTannenbaum Nov 22, 2024
5a3e473
Fix sentence in readme
RandomTannenbaum Nov 22, 2024
993c4d2
Allow ts-ignores
RandomTannenbaum Nov 25, 2024
415a799
remove unnecessary comma
Miguel7373 Nov 25, 2024
8860b4f
Replace javax with jakarta in import order property of formatter
RandomTannenbaum Nov 27, 2024
1f944fb
get all changes from apply branch
kcinay055679 Dec 9, 2024
7808cec
update precommit hook
kcinay055679 Dec 9, 2024
488da28
update backend formatter
kcinay055679 Dec 9, 2024
42671d7
update java import order to alphabetically
kcinay055679 Dec 9, 2024
476d1bf
fix backend formatter for annotations
kcinay055679 Dec 9, 2024
c831f7c
update formatting config to fix indentation of annonation params
kcinay055679 Dec 9, 2024
3e9994e
update formatter to improve parameter formatting
kcinay055679 Dec 9, 2024
ffe1e0f
update parameter formatting
kcinay055679 Dec 9, 2024
3d93937
update formatter
kcinay055679 Dec 10, 2024
05a3af8
add space after array initializer
kcinay055679 Dec 10, 2024
ba32796
update precommit hook
kcinay055679 Dec 10, 2024
78d83eb
precommit hook only updates changed files
kcinay055679 Dec 10, 2024
bbf7350
clean up pre-commit hook
kcinay055679 Dec 10, 2024
2db8502
remove accidently added fiels
kcinay055679 Dec 10, 2024
0fb4160
remove objective from this pr
kcinay055679 Dec 10, 2024
dfeaca3
add verbose option to git add in precommit hook
kcinay055679 Dec 10, 2024
7e7b7cb
remove objective model from pr
kcinay055679 Dec 10, 2024
4f9c4b9
remove debug log
kcinay055679 Dec 10, 2024
92f3295
restore objective model
kcinay055679 Dec 10, 2024
dc0ea0f
add angular eslint config
kcinay055679 Dec 10, 2024
99adf77
clean up frontend formatter config
kcinay055679 Dec 10, 2024
8464e06
add scss to eslint config
kcinay055679 Dec 10, 2024
8b9a59c
rename npm scripts
kcinay055679 Dec 10, 2024
4dea0bf
use json eslint plugin and remove prettier
kcinay055679 Dec 10, 2024
1d8147b
use prettier again to format scss
kcinay055679 Dec 12, 2024
9130b6c
add prettierignore file
kcinay055679 Dec 12, 2024
b215fe0
configure prettier
kcinay055679 Dec 12, 2024
f6709ec
update precommit hook to use prettier
kcinay055679 Dec 12, 2024
5dcb572
replace new lines with space to read changed files
kcinay055679 Dec 12, 2024
b8e8b9c
exclude files without extension from formatting
kcinay055679 Dec 12, 2024
98232f2
fix pre-commit hook
kcinay055679 Dec 12, 2024
35f324b
update name of package scripts and update workflow
kcinay055679 Dec 12, 2024
e8ed7f0
readd ignored files to prettierrc
kcinay055679 Dec 13, 2024
4002f8a
clean up
kcinay055679 Dec 13, 2024
f81669f
clean up
kcinay055679 Dec 13, 2024
ef5b821
remove logs from pre-commit
kcinay055679 Dec 13, 2024
d53d6a1
remove files from pr
kcinay055679 Dec 13, 2024
bd8fbff
update frontend config
kcinay055679 Dec 13, 2024
2102966
allow empty constructors
kcinay055679 Dec 13, 2024
8ab2e80
update config
kcinay055679 Dec 13, 2024
991e9c3
update prettirrc
kcinay055679 Dec 13, 2024
cd9bdd7
update config
kcinay055679 Dec 13, 2024
f7b81ba
use old html formatter
kcinay055679 Dec 13, 2024
7de7f7a
rmeove xargs from precommit hook
kcinay055679 Dec 16, 2024
7d654e4
update config for html files
kcinay055679 Dec 16, 2024
40b83c3
updat package lock
kcinay055679 Dec 18, 2024
98d9b18
clean up eslint config and packages
kcinay055679 Dec 19, 2024
3e22f98
change formatting dependencies to dev dep and regen package-lock
kcinay055679 Dec 19, 2024
1b54bfd
add naming convention checks to eslint config
Miguel7373 Dec 19, 2024
5fac126
regen package-lock
Miguel7373 Dec 19, 2024
5b9675b
update package-lock
Miguel7373 Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 8 additions & 39 deletions .github/workflows/format-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 'Format'
on: [push]
jobs:

Frontend:
frontend:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -15,33 +15,19 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.10.0
node-version: ${{vars.NODE_VERSION}}

- name: Npm install
run: npm ci

- name: Format frontend
run: npm run format
run: npm run check-linting:all

- name: Commit and Push formated frontend
shell: bash
env:
COMMITPREFIX: '[FM]'
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add . || {
echo "No files were changed, so we did not commit anything"
exit 1
}
git commit -m "$COMMITPREFIX Automated formating frontend" || {
echo "No changes to commit, skipping push"
exit 0
}
git push -f

Backend:
backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -55,21 +41,4 @@ jobs:
settings-path: ${{github.workspace}}

- name: Format backend
run: mvn formatter:format -f backend/pom.xml

- name: Commit and Push formated backend
shell: bash
env:
COMMITPREFIX: '[FM]'
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add . || {
echo "No files were changed, so we did not commit anything"
exit 1
}
git commit -m "$COMMITPREFIX Automated formating backend" || {
echo "No changes to commit, skipping push"
exit 0
}
git push -f
run: mvn spotless:check
18 changes: 12 additions & 6 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,23 @@ USING DOCKER
- backend/target

Formatting:
- Check code formatting: `mvn formatter:validate`
- Format the code: `mvn formatter:format`
- Check code formatting: `mvn spotless:check`
- Format the code: `mvn spotless:apply`

The `compile` goal execute also a `formatter:format` goal.
We also run the formatter with `spotless:apply` in the `compile` goal.

Verify the Backend for coverage check:
- `mvn clean verify`

## Formatting
We use the **formatter-maven-plugin** Plugin for formatting the Java code:
https://code.revelc.net/formatter-maven-plugin/

We use the ***spotless*** Plugin for formatting the Java code:
https://github.com/diffplug/spotless

### How to update the spotless configuration using intelij:
- Open `Go to Settings -> Editor -> Code styles -> Java`
- Select the default project config and export it to a file
- Then make the changes you want to the code style config ***HIT APPLY*** and then export it to a file
- Then run the following command `git --no-pager diff --no-index -U0 default.xml changed.xml | egrep '^\+' | diff-so-fancy` to see the changes
- then copy all additions to the formatter file in the backend project
## Build
_tbd_
31 changes: 18 additions & 13 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,24 +231,29 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.2</version>
</plugin>

<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.24.1</version>
<configuration>
<compilerSource>${maven.compiler.source}</compilerSource>
<compilerCompliance>${maven.compiler.source}</compilerCompliance>
<compilerTargetPlatform>${maven.compiler.source}</compilerTargetPlatform>
</configuration>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.43.0</version>
<executions>
<execution>
<id>code-format</id>
<goals>
<goal>format</goal>
<goal>apply</goal>
</goals>
</execution>
</executions>
<configuration>
<java>
<eclipse>
<version>4.26</version>
<file>${project.basedir}/src/main/resources/formatting.xml</file>
<!-- <file>${project.basedir}/src/main/resources/formatters/default.xml</file>-->
</eclipse>
<removeUnusedImports />
<importOrder />
</java>
</configuration>
</plugin>
</plugins>
</build>
Expand Down Expand Up @@ -305,9 +310,9 @@
<build>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.24.1</version>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.43.0</version>
<executions>
<execution>
<id>code-format</id>
Expand Down
111 changes: 111 additions & 0 deletions backend/src/main/resources/formatting.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<profiles version="21">
<profile name="CustomFormatter" kind="CodeFormatterProfile">
<setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="120"/>
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_annotation_on_method" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.align_annotation_array_initializer_expressions" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.align_parameters_in_columns" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.align_arguments_in_columns" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="48"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="49"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="2"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="2"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="2"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="2"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="2"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiplicative_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_additive_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_string_concatenation" value="18"/>

<setting id="org.eclipse.jdt.core.formatter.alignment_for_shift_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_relational_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_bitwise_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_logical_operator" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression_chain" value="48"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_conditional_operator" value="true"/>

<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="18"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="82"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="82"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="82"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="82"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>


<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_label" value="insert"/>
<!-- <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter" value="insert"/>-->
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/>

<setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field" value="49"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type" value="49"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_enum_constant" value="49"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_annotation_on_method" value="49"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package" value="49"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_type_annotations" value="49"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable" value="49"/>
<!--scho mau fine-->

<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_record_declaration" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_annotation" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_lambda_declaration" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_try_clause" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause" value="common_lines"/>

<setting id="org.eclipse.jdt.core.formatter.keep_lambda_body_block_on_one_line" value="one_line_preserve"/>

<setting id="org.eclipse.jdt.core.formatter.keep_method_body_on_one_line" value="one_line_preserve"/>
<setting id="org.eclipse.jdt.core.formatter.keep_simple_getter_setter_on_one_line" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.keep_type_declaration_on_one_line" value="one_line_preserve"/>
<setting id="org.eclipse.jdt.core.formatter.keep_anonymous_type_declaration_on_one_line" value="one_line_preserve"/>
<setting id="org.eclipse.jdt.core.formatter.keep_enum_declaration_on_one_line" value="one_line_preserve"/>
<setting id="org.eclipse.jdt.core.formatter.keep_enum_constant_declaration_on_one_line" value="one_line_preserve"/>
<setting id="org.eclipse.jdt.core.formatter.keep_record_declaration_on_one_line" value="one_line_preserve"/>
<setting id="org.eclipse.jdt.core.formatter.keep_record_constructor_on_one_line" value="one_line_preserve"/>
<setting id="org.eclipse.jdt.core.formatter.keep_annotation_declaration_on_one_line" value="one_line_preserve"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter" value="16"/>

<setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/>

</profile>
</profiles>
3 changes: 3 additions & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
src/assets/
dist/
.angular/
# The following files alredy getting formatting by eslint
**/*.html
**/*.ts
6 changes: 6 additions & 0 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
}
1 change: 0 additions & 1 deletion frontend/.prettierrc.json

This file was deleted.

31 changes: 19 additions & 12 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,16 @@ Build:

## Formatting

We use the **prettier** code formatter for the frontend code:
https://www.npmjs.com/package/prettier

We use **EsLint** and a variety of plugins to format html and ts files:
https://eslint.org/

We use **prettier** to format scss json and yaml files:
https://prettier.io/

If you get a does not match pattern error, it is likely because of the custom words for the OKR tool
here is a regex101 project that showcases how the regex works:
https://regex101.com/r/VUyAt6/1
## Test Coverage

For generating the coverage of our frontend specs (jest), you can use following command:
Expand All @@ -44,16 +51,16 @@ Open the html file in browser and you get a beautiful overview
## Cypress Tests

- local setup
- start local Docker `docker-compose up`
- start local Server: `OkrApplication-E2E`
- start local Client: `npm run start`
- start local Docker `docker-compose up`
- start local Server: `OkrApplication-E2E`
- start local Client: `npm run start`
- run selected Tests
- npm run `npm run cypress:open`
- in Cypress App, select `E2E Testing` and `Chrome` as Browser
- npm run `npm run cypress:open`
- in Cypress App, select `E2E Testing` and `Chrome` as Browser
- run all tests
- npm run `npm run cypress:run`
- in Cypress App, select `E2E Testing` and `Chrome` as Browser
- npm run `npm run cypress:run`
- in Cypress App, select `E2E Testing` and `Chrome` as Browser
- in case of failing Tests:
- stop and restart local Server
- stop and restart local Client
- re-run Cypress Tests
- stop and restart local Server
- stop and restart local Client
- re-run Cypress Tests
8 changes: 7 additions & 1 deletion frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,18 @@
"devServerTarget": "frontend:serve:production"
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
}
}
}
},
"cli": {
"analytics": false,
"schematicCollections": ["@cypress/schematic", "@schematics/angular"]
"schematicCollections": ["angular-eslint", "@cypress/schematic", "@schematics/angular"]
}
}
Loading
Loading