diff --git a/.eslintrc.js b/.eslintrc.js index 1714e5f..97914c8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,5 +17,6 @@ module.exports = { 'prettier/prettier': ['error', { endOfLine: 'auto', semi: false }], // We added this 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'import/extensions': 'off', }, } diff --git a/.vscode/settings.json b/.vscode/settings.json index 51bfa9f..10af2e8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { - "editor.tabSize": 2, - "editor.defaultFormatter": "esbenp.prettier-vscode" -} \ No newline at end of file + "editor.tabSize": 2, + "editor.defaultFormatter": "esbenp.prettier-vscode" +} diff --git a/server/client.js b/server/client.js index 5535d36..9ff6c57 100644 --- a/server/client.js +++ b/server/client.js @@ -1,10 +1,6 @@ import { stdin, stdout, exit } from 'process' import { io } from 'socket.io-client' -import { Writable } from 'stream' -import { pipeline } from 'stream/promises' -console.log(stdin) -console.log(process.stdin.isTTY) stdin.setRawMode(true) stdin.resume() stdin.setEncoding('utf8')