Releases: daniel7grant/eslint-plugin-typeorm-typescript
Releases · daniel7grant/eslint-plugin-typeorm-typescript
v0.5.0
Changed
- Fix circular dependecy issue between plugin and recommended, making customization fail (#20)
- Add
customized
example (with tests) to display the customization options - Thanks to @zollipaul for the issue
- Add
- Breaking:
bigint
anddecimal
are now parsed correctly according to the driver (#5)- There is new option
driver
forenforce-column-types
: can be 'postgres', 'mysql' or 'sqlite' - If the driver is empty (default) or set to MySQL and PostgreSQL, bigint and decimal are parsed to be strings
- If the driver is set to SQLite, bigint and decimal are parsed to be numbers
- For more information, see #5
- There is new option
v0.4.1
Added
- Add support for ESM Relation wrapper (#16, #17, thanks to @lmeysel for initial implementation)
- Add option to
enforce-relation-type
to make sure that relation wrapper is specified everywhere
Changed
- Update dependencies to fix critical issue in
cross-spawn
and@eslint/plugin-kit
v0.4.0
Added
- Add support for flat configuration
- Update
typescript-eslint
packages to v8 - Update
eslint
packages to v9 - There is a new export
eslint-plugin-typeorm-typescript/recommended
, for simple interfacing of the flat configuration
- Update
- Add dual ES Module and CommonJS support
- Add
tsconfig.es.json
to output ES Modules toes/
- Output CommonJS format to
dist/
(needs hack to set themodule
tocommonjs
inpackage.json
) - Add
exports
fields topackage.json
for.
and./recommended
- Add extension to every import to comply with ES specification
- Add
- Add examples to be used as simple setup and end-to-end tests
v0.3.1
Changed
- Ignore array on JSON columns
v0.3.0
Added
- NEW RULE
enforce-consistent-nullability
: enable this to make sure that nullable is consistent everywhere (#9)- set
specifyNullable
toalways
to make thenullable
property required everywhere - set
specifyNullable
tonon-default
(default behaviour) to print errors whennullable
is set to the default value
- set
- Allow Column decorator to handle string parameters, multiple parameters
- Add UUID column-type to string types
- Add support for additional Column decorators:
- Primary column decorators
PrimaryColumn
,PrimaryGeneratedColumn
is number by default, - Date column decorators
CreateDateColumn
,UpdateDateColumn
is date by default,DeleteDateColumn
is nullable, - Version column decorator
VersionColumn
is number.
- Primary column decorators
- Add support for Typed Rules on Column types
- This allows to resolve referenced types (e.g. type aliases) in TypeScript types
- Allow lazy relations with
Promise<Relation>
(#10) - Report error when the relation doesn't have an arrow function defined
Changed
- Fix issue when empty Column type doesn't get report nullability errors
- Upgrade packages
- Upgrade TypeScript-ESLint from v6 to v7
- Remove AirBNB ESLint configuration
v0.2.6
Added
Changed
- Refactor internal column types
- Replace date with Date to match with TypeScript type (#6)
- Replace other with unknown
- Change undefined cases to unknown
- Refactor tests to provide better messages
v0.2.5
0.2.5
v0.2.4
Updata changelog with new patch version
v0.2.3
0.2.3
v0.2.2
0.2.2