mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
Turn off eslint import/extension
This commit is contained in:
1 parent
df12fee39c
commit
de637f3cf6
3 files changed
+3
-6
No files matched your search
@@ -17,5 +17,6 @@ module.exports = {
|
|||||||
'prettier/prettier': ['error', { endOfLine: 'auto', semi: false }], // We added this
|
'prettier/prettier': ['error', { endOfLine: 'auto', semi: false }], // We added this
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
'import/extensions': 'off',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"editor.tabSize": 2,
|
"editor.tabSize": 2,
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
import { stdin, stdout, exit } from 'process'
|
import { stdin, stdout, exit } from 'process'
|
||||||
import { io } from 'socket.io-client'
|
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.setRawMode(true)
|
||||||
stdin.resume()
|
stdin.resume()
|
||||||
stdin.setEncoding('utf8')
|
stdin.setEncoding('utf8')
|
||||||
|
|||||||
Reference in new issue
Block a user