-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.mjs
47 lines (46 loc) · 1.5 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
import react from 'eslint-config-cheminfo-react/base';
import ts from 'eslint-config-cheminfo-typescript/base';
import unicorn from 'eslint-config-cheminfo-typescript/unicorn';
export default [
{
ignores: [
'dist',
'build',
'coverage',
'lib',
'lib-cjs',
'node_modules',
'playwright-report',
'public',
'vite.config.ts'
],
},
...ts,
...unicorn,
...react,
{
rules: {
'import/default': 'off',
'import/no-unresolved': 'off',
'react-refresh/only-export-components': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'react/no-unstable-nested-components': 'off',
'no-restricted-imports': [
'error',
{
name: 'lodash',
message: "Use a deep import instead, like for example 'lodash/get'",
},
{
name: '@simbathesailor/use-what-changed',
message: 'Remove use-what-changed before committing the code',
}
],
'react/no-unknown-property': ['error', { ignore: ['css'] }],
},
},
];