From e2f0fb7f3cbcf6c477d1184018eee75e6526eb0f Mon Sep 17 00:00:00 2001 From: sofyakurilova Date: Wed, 31 Jan 2024 15:50:42 +0100 Subject: [PATCH 1/2] Create linters.yml Adds linters action --- .github/workflows/testing.yml | 20 ++++++++++++++++++++ modules/ui/tsconfig.json | 6 +++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index fed608bd6..ac7bd7dfe 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -143,3 +143,23 @@ jobs: env: CI: true working-directory: ./modules/ui + + linters_ui: + permissions: {} + name: UI Linters + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 18.13.0 + - name: Install dependencies + run: npm install && npm ci + working-directory: ./modules/ui + - name: Run ESLint + run: npm run lint + working-directory: ./modules/ui + - name: Run format check + run: npm run format + working-directory: ./modules/ui \ No newline at end of file diff --git a/modules/ui/tsconfig.json b/modules/ui/tsconfig.json index 1301bf238..8901ce8c6 100644 --- a/modules/ui/tsconfig.json +++ b/modules/ui/tsconfig.json @@ -19,12 +19,12 @@ "target": "ES2022", "module": "ES2022", "useDefineForClassFields": false, - "lib": ["ES2022", "dom"] + "lib": ["ES2022", "dom"], }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, "strictInputAccessModifiers": true, - "strictTemplates": true - } + "strictTemplates": true, + }, } From 79d0278692a02297c517dbc721ffd6e664f9b632 Mon Sep 17 00:00:00 2001 From: sofyakurilova Date: Wed, 31 Jan 2024 15:50:42 +0100 Subject: [PATCH 2/2] Create linters.yml Adds linters action --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index ac7bd7dfe..0cc53ff34 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -146,7 +146,7 @@ jobs: linters_ui: permissions: {} - name: UI Linters + name: ESLint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1