-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy patheslint.config.mjs
More file actions
51 lines (49 loc) · 1.35 KB
/
eslint.config.mjs
File metadata and controls
51 lines (49 loc) · 1.35 KB
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
48
49
50
51
import tsStylistic from '@stylistic/eslint-plugin-ts';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
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', '**/*.d.ts'],
},
...apify,
prettier,
{
languageOptions: {
parser: tsEslint.parser,
parserOptions: {
project: 'tsconfig.eslint.json',
},
globals: {
...globals.browser,
...globals.node,
...globals.jest,
},
},
},
{
plugins: {
'@typescript-eslint': tsEslint.plugin,
'@stylistic': tsStylistic,
},
rules: {
'@typescript-eslint/no-explicit-any': 0,
'consistent-return': 0,
'no-use-before-define': 0,
'no-param-reassign': 0,
'no-void': 0,
'import/no-extraneous-dependencies': 0,
'import/extensions': 0,
},
},
{
files: ['test/**/*'],
rules: {
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-unused-vars': 0,
'no-console': 0,
},
},
];