Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
src/**/*.hbs.ts
src/di/default/temp
src/__testing__
src/jest.setup.ts
src/**/*.test.*
2 changes: 1 addition & 1 deletion docs/data-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class Test extends BaseEntity {
}
```

An entity to be included in a data source needs to extend `BaseEntity`, which defines an id, createdAt and updatedAt properties.
An entity to be included in a data source needs to extend `BaseEntity`, which defines an id property.

In order for the data source to map the properties, you need to decorate them with the `@Property` decorator. This is also used for validation.

Expand Down
10 changes: 9 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ import { configs } from 'eslint-config-service-soft';
/** @type {import('eslint').Linter.Config} */
export default [
...configs,
{ ignores: ['tsconfig.json', 'tsup.config.ts', 'sandbox', 'docs', 'src/di/default/temp'] },
{
files: ['**/*.ts'],
languageOptions: {
parserOptions: {
project: ['tsconfig.eslint.json']
}
}
},
{ ignores: ['tsconfig.json', 'tsup.config.ts', 'sandbox', 'docs', 'src/di/default/temp', '**/__testing__/file-output/**'] },
{
files: ['**/__testing__/**/*.ts'],
rules: {
Expand Down
Loading