Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Jun 27, 2024
1 parent c2b77b6 commit 5d2bdbf
Show file tree
Hide file tree
Showing 14 changed files with 737 additions and 735 deletions.
25 changes: 20 additions & 5 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extends:
#- plugin:sonarjs/recommended
- plugin:ava/recommended
- xo
- prettier
- plugin:prettier/recommended

plugins:
- '@typescript-eslint'
Expand All @@ -37,24 +37,25 @@ parser: '@typescript-eslint/parser'

parserOptions:
ecmaVersion: 2020
project: ./**/tsconfig.*
project: ./tsconfig*.json

overrides:
- files: '*.ts'
extends:
- plugin:github/typescript
- plugin:import/typescript
- xo-typescript
- prettier
- plugin:prettier/recommended
parserOptions:
ecmaVersion: 2020
project: ./**/tsconfig.*
project: ./tsconfig*.json
rules:
prettier/prettier: off
'@typescript-eslint/naming-convention':
[
error,
{ selector: default, format: [camelCase] },
{ selector: import, modifiers: [default], format: null },
{ selector: objectLiteralProperty, format: null },
{ selector: enumMember, format: [PascalCase] },
{ selector: typeProperty, format: null },
Expand All @@ -64,6 +65,7 @@ overrides:
format: [camelCase, UPPER_CASE],
leadingUnderscore: allow,
},
{ selector: variable, modifiers: [destructured], format: null },
{
selector: parameter,
format: [camelCase],
Expand All @@ -78,6 +80,7 @@ overrides:
},

{ selector: typeLike, format: [PascalCase] },
{ selector: parameter, modifiers: [destructured], format: null },
]
'@typescript-eslint/restrict-template-expressions': 0
'@typescript-eslint/no-shadow': warn
Expand All @@ -87,7 +90,7 @@ overrides:
{
args: after-used,
ignoreRestSiblings: true,
varsIgnorePattern: ^_',
varsIgnorePattern: ^_,
argsIgnorePattern: ^_,
},
]
Expand Down Expand Up @@ -116,6 +119,7 @@ rules:
*/
onNonMatchingHeader: append
nonMatchingTolerance: 0.7
'@typescript-eslint/no-shadow': [warn, { allow: [_] }]
sonarjs/no-duplicate-string: [warn, { threshold: 5 }]
sonarjs/cognitive-complexity: warn
eslint-comments/no-unused-disable: off
Expand All @@ -128,14 +132,25 @@ rules:
eslint-comments/no-use: off
no-secrets/no-secrets: [error, { tolerance: 5 }]
no-empty-label: off
no-return-await: 0
no-warning-comments: 0
node/no-missing-import: off
import/no-unresolved: off
unicorn/prefer-spread: off
unicorn/prevent-abbreviations:
- warn
- replacements:
db: false
req: false
res: false
err: false
doc: false
docs: false
no-constructor-bind/no-constructor-bind: error
no-constructor-bind/no-constructor-state: error
sort-imports: [warn, { allowSeparatedGroups: true }]
ava/no-ignored-test-files: off
ava/no-import-test-files: off
ava/no-skip-test: warn
ava/no-skip-assert: warn
ava/use-test: off
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"cois",
"copack",
"ecoli",
"escompat",
"facilityid",
"foodlogiq",
"fsqa",
Expand All @@ -67,6 +68,7 @@
"pfgias",
"pino",
"REDDYRAW",
"simx",
"Snyk",
"sonarjs",
"trellisfw",
Expand Down
626 changes: 313 additions & 313 deletions .yarn/releases/yarn-4.2.2.cjs → .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ compressionLevel: mixed

enableGlobalCache: false

yarnPath: .yarn/releases/yarn-4.2.2.cjs
yarnPath: .yarn/releases/yarn-4.3.1.cjs
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "dist/index.js",
"type": "module",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"scripts": {
"build": "tsc -b",
Expand Down Expand Up @@ -48,24 +48,24 @@
},
"dependencies": {
"@oada/client": "^5.1.0",
"@oada/jobs": "^4.5.1",
"@oada/jobs": "^4.5.2",
"@oada/lib-prom": "^3.8.0",
"@oada/list-lib": "^5.0.4",
"@oada/list-lib": "^6.0.2",
"@oada/pino-debug": "^3.10.0",
"@oada/types": "^3.4.5",
"@oada/types": "^3.5.3",
"@overleaf/o-error": "^3.4.0",
"@trellisfw/signatures": "^2.1.3",
"axios": "^1.6.8",
"axios": "^1.7.2",
"clone-deep": "^4.0.1",
"convict": "^6.2.4",
"convict-format-with-moment": "^6.2.0",
"convict-format-with-validator": "^6.2.0",
"debug": "^4.3.4",
"debug": "^4.3.5",
"dotenv": "^16.4.5",
"ksuid": "^3.0.0",
"make-promises-safe": "^5.1.0",
"moment": "^2.30.1",
"tslib": "^2.6.2"
"tslib": "^2.6.3"
},
"devDependencies": {
"@ava/typescript": "^5.0.0",
Expand All @@ -74,14 +74,14 @@
"@types/convict": "^6.1.6",
"@types/convict-format-with-validator": "^6.0.5",
"@types/debug": "^4.1.12",
"@types/lodash": "^4.17.4",
"@types/node": "^20.12.12",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@yarnpkg/sdks": "^3.1.2",
"@types/lodash": "^4.17.6",
"@types/node": "^20.14.9",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@yarnpkg/sdks": "^3.1.3",
"assign-deep": "^1.0.1",
"ava": "6.1.3",
"eslint": "^8",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-xo": "^0.45.0",
"eslint-config-xo-typescript": "^4.0.0",
Expand All @@ -90,33 +90,33 @@
"eslint-plugin-escompat": "^3.4.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-github": "^4.10.2",
"eslint-plugin-github": "^5.0.1",
"eslint-plugin-i18n-text": "^1.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-no-constructor-bind": "^2.0.4",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-no-secrets": "^1.0.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-notice": "^0.9.10",
"eslint-plugin-notice": "^1.0.0",
"eslint-plugin-optimize-regex": "^1.2.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-regexp": "^2.5.0",
"eslint-plugin-security": "^3.0.0",
"eslint-plugin-promise": "^6.2.0",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-sonarjs": "^1.0.3",
"eslint-plugin-unicorn": "^53.0.0",
"eslint-plugin-unicorn": "^54.0.0",
"isomorphic-timers-promises": "^1.0.1",
"json-ptr": "^3.1.1",
"lodash": "^4.17.21",
"object-hash": "^3.0.0",
"prettier": "^3.2.5",
"typescript": "5.4.5"
"prettier": "^3.3.2",
"typescript": "5.5.2"
},
"packageManager": "yarn@4.2.2",
"resolutions": {
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
},
"packageManager": "yarn@4.3.1",
"volta": {
"node": "20.13.1"
},
"resolutions": {
"@oada/jobs": "portal:/home/sanoel/jobs"
}
}
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ await Promise.all(

// --------------------------------------------------
// Set the job type handlers; timeout the job 2 minutes longer than target
service.on('transcription', config.get('timeouts.pdf') + 120_000, pdfJobHandler);
service.on(
'transcription',
config.get('timeouts.pdf') + 120_000,
pdfJobHandler,
);
// Service.on('asn', config.get('timeouts.asn'), asnJobHandler);

// --------------------------------------------------
Expand Down
Loading

0 comments on commit 5d2bdbf

Please sign in to comment.