cost 352 ms
如何在 Doom Emacs 上保存时将 StandardJs 添加到全部格式? - How can I add StandardJs to format-all on save on Doom Emacs?

我看到在当前版本的format-all中,它们都支持标准 js,但不幸的是,doom emacs 并非如此,只有 prettier 可用。 我试过在他们的源代码上获取定义并修改它以适应厄运的修改: 但没有结果。 我也尝试按照Doom Emacs 文档中的建议定义格式化程序,但结果相同: 是的,我在 ...

如何使用 ts-standard 禁用整个 TypeScript 项目的 ESLint 规则? - How to disable ESLint rule for whole TypeScript project using ts-standard?

赏金将在 7 天后到期。 此问题的答案有资格获得+50声望赏金。 David Y. Stephenson正在寻找一个规范的答案: 同样,如何为整个项目启用规则? 在我的 TypeScript 项目中,我使用节点模块“typescript”和“ts-standard”。 作为 IDE,我正在使用带 ...

StandardJS 未将 array.push() 识别为重新分配 - StandardJS not recognising array.push() as reassignment

我在循环之前声明了一个空数组,然后在循环运行时填充该数组。 我的代码工作正常,但是当我使用 StandardJS 进行 lint 时,它告诉我数组永远不会重新分配,应该声明为 const。 如果我这样做了,那么我将无法向我的数组添加值,并且我的代码将无法工作。 这也意味着我不能使用标准 --fix因 ...

使用 StandardJS,仅在“else”语句的错误行上出现花括号错误 - Using StandardJS, getting error for curly brace on wrong line only for 'else' statements

我正在尝试使用 StandardJS 来帮助我进行 linting(也是因为我的主管要求我这样做)。 它在很大程度上工作得很好。 但是,今天我开始收到以前从未见过的错误,报告说: 这是导致错误的代码: 为什么我会收到此错误,我该如何预防? 注意,我在这个项目中使用 StandardJS 8.6.0。 ...

“解决错误:无法加载解析器“节点”” - "Resolve error: unable to load resolver "node""

我花了一天时间在项目中与 standardJS 和 package.json 搏斗。 就在我认为升级到标准 11 时我已经解决了一些无定义问题时,我现在面临多个问题: 所以回到基础,我真的需要为 standardJS 安装“eslint”才能工作吗? 该项目似乎确实需要“babel-eslint” ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM