Commit graph

4 commits

Author SHA1 Message Date
lucasgarfield
67570b8e54 Revert "API: Add Compliance API slice"
This reverts commit 36f9e70565.

The Compliance v1 API is not stable and not intended for consumption by
other teams. We will implement the OpenSCAP MVP without the Compliance
API for now with a hard coded list of polices in image-builder, and when
their v2 API is ready in the near future begin using it to retrieve
policies.
2023-10-06 13:35:27 +02:00
lucasgarfield
36f9e70565 API: Add Compliance API slice
This commit adds the Compliance service's API, which we can query for a
list of SCAP security policies.

In a follow-up PR, we will allow the user to optionally select a policy
when creating an image in the wizard.
2023-09-28 14:50:33 +02:00
Thomas Lavocat
01e9a1d152 api: ignore the generated code from eslintignore
Restore the edgeApi.ts file to the programmatically generated values by
rtkq and add the file to the list of ignored files for eslint.
2023-09-06 10:30:11 +02:00
lucasgarfield
13b02eca7e eslint: Add support for Typescript
This commit adds eslint support for .ts and .tsx files.

The recommended Typescript rules are applied only to .ts and .tsx files
and not to existing .js or .jsx files. This is accomplished by creating
a separate .eslintrc-typescript.yml file and pointing to it in the
.eslintrc.yml overrides parameter.

A .eslintignore file was added. This file has syntax similiar to
.gitignore and is used to ignore the programatically generated API
slices so that we do not have to deal with a massive diff whenever we
update one of them.
2023-08-02 13:46:08 +02:00