Skip to content

Commit 24a7067

Browse files
authored
refactor: Migrate to ESLint v9 (#727)
1 parent 623ece9 commit 24a7067

File tree

5 files changed

+424
-409
lines changed

5 files changed

+424
-409
lines changed

.eslintrc.json

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

eslint.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import path from 'node:path';
2+
import {fileURLToPath} from 'node:url';
3+
import js from '@eslint/js';
4+
import {FlatCompat} from '@eslint/eslintrc';
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all,
12+
});
13+
14+
export default [
15+
{
16+
ignores: ['**/coverage', '**/.dependency-cruiser.cjs', '**/docs', '**/vitest.config.ts'],
17+
},
18+
...compat.extends('@tstv/eslint-config'),
19+
];

0 commit comments

Comments
 (0)