Merge pull request #322 from IT4Change/refactor-types-etc

refactor(other): refactor types etc
This commit is contained in:
mahula 2025-11-21 15:56:07 +01:00 committed by GitHub
commit 2b484289ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 28 additions and 21 deletions

View File

@ -7,13 +7,13 @@ jobs:
name: Run all E2E tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Set Node version
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
with:
node-version: '>=22.15.0'
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
node-version-file: '.tool-versions'
- name: E2E - Run all tests
id: e2e-run

View File

@ -25,13 +25,13 @@ jobs:
needs: files-changed
runs-on: ubuntu-latest
steps:
- name: Set Node version
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
with:
node-version: '>=22.15.0'
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Set Node version
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
with:
node-version-file: '.tool-versions'
- name: E2E Testing | Build Docs
run: npm install && npm run docs:build

View File

@ -25,13 +25,13 @@ jobs:
needs: files-changed
runs-on: ubuntu-latest
steps:
- name: Set Node version
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
with:
node-version: '>=22.15.0'
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Set Node version
uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0
with:
node-version-file: '.tool-versions'
- name: E2E files | Lint
run: npm install && npm run test:lint:eslint

1
.tool-versions Normal file
View File

@ -0,0 +1 @@
nodejs 24.11.1

View File

@ -1,5 +1,3 @@
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable import/no-relative-parent-imports */
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor'

View File

@ -1,8 +1,14 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es5", "dom"],
"target": "ES2022",
"lib": ["ES2022", "dom"],
"module": "ESNext",
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"types": ["cypress", "node"]
},
"include": ["./**/*.ts", ".vuepress/config.ts"]
"include": ["./**/*.ts"],
"exclude": ["node_modules"]
}

View File

@ -22,7 +22,7 @@ const compat = new FlatCompat({
module.exports = defineConfig([
{
ignores: ['.gitignore', '.github/', '.vuepress/public/', '**/*md', '**/*.json', '**/build/', 'cypress/reports/', 'cypress/screenshots/', 'LICENSE', 'node_modules/'],
ignores: ['.gitignore', '.github/', '.vuepress/public/', '.vuepress/.temp/', '**/*md', '**/*.json', '**/build/', 'cypress/reports/', 'cypress/screenshots/', 'LICENSE', 'node_modules/'],
languageOptions: {
globals: {
@ -226,6 +226,7 @@ module.exports = defineConfig([
'.gitignore',
'.github/',
'.vuepress/public/',
'.vuepress/.temp/',
'**/*md',
'**/*.json',
'**/build/',

View File

@ -4,8 +4,9 @@
"module": "nodenext",
"lib": ["ES2022", "dom"],
"strict": true,
"skipLibCheck": true,
"types": ["cypress", "node"]
},
"include": ["**/*.ts", ".vuepress/config.ts"],
"exclude": ["node_modules"]
"exclude": ["node_modules", "cypress"]
}