Skip to content

Commit

Permalink
Ingest versions (#5)
Browse files Browse the repository at this point in the history
* Organise functions in separate files

* add dangling comma to eslint

* Ignore all files in lib

* Abstract away browser as service

* Return results in browser

* Set memory to 512 megs

* Set timeout to 90 seconds, as the default of 30 seconds was hit on the first start.
  • Loading branch information
webbertakken authored Oct 6, 2020
1 parent 46a3340 commit 39db006
Show file tree
Hide file tree
Showing 9 changed files with 360 additions and 87 deletions.
86 changes: 40 additions & 46 deletions functions/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,66 +4,60 @@ module.exports = {
es6: true,
node: true,
},
extends: [
"plugin:import/errors",
"plugin:import/warnings",
],
parser: "@typescript-eslint/parser",
extends: ['plugin:import/errors', 'plugin:import/warnings'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: "tsconfig.json",
sourceType: "module",
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: [
"@typescript-eslint",
"import",
],
plugins: ['@typescript-eslint', 'import'],
rules: {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/triple-slash-reference": "error",
"@typescript-eslint/unified-signatures": "warn",
"comma-dangle": "warn",
"constructor-super": "error",
eqeqeq: ["warn", "always"],
"import/no-deprecated": "warn",
"import/no-extraneous-dependencies": "error",
"import/no-unassigned-import": "warn",
"no-cond-assign": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty": [
"error",
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-empty-interface': 'warn',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/prefer-for-of': 'warn',
'@typescript-eslint/triple-slash-reference': 'error',
'@typescript-eslint/unified-signatures': 'warn',
'comma-dangle': ['warn', 'always-multiline'],
'constructor-super': 'error',
eqeqeq: ['warn', 'always'],
'import/no-deprecated': 'warn',
'import/no-extraneous-dependencies': 'error',
'import/no-unassigned-import': 'warn',
'no-cond-assign': 'error',
'no-duplicate-case': 'error',
'no-duplicate-imports': 'error',
'no-empty': [
'error',
{
allowEmptyCatch: true,
},
],
"no-invalid-this": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-redeclare": "error",
"no-sequences": "error",
"no-shadow": [
"error",
'no-invalid-this': 'error',
'no-new-wrappers': 'error',
'no-param-reassign': 'error',
'no-redeclare': 'error',
'no-sequences': 'error',
'no-shadow': [
'error',
{
hoist: "all",
hoist: 'all',
},
],
"no-throw-literal": "error",
"no-unsafe-finally": "error",
"no-unused-labels": "error",
"no-var": "warn",
"no-void": "error",
"prefer-const": "warn",
'no-throw-literal': 'error',
'no-unsafe-finally': 'error',
'no-unused-labels': 'error',
'no-var': 'warn',
'no-void': 'error',
'prefer-const': 'warn',
},
settings: {
jsdoc: {
tagNamePreference: {
returns: "return",
returns: 'return',
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions functions/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Compiled JavaScript files
lib/*.js
lib/*.js.map
lib/**/*.js
lib/**/*.js.map

# TypeScript v1 declaration files
typings/
Expand Down
Loading

0 comments on commit 39db006

Please sign in to comment.