-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency prettier to v2.3.0 (#420)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Adam <adam@haglund.dev>
- Loading branch information
1 parent
d438a70
commit f4ad42a
Showing
25 changed files
with
200 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"printWidth": 90, | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { updateRelations } from '../src/update' | ||
import { updateRelations } from "../src/update" | ||
|
||
void updateRelations() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
import { Knex } from 'knex' | ||
import { Knex } from "knex" | ||
|
||
export async function up(knex: Knex): Promise<void> { | ||
if (await knex.schema.hasTable('relations')) return | ||
if (await knex.schema.hasTable("relations")) return | ||
|
||
const promises: Promise<void>[] = [] | ||
|
||
promises.push( | ||
knex.schema.createTable('relations', (table) => { | ||
table.integer('anilist').unique() | ||
table.integer('anidb').unique() | ||
table.integer('myanimelist').unique() | ||
table.integer('kitsu').unique() | ||
knex.schema.createTable("relations", (table) => { | ||
table.integer("anilist").unique() | ||
table.integer("anidb").unique() | ||
table.integer("myanimelist").unique() | ||
table.integer("kitsu").unique() | ||
}), | ||
) | ||
|
||
await Promise.all(promises) | ||
} | ||
|
||
export async function down(knex: Knex): Promise<void> { | ||
await knex.schema.dropTableIfExists('relations') | ||
await knex.schema.dropTableIfExists("relations") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
import { envsafe, port, str } from 'envsafe' | ||
import { envsafe, port, str } from "envsafe" | ||
|
||
export enum Environment { | ||
Development = 'development', | ||
Test = 'test', | ||
Production = 'production', | ||
Development = "development", | ||
Test = "test", | ||
Production = "production", | ||
} | ||
|
||
export const config = envsafe({ | ||
NODE_ENV: str({ | ||
choices: [ | ||
Environment.Development, | ||
Environment.Test, | ||
Environment.Production, | ||
], | ||
choices: [Environment.Development, Environment.Test, Environment.Production], | ||
default: Environment.Development, | ||
}), | ||
PORT: port({ | ||
devDefault: 3000, | ||
}), | ||
LOG_LEVEL: str({ | ||
default: 'info', | ||
devDefault: 'debug', | ||
choices: ['fatal', 'error', 'warn', 'info', 'debug', 'trace'], | ||
default: "info", | ||
devDefault: "debug", | ||
choices: ["fatal", "error", "warn", "info", "debug", "trace"], | ||
}), | ||
USER_AGENT: str({ | ||
default: 'arm-server', | ||
default: "arm-server", | ||
}), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import Pino from 'pino' | ||
import Pino from "pino" | ||
|
||
import { config } from '../config' | ||
import { config } from "../config" | ||
|
||
export const Logger = Pino({ | ||
level: config.LOG_LEVEL, | ||
prettyPrint: config.NODE_ENV !== 'production', | ||
prettyPrint: config.NODE_ENV !== "production", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.