James Hyun

- Total activity 12
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 5
-
James Hyun created a post, AnsweredHow can I keep indents on black line when pasting code?
if (some < bigger) { const now = moment(); const nowDate = now.toDate(); // here console.log(now); console.log(nowDate);} I already turned on 'Keep indents on empty lines' option, but indentat... -
James Hyun created a post, app.use() marked as "Argument types do not match parameters"
const express = require('express');const app = express();function logger(req, res, next) { ... }app.use(logger); // # Webstorm marks line '#' as "Argument types do not match parameters". I've alrea... -
James Hyun created a post, date-fns: Method expression is not of Function type
const subDays = require('date-fns/subDays');subDays(new Date(), (offset + 6)); In this code, Webstorm shows error message "Method expression is not of Function type" for subDays(...); How can I rem... -
James Hyun created a post, Vue.prototype is marked as unused
I've defined vue prototype '$http' in ../frontend/src/main.js, and it is used in ../frontend/src/components/IndexPage.vue file. But IntelliJ marks '$http' as unused definition. How can I fix this? -
James Hyun commented, -
James Hyun created a post, IntelliJ IDEA doesn't recognize ioredis module
const Redis = require('ioredis'); const redis = new Redis(); let howMany = redis.pfcount('mau_key'); I'm trying to ioredis module in JavaScript code, but IntelliJ doesn't recognize ioredis' librar...