Skip to content

Commit d472061

Browse files
committed
build: update dependencies & eslint v9 migration
1 parent 23bd4de commit d472061

File tree

5 files changed

+781
-828
lines changed

5 files changed

+781
-828
lines changed

.eslintrc.cjs

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

eslint.config.mjs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.recommendedTypeChecked,
7+
{
8+
ignores: ['dist/**/*.ts', 'dist/**', '**/*.mjs', 'eslint.config.mjs', '**/*.js'],
9+
},
10+
{
11+
files: ['src/**/*.ts'],
12+
languageOptions: {
13+
parserOptions: {
14+
project: true,
15+
projectService: true,
16+
tsconfigRootDir: import.meta.dirname,
17+
},
18+
},
19+
rules: {
20+
semi: ['error', 'always'],
21+
'no-var': ['error'],
22+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
23+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
24+
'no-control-regex': [0],
25+
'prettier/prettier': 'error',
26+
'no-unused-vars': [
27+
'error',
28+
{
29+
vars: 'all',
30+
args: 'none',
31+
ignoreRestSiblings: false,
32+
argsIgnorePattern: 'reject',
33+
},
34+
],
35+
'no-async-promise-executor': [0],
36+
},
37+
},
38+
{
39+
files: ['test/**'],
40+
...tseslint.configs.disableTypeChecked,
41+
},
42+
eslintPluginPrettierRecommended
43+
);

0 commit comments

Comments
 (0)