-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy patheslint.config.js
More file actions
44 lines (43 loc) · 1.03 KB
/
eslint.config.js
File metadata and controls
44 lines (43 loc) · 1.03 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
import loguxTsConfig from '@logux/eslint-config/ts'
import globals from 'globals'
/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: ['test/demo/dist', '**/errors.ts']
},
...loguxTsConfig,
{
languageOptions: {
globals: globals.browser
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'camelcase': 'off',
'n/no-unsupported-features/node-builtins': [
'error',
{
ignores: [
'WebSocket',
'navigator',
'localStorage',
'CompressionStream',
'Response',
'DecompressionStream',
'crypto',
'CryptoKey'
]
}
],
'no-console': 'off',
'prefer-let/prefer-let': 'off', // Temporary fix until new release
'symbol-description': 'off'
}
},
{
files: ['indexed-store/index.test.ts'],
rules: {
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/prefer-promise-reject-errors': 'off'
}
}
]