-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy patheslint.config.mjs
47 lines (45 loc) · 1.32 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
41
42
43
44
45
46
47
import tsEslint from 'typescript-eslint';
import apify from '@apify/eslint-config/ts';
// eslint-disable-next-line import/no-default-export
export default [
{
ignores: ['**/dist', 'node_modules', 'coverage', 'website/{build,.docusaurus}', '**/*.d.ts'],
},
...apify,
{
languageOptions: {
parser: tsEslint.parser,
parserOptions: {
project: 'tsconfig.json',
},
},
},
{
plugins: {
'@typescript-eslint': tsEslint.plugin,
},
rules: {
'no-void': 0,
'import/extensions': 0,
'no-empty-function': 0,
'no-param-reassign': 0,
'no-use-before-define': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-empty-object-type': 0,
'@typescript-eslint/no-empty-function': 1,
'@typescript-eslint/no-unsafe-declaration-merging': 0,
},
},
{
files: ['test/**/*'],
rules: {
'no-console': 0,
'no-void': 0,
'no-useless-constructor': 0,
'import/no-extraneous-dependencies': 0,
'no-empty-function': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/ban-ts-comment': 0,
},
},
];