Skip to content

Commit a1f934b

Browse files
committed
chore: update deps
1 parent 6258aba commit a1f934b

5 files changed

Lines changed: 1635 additions & 2333 deletions

File tree

.eslintrc.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import eslint from '@eslint/js'
2+
import { defineConfig } from 'eslint/config'
3+
import globals from 'globals'
4+
import tseslint from 'typescript-eslint'
5+
import importPlugin from 'eslint-plugin-import'
6+
import pluginPromise from 'eslint-plugin-promise'
7+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
8+
9+
export default defineConfig(
10+
eslint.configs.recommended,
11+
tseslint.configs.strictTypeChecked,
12+
importPlugin.flatConfigs.typescript,
13+
pluginPromise.configs['flat/recommended'],
14+
eslintPluginPrettierRecommended,
15+
{
16+
languageOptions: {
17+
globals: {
18+
...globals.node,
19+
...globals.jest,
20+
},
21+
parserOptions: {
22+
project: './tsconfig.json',
23+
},
24+
},
25+
rules: {
26+
'@typescript-eslint/no-explicit-any': 'off',
27+
'@typescript-eslint/explicit-module-boundary-types': 'off',
28+
'@typescript-eslint/no-non-null-assertion': 'off',
29+
'@typescript-eslint/no-unused-vars': [
30+
'warn',
31+
{
32+
argsIgnorePattern: '^_',
33+
caughtErrorsIgnorePattern: '^_',
34+
varsIgnorePattern: '^_',
35+
},
36+
],
37+
'@typescript-eslint/no-redeclare': 'error',
38+
'@typescript-eslint/no-unsafe-argument': 'off',
39+
'@typescript-eslint/no-this-alias': 'off',
40+
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
41+
'@typescript-eslint/consistent-type-imports': [
42+
'warn',
43+
{
44+
prefer: 'type-imports',
45+
fixStyle: 'inline-type-imports',
46+
},
47+
],
48+
'comma-dangle': ['error', 'always-multiline'],
49+
'handle-callback-err': ['error', '^(err|error)$'],
50+
'no-catch-shadow': 'error',
51+
'no-underscore-dangle': 'off',
52+
'object-curly-spacing': ['error', 'always'],
53+
'max-classes-per-file': 'off',
54+
'no-unused-vars': 'off',
55+
'no-multi-assign': 'off',
56+
'lines-between-class-members': 'off',
57+
'import/prefer-default-export': 'off',
58+
'import/no-unresolved': 'off',
59+
'import/extensions': 'off',
60+
'no-shadow': 'off',
61+
'prefer-destructuring': 'off',
62+
'no-continue': 'off',
63+
'no-use-before-define': 'off',
64+
'no-dupe-class-members': 'off',
65+
'func-names': 'off',
66+
'space-before-function-paren': 'off',
67+
'no-lonely-if': 'off',
68+
'no-param-reassign': ['error', { props: false }],
69+
'no-redeclare': 'off',
70+
'no-restricted-syntax': 'off',
71+
'no-await-in-loop': 'off',
72+
'no-console': 'warn',
73+
'prettier/prettier': 'warn',
74+
'import/no-extraneous-dependencies': 'off',
75+
},
76+
},
77+
)

0 commit comments

Comments
 (0)