Skip to content

Commit

Permalink
Cleanup backend files
Browse files Browse the repository at this point in the history
  • Loading branch information
n1klaus committed May 1, 2023
1 parent 9c4c1b4 commit c1f1962
Show file tree
Hide file tree
Showing 36 changed files with 857 additions and 777 deletions.
1 change: 1 addition & 0 deletions backend/.eslintrc.mjs → backend/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports = {
}
},
rules: {
quotes: [2, "single", { "avoidEscape": true }],
'no-console': 'off',
'no-shadow': 'off',
'no-restricted-syntax': ['error', 'LabeledStatement', 'WithStatement']
Expand Down
7 changes: 1 addition & 6 deletions backend/babel.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
module.exports = {
presets: [
[
'@babel/preset-env',
'@babel/preset-typescript'
]
]
presets: [['@babel/preset-env', '@babel/preset-typescript']]
};
6 changes: 4 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"license": "MIT",
"scripts": {
"start": "ts-node-dev --respawn --transpile-only src/server.ts",
"lint": "./node_modules/.bin/eslint *.js *.ts --fix",
"check-lint": "./node_modules/.bin/eslint *.js *.ts",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
"check-lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"start-server": "nodemon --exec babel-node --presets @babel/preset-env src/server.ts",
"start-worker": "nodemon --exec babel-node --presets @babel/preset-env src/worker.ts",
"test-types": "tsc --incremental --noEmit",
Expand Down Expand Up @@ -39,6 +39,8 @@
"chai-http": "^4.3.0",
"eslint": "^8.39.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-base-typescript": "^1.1.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-airbnb-typescript-base": "^4.0.2",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
Expand Down
30 changes: 0 additions & 30 deletions backend/src/controllers/AppController.ts

This file was deleted.

40 changes: 0 additions & 40 deletions backend/src/controllers/DownloadController.ts

This file was deleted.

82 changes: 0 additions & 82 deletions backend/src/controllers/StreamController.ts

This file was deleted.

184 changes: 0 additions & 184 deletions backend/src/controllers/UserController.ts

This file was deleted.

Loading

0 comments on commit c1f1962

Please sign in to comment.