-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.js
39 lines (39 loc) · 793 Bytes
/
base.js
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
/**
* @type {import('eslint').ESLint.ConfigData}
*/
module.exports = {
plugins: ['only-warn'],
extends: ['eslint:recommended', 'prettier'],
reportUnusedDisableDirectives: true,
rules: {
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '_.*',
varsIgnorePattern: '_.*',
destructuredArrayIgnorePattern: '_.*',
},
],
'no-console': 'warn',
'no-alert': 'warn',
camelcase: 'warn',
'no-undef': 'off',
'require-await': 'warn',
'no-return-await': 'warn',
},
overrides: [
{
files: [
'**/__tests__/*',
'**/__specs__/*',
'**/__mocks__/**',
'**/e2e/**',
'**/*.test.*',
'**/*.spec.*',
],
rules: {
'no-console': 'off',
},
},
],
};