forked from SAP/ai-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
43 lines (42 loc) · 947 Bytes
/
eslint.config.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
import flatConfig from '@sap-cloud-sdk/eslint-config/flat-config.js';
export default [
...flatConfig,
{
// Eslint flat config is not supported by eslint-plugin-import.
// https://github.com/import-js/eslint-plugin-import/issues/2556
rules: {
'import/namespace': 'off',
'import/no-internal-modules': 'off'
// TODO: add this once there is a new release of eslint-plugin-import
// 'import/no-internal-modules': [
// 'error',
// { allow: ['@sap-cloud-sdk/*/internal.js'] }
// ]
}
},
{
ignores: [
'**/*.d.ts',
'**/dist/**/*',
'**/coverage/**/*',
'packages/**/client/**/*'
]
},
{
files: [
'**/test-util/**/*.ts'
],
rules: {
'jsdoc/require-jsdoc': 'off'
}
},
{
files: ['packages/langchain/**/*.ts'],
rules: {
'import/no-internal-modules': 'off'
}
},
{
ignores: ['**/dist-cjs/**/*']
}
];