forked from sumup-oss/circuit-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.53 KB
/
.eslintrc.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = require('@sumup/foundry/eslint')({
parserOptions: {
project: ['./packages/*/tsconfig.json', './tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
overrides: [
{
files: ['**/*.stories.*'],
rules: {
'import/no-relative-packages': 'off',
},
},
{
files: [
'packages/circuit-ui/cli/migrate/__testfixtures__/**/*.input.*',
'packages/circuit-ui/cli/migrate/__testfixtures__/**/*.output.*',
],
rules: {
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'notice/notice': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'prettier/prettier': 'off',
'no-unused-vars': 'off',
'react/prop-types': 'off',
'no-console': 'off',
},
},
{
files: [
'packages/circuit-ui/cli/migrate/*.ts',
'packages/circuit-ui/cli/migrate/utils/*.ts',
],
rules: {
// jscodeshift expects no return value for files
// that should not be transformed.
'consistent-return': 'off',
'no-console': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
},
},
{
files: ['packages/icons/scripts/*'],
rules: {
'import/no-extraneous-dependencies': 'off',
'node/no-unpublished-require': 'off',
},
},
],
});