-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheslint.config.mjs
33 lines (30 loc) · 1.09 KB
/
eslint.config.mjs
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
31
32
33
import eslint from '@eslint/js'
import prettierConfig from 'eslint-config-prettier'
import globals from 'globals'
import tseslint from 'typescript-eslint'
export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
prettierConfig, // Disable ESLint rules that conflict with Prettier
{
ignores: ['**/dist', '**/node_modules', 'archive*/'],
},
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off', // allow typescript "any" type
'@typescript-eslint/no-namespace': 'off', // TBD: ES2015 module syntax is preferred over namespaces
// allow assertions expect(test).to.be.true since true is not a fn
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/ban-ts-comment': 'off', // TBD: allow @ts-ignore comments
'@typescript-eslint/no-empty-object-type': 'off', // TBD: Auth | {} allow empty object
},
},
]