Skip to content

Commit f853aae

Browse files
committed
chore: add tests
1 parent 4d08788 commit f853aae

File tree

12 files changed

+1539
-7
lines changed

12 files changed

+1539
-7
lines changed

eslint.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import globals from 'globals';
44
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
55
import react from 'eslint-plugin-react';
66
import reactHooks from 'eslint-plugin-react-hooks';
7+
import pluginChaiFriendly from 'eslint-plugin-chai-friendly';
78

89
export default tseslint.config(
910
eslint.configs.recommended,
@@ -14,10 +15,13 @@ export default tseslint.config(
1415
{
1516
files: ['**/*.{js,jsx,ts,tsx}'],
1617
plugins: {
18+
'chai-friendly': pluginChaiFriendly,
1719
unicorn: eslintPluginUnicorn,
1820
react: react,
1921
},
2022
rules: {
23+
'@typescript-eslint/no-unused-expressions': 'off',
24+
'chai-friendly/no-unused-expressions': 'error',
2125
'unicorn/prefer-node-protocol': 'error',
2226
'@typescript-eslint/no-explicit-any': 'off',
2327
'@typescript-eslint/consistent-type-imports': 'error',
@@ -37,6 +41,12 @@ export default tseslint.config(
3741
},
3842
},
3943
},
44+
{
45+
files: ['spec/**/*.{js,cjs,ts}'],
46+
rules: {
47+
'@typescript-eslint/no-require-imports': 'off',
48+
},
49+
},
4050
{
4151
settings: {
4252
react: {

global.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import type { IpcEventData } from './src/types/shared';
1+
import type { IpcEventData, IpcEventDataIndexed } from './src/types/shared';
22

33
declare global {
44
function addIpcEvent(data: IpcEventData): void;
5+
function returnIpcEvents(): IpcEventDataIndexed[];
56
}
67
export {};

0 commit comments

Comments
 (0)