Skip to content

Commit

Permalink
Build(deps-dev): Bump eslint from 8.57.0 to 9.13.0 (#1427)
Browse files Browse the repository at this point in the history
* Build(deps-dev): Bump eslint from 8.57.0 to 9.13.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.13.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.0...v9.13.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update `eslint-config-next` to `15.0.2`

* Update eslint config to new format

* Update `@lxcat/database` eslint config

* Add `@lxcat/schema` lint config

* Fix `schema` and `database` lint configs

* Fix some typed lints in `database`

* Fix REUSE compliance

* Change eslint config extension

* Only collect coverage for files in `src`

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daan Boer <[email protected]>
  • Loading branch information
dependabot[bot] and daanboer authored Nov 1, 2024
1 parent 831609d commit 368c731
Show file tree
Hide file tree
Showing 12 changed files with 799 additions and 423 deletions.
3 changes: 0 additions & 3 deletions app/.eslintrc.json

This file was deleted.

17 changes: 17 additions & 0 deletions app/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// SPDX-FileCopyrightText: LXCat team
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
export default [...compat.extends("next/core-web-vitals")];
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
"@vitest/coverage-v8": "^2.1.3",
"dotenv": "^16.4.5",
"dprint": "^0.47.5",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.15",
"eslint": "^9.13.0",
"eslint-config-next": "15.0.2",
"nyc": "^17.1.0",
"oidc-provider": "^8.5.2",
"playwright-test-coverage": "^1.2.12",
Expand Down
22 changes: 0 additions & 22 deletions packages/database/.eslintrc.json

This file was deleted.

22 changes: 22 additions & 0 deletions packages/database/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX-FileCopyrightText: LXCat team
//
// SPDX-License-Identifier: AGPL-3.0-or-later

import jseslint from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";

export default [
jseslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: { globals: globals.browser },

rules: {
"@typescript-eslint/no-unused-vars": ["error", {
ignoreRestSiblings: true,
}],
"@typescript-eslint/ban-ts-comment": ["error", { "ts-nocheck": false }],
},
},
];
5 changes: 3 additions & 2 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"clean": "rm -rf dist",
"dev": "tsc -p tsconfig.build.json --watch",
"build": "tsc -p tsconfig.build.json",
"lint": "eslint --ext .ts src/",
"lint": "eslint src",
"test": "vitest",
"annotate": "reuse annotate --license=AGPL-3.0-or-later --copyright='LXCat team' -r --skip-existing --exclude-year src"
},
Expand All @@ -76,7 +76,8 @@
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@vitest/coverage-v8": "^2.1.3",
"dprint": "^0.47.5",
"eslint": "8.57.0",
"eslint": "9.13.0",
"globals": "^15.11.0",
"testcontainers": "^10.13.2",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/database/src/css/queries/deep-clone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

export function deepClone<T>(i: T): T {
return JSON.parse(JSON.stringify(i));
return JSON.parse(JSON.stringify(i)) as T;
}
2 changes: 1 addition & 1 deletion packages/database/src/css/queries/update-set.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe("given published cross section set where data of 1 published cross sect
return async () => truncateCrossSectionSetCollections(db.getDB());
});

it("should create a draft for the altered cross section set", async () => {
it("should create a draft for the altered cross section set", () => {
expect(keycss1).not.toEqual(keycss2);
});

Expand Down
1 change: 1 addition & 0 deletions packages/database/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineConfig({
hookTimeout: 180_000, // Docker containers are being started, the default 5s is not enough
coverage: {
reporter: ["text", "json-summary", "json"],
include: ["src/**.ts"],
exclude: ["src/cli/*", "src/test/*", "**/*{.,-}spec.ts"],
},
globalSetup: "./src/test/global-setup.ts",
Expand Down
13 changes: 13 additions & 0 deletions packages/schema/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-FileCopyrightText: LXCat team
//
// SPDX-License-Identifier: Apache-2.0

import jslint from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";

export default [
jslint.configs.recommended,
...tseslint.configs.recommended,
{ languageOptions: { globals: globals.browser } },
];
7 changes: 5 additions & 2 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"json:doc": "tsx src/cli/document-schema.ts",
"json:mix": "tsx src/cli/mixture-schema.ts",
"build": "tsc",
"lint": "eslint src/ --ext .ts",
"lint": "eslint src",
"format": "dprint fmt",
"test": "vitest",
"coverage": "vitest run --coverage",
Expand All @@ -23,13 +23,16 @@
"zod-to-json-schema": "^3.23.5"
},
"devDependencies": {
"@eslint/js": "^9.13.0",
"@lxcat/tsconfig": "workspace:^",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@vitest/coverage-v8": "^2.1.3",
"dprint": "^0.47.5",
"eslint": "8.57.0",
"eslint": "9.13.0",
"globals": "^15.11.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.12.2",
"vitest": "^2.1.3"
},
"exports": {
Expand Down
Loading

0 comments on commit 368c731

Please sign in to comment.