Skip to content

Commit 636dc10

Browse files
authored
Merge pull request #24 from clearfunction/chore/bump-dependencies
chore: eslint conversion, dependency bump
2 parents 63c8450 + 6bd0647 commit 636dc10

File tree

5 files changed

+715
-1868
lines changed

5 files changed

+715
-1868
lines changed

.eslintrc.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

app.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ type PlayClip = {
1818
volume: number;
1919
};
2020

21-
interface ServerToClientEvents {
21+
type ServerToClientEvents = {
2222
play_url: (data: PlayUrl) => void;
2323
play_text: (data: PlayText) => void;
2424
close: () => void;
25-
}
25+
};
2626

27-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
27+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
2828
interface ClientToServerEvents {}
2929

3030
// connect to socket for bot commands

eslint.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
...tseslint.configs.strict,
9+
...tseslint.configs.stylistic,
10+
{
11+
ignores: ['build/'],
12+
},
13+
{
14+
rules: {
15+
'@typescript-eslint/consistent-type-definitions': 'off',
16+
},
17+
}
18+
);

0 commit comments

Comments
 (0)