Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
| import { createConnection, getConnection, Entity, getRepository } from "typeorm"; | |
| import { PrimaryGeneratedColumn, Column } from "typeorm"; | |
| @Entity() | |
| export class MyEntity { | |
| @PrimaryGeneratedColumn() | |
| id?: number; | |
| @Column() | |
| name?: string; |
| ############################################################################### | |
| # Helpful Docker commands and code snippets | |
| ############################################################################### | |
| ### CONTAINERS ### | |
| docker stop $(docker ps -a -q) #stop ALL containers | |
| docker rm -f $(docker ps -a -q) # remove ALL containers | |
| docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
| # exec into container |