Skip to content

Commit a3a78fb

Browse files
committed
πŸ—οΈ migrate to ESLint flat configuration
1 parent 906c0cc commit a3a78fb

File tree

9 files changed

+267
-530
lines changed

9 files changed

+267
-530
lines changed

β€Ž.eslintignoreβ€Ž

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

β€Ž.eslintrc.jsβ€Ž

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

β€Žeslint.config.mjsβ€Ž

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// @ts-check
2+
3+
import ESLint from '@eslint/js';
4+
import Prettier from 'eslint-plugin-prettier/recommended';
5+
import TypeScriptESLint from 'typescript-eslint';
6+
7+
export default TypeScriptESLint.config(
8+
{
9+
ignores: ['docs/**', 'dist/**', 'types/**'],
10+
},
11+
Prettier,
12+
ESLint.configs.recommended,
13+
...TypeScriptESLint.configs.recommended,
14+
);

β€Žjest.config.jsβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @ts-check
2-
/* eslint-env node */
2+
3+
/* global module -- Global defined by Node.js */
34

45
/**
56
* An object with Jest options.

0 commit comments

Comments
Β (0)