Some cleanups from the old stuff
This commit is contained in:
parent
35e4c3a544
commit
69ebed5c7e
50
.eslintrc.js
Normal file
50
.eslintrc.js
Normal 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
2157
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,6 @@
|
||||
"tsc": "tsc --incremental ",
|
||||
"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",
|
||||
"tslint-check": "tslint-config-prettier-check ./tslint.json",
|
||||
"migrate": "tsc --incremental && node ./dist/src/scripts/migrate.js"
|
||||
},
|
||||
"keywords": [],
|
||||
@ -18,7 +17,7 @@
|
||||
"dependencies": {
|
||||
"@holdyourwaffle/express-session": "^1.16.2",
|
||||
"@types/pug": "^2.0.4",
|
||||
"argon2": "^0.24.1",
|
||||
"argon2": "^0.27.0",
|
||||
"cookie-parser": "^1.4.5",
|
||||
"csurf": "^1.11.0",
|
||||
"dataloader": "^1.4.0",
|
||||
@ -75,9 +74,9 @@
|
||||
"tsconfig-paths": "^3.9.0",
|
||||
"tslint": "^5.20.1",
|
||||
"tslint-config-prettier": "^1.18.0",
|
||||
"typescript": "^3.8.3",
|
||||
"webpack": "^4.42.1",
|
||||
"webpack-cli": "^3.3.11",
|
||||
"typescript": "^4.0.2",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-cli": "^3.3.12",
|
||||
"webpack-dev-middleware": "^3.7.2"
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ POST {{ baseUrl }}/bootstrap HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"token": {{ bootstrapToken }},
|
||||
"token": "{{ bootstrapToken }}",
|
||||
"email": "test@test.com",
|
||||
"password": "hornyhorny"
|
||||
}
|
||||
|
@ -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;
|
16
tslint.json
16
tslint.json
@ -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": []
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user