Skip to content

Commit eff9a0e

Browse files
committed
Update to eslint9 with xo config
1 parent ae5242c commit eff9a0e

File tree

5 files changed

+895
-371
lines changed

5 files changed

+895
-371
lines changed

.eslintignore

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

.eslintrc

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

eslint.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import {defineConfig, globalIgnores} from 'eslint/config';
2+
import globals from 'globals';
3+
import ConfigXo from 'eslint-config-xo';
4+
import ConfigJest from 'eslint-plugin-jest';
5+
6+
export default defineConfig([
7+
{languageOptions: {globals: {...globals.node}}},
8+
...ConfigXo,
9+
{
10+
files: ['**/*.test.*'],
11+
languageOptions: {globals: {...globals.jest}},
12+
...ConfigJest.configs['flat/all'],
13+
},
14+
globalIgnores([
15+
'coverage/',
16+
'example/',
17+
'tests/',
18+
]),
19+
]);

0 commit comments

Comments
 (0)