-
Notifications
You must be signed in to change notification settings - Fork 7
/
eslint.config.mjs
40 lines (36 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
34
35
36
37
38
39
40
import tseslint from 'typescript-eslint';
import ddgConfig from '@duckduckgo/eslint-config';
import globals from 'globals';
// @ts-check
export default tseslint.config(
...ddgConfig,
...tseslint.configs.recommended,
{
ignores: ['**/build/', '**/swift-package/', 'shared/data/constants.js', 'schema/__generated__', 'schema/__fixtures__'],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.webextensions,
...globals.node,
it: true,
Proxy: true,
},
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'none',
caughtErrors: 'none',
ignoreRestSiblings: true,
vars: 'all',
},
],
},
}
);