Skip to content

Commit

Permalink
Merge pull request #600 from killtheliterate/eslint
Browse files Browse the repository at this point in the history
Eslint
  • Loading branch information
killtheliterate authored Nov 4, 2024
2 parents 8117f2c + 60e7bd3 commit 8a8a18f
Show file tree
Hide file tree
Showing 14 changed files with 540 additions and 742 deletions.
51 changes: 0 additions & 51 deletions .eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc.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 8a8a18f

Please sign in to comment.