Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

80 changes: 0 additions & 80 deletions .eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.json.license

This file was deleted.

28 changes: 0 additions & 28 deletions apps/benchmark/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions apps/benchmark/.eslintrc.json.license

This file was deleted.

43 changes: 43 additions & 0 deletions apps/benchmark/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// SPDX-FileCopyrightText: 2025 Friedrich-Alexander-Universitat Erlangen-Nurnberg
//
// SPDX-License-Identifier: AGPL-3.0-only

import baseConfig from '../../eslint.config.mjs';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';

export default [
{
ignores: ['**/dist'],
},
...baseConfig,
{
languageOptions: {
parserOptions: {
project: [
'./tsconfig.app.json',
'./tsconfig.spec.json',
],
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
},
},
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.ts', '**/*.tsx'],
// Override or add rules here
rules: {},
},
{
files: ['**/*.js', '**/*.jsx'],
// Override or add rules here
rules: {},
},
{
ignores: ['**/vite.config.*.timestamp*', '**/vitest.config.*.timestamp*'],
},
];
12 changes: 4 additions & 8 deletions apps/benchmark/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/benchmark/src",
"projectType": "application",
"tags": [],
"targets": {
"build": {
"options": {
Expand All @@ -12,9 +13,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": [
"{options.outputFile}"
]
"outputs": ["{options.outputFile}"]
},
"run": {
"executor": "nx:run-commands",
Expand All @@ -31,14 +30,11 @@
},
"test": {
"executor": "@nx/vite:test",
"outputs": [
"{workspaceRoot}/coverage/{projectRoot}"
],
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"configFile": "{projectRoot}/vite.config.ts",
"passWithNoTests": false
}
}
},
"tags": []
}
}
3 changes: 2 additions & 1 deletion apps/benchmark/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"**/*.test.ts"
],
"include": [
"**/*.ts"
"**/*.ts",
"eslint.config.mjs"
]
}
21 changes: 0 additions & 21 deletions apps/docs-generator/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions apps/docs-generator/.eslintrc.json.license

This file was deleted.

29 changes: 29 additions & 0 deletions apps/docs-generator/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// SPDX-FileCopyrightText: 2025 Friedrich-Alexander-Universitat Erlangen-Nurnberg
//
// SPDX-License-Identifier: AGPL-3.0-only

import { defineConfig, globalIgnores } from "eslint/config";
import baseConfig from "../../eslint.config.mjs";
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';

export default defineConfig(baseConfig, [globalIgnores(["!**/*"]), {
languageOptions: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't formatted properly is it? Also, it uses tabs instead of spaces.

ecmaVersion: 5,
sourceType: "script",

parserOptions: {
project: ["./tsconfig.app.json"],
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
},
},
}, {
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
rules: {},
}, {
files: ["**/*.ts", "**/*.tsx"],
rules: {},
}, {
files: ["**/*.js", "**/*.jsx"],
rules: {},
}]);
14 changes: 11 additions & 3 deletions apps/docs-generator/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["node"]
"types": [
"node"
]
},
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
"exclude": [
"src/**/*.spec.ts",
"src/**/*.test.ts"
],
"include": [
"src/**/*.ts",
"eslint.config.mjs"
]
}
28 changes: 0 additions & 28 deletions apps/docs/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions apps/docs/.eslintrc.json.license

This file was deleted.

51 changes: 51 additions & 0 deletions apps/docs/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// SPDX-FileCopyrightText: 2025 Friedrich-Alexander-Universitat Erlangen-Nurnberg
//
// SPDX-License-Identifier: AGPL-3.0-only

import baseConfig from '../../eslint.config.mjs';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';

const configs = [
{
ignores: ['**/dist'],
},
...baseConfig,
{
languageOptions: {
parserOptions: {
project: ['./tsconfig.app.json'],
tsconfigRootDir: dirname(fileURLToPath(import.meta.url)),
},
},
},
{
ignores: [
'**/.docusaurus/**',
'**/theme/prism-jayvee.js',
'**/*.config.js',
'**/prism-include-languages.js',
'**/sidebars.js',
],
},
];

// HACK: Somehow the typescript-eslint plugin is not always recognized,
// despite being part of the config. The workaround is to extract the plugin,
// and reinsert it at the end
const typescriptEslintPlugins = configs.flatMap((config) => {
const plugin = config.plugins?.['@typescript-eslint'];
return plugin !== undefined ? [plugin] : [];
});

const typescriptEslintPlugin = typescriptEslintPlugins.reduce((prev, curr) => {
if (Object.entries(prev).some(([key, value]) => curr[key] !== value)) {
throw new Error('Must be same values')
}
return prev;
});


export default [...configs,
{plugins: {"@typescript-eslint": typescriptEslintPlugin}}
];
4 changes: 2 additions & 2 deletions apps/docs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/docs/src",
"tags": [],
"targets": {
"build": {
"executor": "@nx-extend/docusaurus:browser",
Expand Down Expand Up @@ -37,6 +38,5 @@
"parallel": false
}
}
},
"tags": []
}
}
Loading
Loading