Skip to content

Commit

Permalink
build: dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBorde committed Nov 22, 2024
1 parent a20287e commit 792bf95
Show file tree
Hide file tree
Showing 6 changed files with 912 additions and 1,659 deletions.
25 changes: 12 additions & 13 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config({
files: ['**/*.ts'],
ignores: ['build/**'],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
],
}, {
files: ['**/*.spec.ts'],
rules: { '@typescript-eslint/no-explicit-any': 'off' },
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.strict,
tseslint.configs.stylistic,
{
files: ["**/*.spec.ts"],
rules: { "@typescript-eslint/no-explicit-any": "off" },
},
{
ignores: ["build"],
},
);
4 changes: 1 addition & 3 deletions lib/levels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { Console, ConsoleOut } from "./console";

export type LogFunc = (console: Console) => ConsoleOut;

export type Levels = {
[key in Level]: LevelConfiguration;
};
export type Levels = Record<Level, LevelConfiguration>;

export enum Level {
all = "all",
Expand Down
1 change: 0 additions & 1 deletion lib/logger.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ describe("Logger", () => {
});

it("won't be created with category not a string", () => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const creation = () => create({ category: 3 as any });

expect(creation).toThrow("category must be a string");
Expand Down
2 changes: 2 additions & 0 deletions lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ function getDefaultLevel() {
const fallback = Level.info;
try {
return (process.env.ARP_LOG_LEVEL as Level) || fallback;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
return fallback;
}
Expand All @@ -164,6 +165,7 @@ function getDefaultFilter() {
const fallback = ".*";
try {
return process.env.ARP_LOG_FILTER || fallback;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
return fallback;
}
Expand Down
Loading

0 comments on commit 792bf95

Please sign in to comment.