Skip to content

Commit

Permalink
chore(eslint): upgrade to 9
Browse files Browse the repository at this point in the history
  • Loading branch information
killtheliterate committed Nov 4, 2024
1 parent 8117f2c commit d7cc71c
Show file tree
Hide file tree
Showing 10 changed files with 389 additions and 587 deletions.
51 changes: 0 additions & 51 deletions .eslintrc.js

This file was deleted.

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

import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
rules: {
'@typescript-eslint/no-unsafe-assignment': 'warn',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_' },
],
},
},
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: ['**/*.js', '**/*.mjs'],
...tseslint.configs.disableTypeChecked,
}
)
Loading

0 comments on commit d7cc71c

Please sign in to comment.