Skip to content

Releases: daniel7grant/eslint-plugin-typeorm-typescript

v0.5.0

06 Dec 00:37
Compare
Choose a tag to compare

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
  • Breaking: bigint and decimal are now parsed correctly according to the driver (#5)
    • There is new option driver for enforce-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

v0.4.1

24 Nov 15:47
Compare
Choose a tag to compare

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

09 Aug 20:31
Compare
Choose a tag to compare

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
  • Add dual ES Module and CommonJS support
    • Add tsconfig.es.json to output ES Modules to es/
    • Output CommonJS format to dist/ (needs hack to set the module to commonjs in package.json)
    • Add exports fields to package.json for . and ./recommended
    • Add extension to every import to comply with ES specification
  • Add examples to be used as simple setup and end-to-end tests

v0.3.1

05 Aug 23:00
Compare
Choose a tag to compare

Changed

  • Ignore array on JSON columns

v0.3.0

16 Jun 16:13
Compare
Choose a tag to compare

Added

  • NEW RULE enforce-consistent-nullability: enable this to make sure that nullable is consistent everywhere (#9)
    • set specifyNullable to always to make the nullable property required everywhere
    • set specifyNullable to non-default (default behaviour) to print errors when nullable is set to the default value
  • 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.
  • 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

31 May 11:11
Compare
Choose a tag to compare

Added

  • Add array column field to test for array types (#3)
  • Add support for Column with unset type (#7)

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

17 Apr 18:57
Compare
Choose a tag to compare
0.2.5

v0.2.4

02 Mar 12:35
Compare
Choose a tag to compare
Updata changelog with new patch version

v0.2.3

20 Jan 15:50
Compare
Choose a tag to compare
0.2.3

v0.2.2

19 Dec 22:55
Compare
Choose a tag to compare
0.2.2