Skip to content

Commit daa1b32

Browse files
chore(lint): migrate to eslint flat config and fix package scripts
Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
1 parent e760ff7 commit daa1b32

7 files changed

Lines changed: 362 additions & 17 deletions

File tree

.eslintrc.js

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

eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import js from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import globals from 'globals';
4+
5+
export default tseslint.config(
6+
{
7+
ignores: ['**/dist/**', '**/node_modules/**', '**/.turbo/**', '**/coverage/**', '**/.next/**'],
8+
},
9+
js.configs.recommended,
10+
...tseslint.configs.recommended,
11+
{
12+
files: ['**/*.{ts,tsx,js,jsx,mjs,cjs}'],
13+
languageOptions: {
14+
ecmaVersion: 2020,
15+
globals: {
16+
...globals.browser,
17+
...globals.node,
18+
...globals.jest,
19+
},
20+
},
21+
rules: {
22+
'@typescript-eslint/no-explicit-any': 'warn',
23+
},
24+
},
25+
);

0 commit comments

Comments
 (0)