-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
55 lines (54 loc) · 1.11 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
48
49
50
51
52
53
54
55
import cheminfo from 'eslint-config-cheminfo/base';
import unicorn from 'eslint-config-cheminfo/unicorn';
import globals from 'globals';
export default [
{
ignores: [
'packages/*/dist',
'packages/*/docs',
'packages/*/examples',
'packages/*/example',
'packages/*/lib',
'packages/*/lib-module',
'packages/*/node_modules',
'packages/chemical-groups/src/groups.js',
'packages/chemical-groups/src/groupsObject.js',
],
},
...cheminfo,
...unicorn,
{
languageOptions: {
globals: {
...globals.jest,
...globals.node,
},
},
rules: {
'max-lines-per-function': [
'warn',
{
max: 1000,
skipBlankLines: true,
skipComments: true,
},
],
'no-shadow': [
'error',
{
builtinGlobals: true,
hoist: 'all',
allow: [],
},
],
'no-await-in-loop': 'off',
'prefer-named-capture-group': 'off',
},
},
{
files: ['**/__tests__/**'],
rules: {
'max-lines-per-function': 'off',
},
},
];