Skip to content

Commit

Permalink
fix(various): Upgrade eslint to use typescript-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
vanthome committed Oct 25, 2024
1 parent b580f00 commit 62e3439
Show file tree
Hide file tree
Showing 48 changed files with 574 additions and 701 deletions.
99 changes: 0 additions & 99 deletions .eslintrc.cjs

This file was deleted.

22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// @ts-check

import eslint from '@eslint/js';
import { RuleTester } from 'eslint';
import tseslint from 'typescript-eslint';

const rules = tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
);

rules.push(
{
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"prefer-rest-params": "off",
}
}
);

export default rules;
Loading

0 comments on commit 62e3439

Please sign in to comment.