Skip to content

Commit c1e50c7

Browse files
committed
Update eslint configuration
1 parent be45d8a commit c1e50c7

3 files changed

Lines changed: 259 additions & 384 deletions

File tree

eslint.config.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import globals from 'globals';
2-
import pluginJs from '@eslint/js';
2+
import eslint from '@eslint/js';
33
import tseslint from 'typescript-eslint';
44

5-
export default [
6-
{ languageOptions: { globals: globals.browser } },
7-
pluginJs.configs.recommended,
5+
export default tseslint.config(
6+
eslint.configs.recommended,
87
...tseslint.configs.recommended,
98
{
9+
ignores: ['build'],
10+
},
11+
{
12+
languageOptions: { globals: globals.node },
1013
rules: {
1114
'@typescript-eslint/no-explicit-any': 'off',
15+
'@typescript-eslint/no-empty-object-type': 'off',
1216
},
1317
},
14-
{
15-
ignores: ['src/convert.ts'],
16-
},
17-
];
18+
);

0 commit comments

Comments
 (0)