cost 102 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,我正在使用帶 ...

Vue 2 - ESLint + 標准 + 更漂亮

[英]Vue 2 - ESLint + Standard + Prettier

如何創建一個使用 ESLint + StandardJS + Prettier 的 Vue 2 項目? StandardJS 的規則自然應該優先於 Prettier 的規則。 vue create 只提供以下選項: ESLint + 標准 ESLint + 更漂亮 我嘗試了兩件 ...

standardjs拋出'Blob'未定義

[英]standardjs throws 'Blob' is not defined

我有這個代碼 當我運行標准 js 時,它會拋出“'Blob' is not defined” 有人知道為什么會這樣嗎? ...

在 ESLint 上禁用所有與 React 相關的 lint 警告

[英]Disabling all React related lint warnings on ESLint

我正在開發一個使用 JSX 而沒有 React 的項目。 由於 JSX,ESLint 認為我正在使用 React,如何禁用所有與 React 相關的 linter 警告? 例如,我收到以下警告: 有沒有辦法可以禁用所有以react開頭的警告? 謝謝你。 ...

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。 ...

找不到模塊“babel-eslint”(標准和 babel-eslint 都已在本地安裝)

[英]Cannot find module 'babel-eslint' (both standard and babel-eslint already installed locally)

什么版本的標准? 12.0.1 什么操作系統、Node.js 和 npm 版本? Windows 10,節點 v10.15.1,NPM v.6.8.0 你期望會發生什么? 我在 devDependencies(本地)上安裝了標准和 babel-eslint。 我運行standa ...

2019-03-15 10:23:14   3   13500    standardjs  
StandardJS linting返回靜態變量的解析錯誤

[英]StandardJS linting returns parsing error for static variable

我確實收到Parsing error: Unexpected token使用standardJS出現了此行的 Parsing error: Unexpected token掉毛錯誤。 因此,我的CI失敗了。 我不明白這行有什么問題。 我該如何解決? ...

StandardJS和React類導出意外令牌=

[英]StandardJS and React class export Unexpected token =

誰能闡明我從StandardJS回來的通知? 解析錯誤:意外的令牌= 代碼如下: 錯誤是指第二行input = class ...

JS:棉絨錯誤:意外令牌=

[英]JS: Lint error: Unexpected token =

我確實收到了標准的Js棉絨錯誤 對於此片段,它來自https://github.com/zeit/next.js/blob/canary/examples/with-apollo/lib/with-apollo-client.js 怎么了 我正在使用standardJs 11. ...

“解決錯誤:無法加載解析器“節點””

[英]"Resolve error: unable to load resolver "node""

我花了一天時間在項目中與 standardJS 和 package.json 搏斗。 就在我認為升級到標准 11 時我已經解決了一些無定義問題時,我現在面臨多個問題: 所以回到基礎,我真的需要為 standardJS 安裝“eslint”才能工作嗎? 該項目似乎確實需要“babel-eslint” ...

如何配置StandardJS?

[英]How to configure StandardJS?

StandardJS的一個主要特性是它不需要配置。 問題是我想配置它。 我不想放: ...在每個測試文件中。 我想配置StandardJS來將測試目錄中的所有內容視為mocha測試。 我在README中發現一些配置是可能的,例如: ...但我很難找到有關配置選項的 ...

如何切換到不同的ESLint樣式指南?

[英]How can I switch to a different ESLint style guide?

我開始與VUE-CLI和的WebPack和配置ESLint對Airbnb的風格指南新Vue公司的項目。 如何將此選項更改為標准樣式? 我對逗號和分號的過剩感到非常厭倦,並希望嘗試使用標准JS 。 我現在正在這個項目獨自工作,所以不要擔心團隊抱怨:) ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM