Skip to content

Commit

Permalink
eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
xr0master committed Jan 17, 2025
1 parent 4e2ed3f commit b802940
Show file tree
Hide file tree
Showing 4 changed files with 1,995 additions and 3,207 deletions.
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import tseslint from 'typescript-eslint';
import stylisticTs from '@stylistic/eslint-plugin-ts';
import eslintConfigPrettier from 'eslint-config-prettier';

export default tseslint.config(
...tseslint.configs.recommendedTypeChecked,
eslintConfigPrettier,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
{
files: ['**/*.ts'],
plugins: {
'@stylistic/ts': stylisticTs,
},
rules: {
'@typescript-eslint/only-throw-error': 'off',
'@typescript-eslint/prefer-promise-reject-errors': 'off',
},
},
);
Loading

0 comments on commit b802940

Please sign in to comment.