Skip to content

Commit 88d7db1

Browse files
committed
chore: add ESLint and fix all linting issues
- Add ESLint with TypeScript support - Configure flat config for ESLint 9 - Fix all unused variable warnings - Add lint and lint:fix scripts - Update prepublishOnly to run lint before build - All 125 tests still passing
1 parent df619e2 commit 88d7db1

File tree

8 files changed

+1348
-9
lines changed

8 files changed

+1348
-9
lines changed

eslint.config.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import tseslint from '@typescript-eslint/eslint-plugin';
2+
import parser from '@typescript-eslint/parser';
3+
4+
export default [
5+
{
6+
files: ['src/**/*.ts'],
7+
languageOptions: {
8+
parser,
9+
parserOptions: {
10+
ecmaVersion: 2022,
11+
sourceType: 'module',
12+
},
13+
},
14+
plugins: {
15+
'@typescript-eslint': tseslint,
16+
},
17+
rules: {
18+
'@typescript-eslint/no-explicit-any': 'off',
19+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
20+
},
21+
},
22+
];

0 commit comments

Comments
 (0)