Turn off eslint import/extension

This commit is contained in:
wancat committed 2023-07-15 15:30:42 +08:00
1 parent df12fee39c
commit de637f3cf6
3 files changed
+3 -6

No files matched your search

+1
View File
@@ -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',
},
}
+2 -2
View File
@@ -1,4 +1,4 @@
{
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
-4
View File
@@ -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')