我有以下代码:
import {
reactSelectStyleCustom,
reactSelectStyleDefault,
} from '~/helper/const'
我需要更改特定的ESLint规则以获取如下内容:
import { reactSelectStyleCustom, reactSelectStyleDefault } from '~/helper/const'
我尝试在.eslintrc.json中添加“换行符样式”,但是没有用
"rules": {
"linebreak-style": 0,
}
答案 0 :(得分:2)
这会触发"object-curly-spacing"棉绒,因此请忽略它:
"rules": {
"object-curly-spacing": "off",
}