fix: Linting op Actions

This commit is contained in:
Tibo De Peuter 2025-04-02 20:31:40 +02:00
parent 80dc3acca7
commit 7e46ce9c5f
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
5 changed files with 17 additions and 8 deletions

View file

@ -43,6 +43,6 @@ jobs:
with:
auto_fix: true
eslint: true
eslint_args: '--config eslint.config.ts'
eslint_args: "--config eslint.config.ts --ignore-pattern '**/prettier.config.js'"
prettier: true
commit_message: 'style: fix linting issues met ${linter}'
commit_message: 'style: fix linting issues met ${linter}'

2
.gitignore vendored
View file

@ -737,4 +737,4 @@ flycheck_*.el
# network security
/network-security.data
docs/.venv

View file

@ -48,7 +48,7 @@ describe('LearningPathService', () => {
expect(result.data?.length).toBe(1);
// Should include all the nodes, even those pointing to foreign learning objects.
expect([...result.data![0].nodes.map((it) => it.learningobject_hruid)].sort()).toEqual(
expect([...result.data![0].nodes.map((it) => it.learningobject_hruid)].sort((a, b) => a - b)).toEqual(
example.learningPath.nodes.map((it) => it.learningObjectHruid).sort()
);
});

View file

@ -16,7 +16,16 @@ export default [
prettierConfig,
includeIgnoreFile(gitignorePath),
{
ignores: ['**/dist/**', '**/.node_modules/**', '**/coverage/**', '**/.github/**'],
ignores: [
'**/dist/**',
'**/.node_modules/**',
'**/coverage/**',
'**/.github/**',
'**/prettier.config.js',
'docs/.venv/**',
'prettier.config.js',
'frontend/prettier.config.js'
],
files: ['**/*.ts', '**/*.cts', '**.*.mts'],
},
{
@ -205,6 +214,6 @@ export default [
'no-multi-assign': 'error',
'no-nested-ternary': 'error',
'no-object-constructor': 'error',
},
}
},
];

4
package-lock.json generated
View file

@ -1,11 +1,11 @@
{
"name": "dwengo-1-monorepo",
"name": "dwengo-1",
"version": "0.1.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "dwengo-1-monorepo",
"name": "dwengo-1",
"version": "0.1.1",
"license": "MIT",
"workspaces": [