Skip to content

Commit 92378da

Browse files
committed
fix lint
1 parent af1be47 commit 92378da

7 files changed

Lines changed: 12 additions & 18 deletions

File tree

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
tests/bookshop/workflows/*
1+
tests/bookshop/workflows/*
2+
dist/*

cds-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('./dist/cds-plugin');
1+
export * from './dist/cds-plugin';

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import tseslint from 'typescript-eslint';
33

44
export default [
55
{
6-
ignores: ['gen/**', 'node_modules/**', '@cds-models/**'],
6+
ignores: ['dist/**', 'gen/**', 'node_modules/**', '@cds-models/**'],
77
},
88
...cds,
99
...tseslint.configs.recommended,

jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const config = {
1010
detectOpenHandles: true,
1111
extensionsToTreatAsEsm: ['.ts'],
1212
transform: {
13-
'^.+\\.ts$': ['ts-jest', { diagnostics: { ignoreCodes: [151002], pathRegex: '\\.test\\.ts$' } }],
13+
'^.+\\.ts$': [
14+
'ts-jest',
15+
{ diagnostics: { ignoreCodes: [151002], pathRegex: '\\.test\\.ts$' } },
16+
],
1417
},
1518
};
1619

srv/BTPProcessService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('../dist/srv/BTPProcessService');
1+
export * from '../dist/srv/BTPProcessService';

srv/localProcessService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('../dist/srv/localProcessService');
1+
export * from '../dist/srv/localProcessService';

tsconfig.build.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
"outDir": "./dist",
55
"rootDir": "."
66
},
7-
"include": [
8-
"./cds-plugin.ts",
9-
"./srv/**/*.ts",
10-
"./lib/**/*.ts"
11-
],
12-
"exclude": [
13-
"node_modules",
14-
"dist",
15-
"tests",
16-
"gen",
17-
"@cds-models"
18-
]
7+
"include": ["./cds-plugin.ts", "./srv/**/*.ts", "./lib/**/*.ts"],
8+
"exclude": ["node_modules", "dist", "tests", "gen", "@cds-models"]
199
}

0 commit comments

Comments
 (0)