Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit 73c63bc

Browse files
committed
style: Improve code formatting and consistency in ESLint, Jest, and TypeScript configuration files
1 parent b8c8d88 commit 73c63bc

File tree

5 files changed

+42
-40
lines changed

5 files changed

+42
-40
lines changed

eslint.config.mjs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ import globals from "globals";
33
import tseslint from "typescript-eslint";
44
import { defineConfig } from "eslint/config";
55

6-
76
export default defineConfig([
8-
{ files: ["**/*.{js,mjs,cjs,ts}"], plugins: { js }, extends: ["js/recommended"] },
9-
{ files: ["**/*.{js,mjs,cjs,ts}"], languageOptions: { globals: globals.browser } },
7+
{
8+
files: ["**/*.{js,mjs,cjs,ts}"],
9+
plugins: { js },
10+
extends: ["js/recommended"],
11+
},
12+
{
13+
files: ["**/*.{js,mjs,cjs,ts}"],
14+
languageOptions: { globals: globals.browser },
15+
},
1016
tseslint.configs.recommended,
11-
]);
17+
]);

explorer.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

jest.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-undef */
22
module.exports = {
3-
verbose: true,
4-
setupFilesAfterEnv: ["./jest.setup.js"],
5-
forceExit: true,
6-
openHandlesTimeout: 100
7-
};
3+
verbose: true,
4+
setupFilesAfterEnv: ["./jest.setup.js"],
5+
forceExit: true,
6+
openHandlesTimeout: 100,
7+
};

jest.setup.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/* eslint-disable no-undef */
22
global.console = {
3-
...console,
4-
// uncomment to ignore a specific log level
5-
log: jest.fn(),
6-
debug: jest.fn(),
7-
info: jest.fn(),
8-
// warn: jest.fn(),
9-
// error: jest.fn(),
10-
};
3+
...console,
4+
log: jest.fn(),
5+
debug: jest.fn(),
6+
info: jest.fn(),
7+
};

tsconfig.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
2-
"compilerOptions": {
3-
"target": "es2020",
4-
"module": "CommonJS",
5-
"declaration": true,
6-
"outDir": "./dist",
7-
"rootDir": "./src",
8-
"strict": true,
9-
"esModuleInterop": true,
10-
"skipLibCheck": true,
11-
"forceConsistentCasingInFileNames": true,
12-
"moduleResolution": "node",
13-
"baseUrl": "./",
14-
"paths": {
15-
"*": ["src/*"]
16-
},
17-
"experimentalDecorators": true,
18-
"emitDecoratorMetadata": true,
19-
"resolveJsonModule": true
20-
},
21-
"include": ["src/**/*"],
22-
"exclude": ["node_modules", "dist"],
23-
"types": ["node"]
2+
"compilerOptions": {
3+
"target": "es2020",
4+
"module": "CommonJS",
5+
"declaration": true,
6+
"outDir": "./dist",
7+
"rootDir": "./src",
8+
"strict": true,
9+
"esModuleInterop": true,
10+
"skipLibCheck": true,
11+
"forceConsistentCasingInFileNames": true,
12+
"moduleResolution": "node",
13+
"baseUrl": "./",
14+
"paths": {
15+
"*": ["src/*"]
16+
},
17+
"experimentalDecorators": true,
18+
"emitDecoratorMetadata": true,
19+
"resolveJsonModule": true
20+
},
21+
"include": ["src/**/*"],
22+
"exclude": ["node_modules", "dist"],
23+
"types": ["node"]
2424
}

0 commit comments

Comments
 (0)