-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy patheslint.config.mjs
46 lines (45 loc) · 1004 Bytes
/
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
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
export default [
// Config for JS files
{
...eslint.configs.recommended,
files: ['packages/**/*.js']
},
// Config for TS files
...[
eslint.configs.recommended,
...tseslint.configs.recommended
].map(conf => ({
...conf,
files: ['packages/**/*.ts']
})),
// Rule overrides
{
rules: {
'semi': ['warn', 'never'],
'no-redeclare': 0,
'valid-jsdoc': 0,
'no-undef': 0,
'no-constant-condition': 0,
'no-case-declarations': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/ban-ts-comment': 0
}
},
// Global ignores
{
ignores: [
'**/*.d.ts',
'**/*.js.flow',
'**/node_modules/',
'**/dist/',
'**/coverage/',
'flow-typed/',
'tests/',
'packages/prebuilt-tdlib/index.js',
]
},
]