Some cleanups from the old stuff

This commit is contained in:
Gender Shrapnel 2020-08-24 03:02:24 +02:00
parent 35e4c3a544
commit 69ebed5c7e
6 changed files with 996 additions and 1252 deletions

50
.eslintrc.js Normal file
View File

@ -0,0 +1,50 @@
module.exports = {
env: {
browser: true,
es2020: true
},
extends: [
"plugin:react/recommended",
"standard"
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 12,
sourceType: "module"
},
plugins: [
"react",
"@typescript-eslint"
],
settings: {
"react": {
"version": "detect"
}
},
rules: {
"space-before-function-paren": ["error", {
anonymous: "always",
named: "never",
asyncArrow: "always"
}],
"quote-props": ["error", "consistent"],
"quotes": ["error", "double"],
"sort-imports": ["error", {
"ignoreCase": true,
"allowSeparatedGroups": true
}]
},
overrides: [
{
files: ["*.ts", "*.tsx"],
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars-experimental": "error"
}
}
]
}

2157
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,6 @@
"tsc": "tsc --incremental ", "tsc": "tsc --incremental ",
"dev": "ts-node-dev -r dotenv/config --watch src/**/*.sql -r tsconfig-paths/register --respawn --transpile-only ./src/server/index.ts", "dev": "ts-node-dev -r dotenv/config --watch src/**/*.sql -r tsconfig-paths/register --respawn --transpile-only ./src/server/index.ts",
"prod": "tsc --incremental && node ./dist/src/server/index.js", "prod": "tsc --incremental && node ./dist/src/server/index.js",
"tslint-check": "tslint-config-prettier-check ./tslint.json",
"migrate": "tsc --incremental && node ./dist/src/scripts/migrate.js" "migrate": "tsc --incremental && node ./dist/src/scripts/migrate.js"
}, },
"keywords": [], "keywords": [],
@ -18,7 +17,7 @@
"dependencies": { "dependencies": {
"@holdyourwaffle/express-session": "^1.16.2", "@holdyourwaffle/express-session": "^1.16.2",
"@types/pug": "^2.0.4", "@types/pug": "^2.0.4",
"argon2": "^0.24.1", "argon2": "^0.27.0",
"cookie-parser": "^1.4.5", "cookie-parser": "^1.4.5",
"csurf": "^1.11.0", "csurf": "^1.11.0",
"dataloader": "^1.4.0", "dataloader": "^1.4.0",
@ -75,9 +74,9 @@
"tsconfig-paths": "^3.9.0", "tsconfig-paths": "^3.9.0",
"tslint": "^5.20.1", "tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0", "tslint-config-prettier": "^1.18.0",
"typescript": "^3.8.3", "typescript": "^4.0.2",
"webpack": "^4.42.1", "webpack": "^4.44.1",
"webpack-cli": "^3.3.11", "webpack-cli": "^3.3.12",
"webpack-dev-middleware": "^3.7.2" "webpack-dev-middleware": "^3.7.2"
} }
} }

View File

@ -18,7 +18,7 @@ POST {{ baseUrl }}/bootstrap HTTP/1.1
Content-Type: application/json Content-Type: application/json
{ {
"token": {{ bootstrapToken }}, "token": "{{ bootstrapToken }}",
"email": "test@test.com", "email": "test@test.com",
"password": "hornyhorny" "password": "hornyhorny"
} }

View File

@ -1,14 +0,0 @@
"use strict";
exports.__esModule = true;
var yargs_1 = require("yargs");
var _ = yargs_1["default"]
.scriptName("migrate")
.command("new [name]", "create a new migration", function (args) {
args.positional("name", {
type: "string",
describe: "name of the migration"
});
}, function (argv) {
console.log("hi", argv.name);
})
.help().argv;

View File

@ -1,16 +0,0 @@
{
"defaultSeverity": "error",
"extends": ["tslint:latest", "tslint-config-prettier"],
"jsRules": {},
"rules": {
"interface-name": [true, "never-prefix"],
"no-implicit-dependencies": [true, ["@kredens"]],
"object-literal-sort-keys": [
true,
"match-declaration-order-only",
"shorthand-first"
],
"max-classes-per-file": false
},
"rulesDirectory": []
}