-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy patheslint.config.mjs
More file actions
30 lines (29 loc) · 903 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
30 lines (29 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import js from '@eslint/js'
import tseslint from 'typescript-eslint'
import prettier from 'eslint-config-prettier'
import globals from 'globals'
export default tseslint.config(
{
ignores: ['dist/**', 'node_modules/**', 'diagnostics/**', 'sessions/**', 'scripts/**']
},
js.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.es2021
},
ecmaVersion: 2021,
sourceType: 'module'
},
rules: {
'@typescript-eslint/no-explicit-any': ['warn', { fixToUnknown: false }],
'prefer-arrow-callback': 'error',
'no-empty': 'off',
"preserve-caught-error": "off",
}
},
// Must come last: disables ESLint rules that conflict with Prettier formatting
prettier
)