![](/img/trans.png)
[英]Find useless dependencies injection in Angular project
我嘗試使用 Eslint 在我的 Angular/Ionic 組件中查找無用的依賴項注入。 例子:import { BasicDataService } from '../../providers/basic-data.service'; @Component({ selector: 'a ...
[英]Find useless dependencies injection in Angular project
我嘗試使用 Eslint 在我的 Angular/Ionic 組件中查找無用的依賴項注入。 例子:import { BasicDataService } from '../../providers/basic-data.service'; @Component({ selector: 'a ...
[英]What the difference between "parser" and "parserOptions.parser" in ESLint config?
我已經為 TypeScript 和 Vue 使用了很長時間的以下預設。 它有效,但我還沒有理解每個選項,現在要理解它。 首先: parser和@typescript-eslint/parser有什么區別? 實驗數據沒有parser: "vue-eslint-parser" ,我們有[unknown ...
[英]How fix 'Parsing error: “parserOptions.project” has been set for @typescript-eslint/parser.' inside gatsby-config and Gatsby-node.js
在我的 eslintrc.js 中,我有 ao: 在我的 Gatsby 項目的根目錄中,我有gatsby-config.js和gatsby-config.js 。 在文件的開頭我得到一個ESLint錯誤: 解析錯誤:“parserOptions.project”已為@typescript-eslin ...
[英]Set up import aliases in Gatsby / Typescript project
我嘗試在我的 Gatsby 和 Typescript 項目中創建導入別名。 我使用 npm package eslint-import-resolver-alias 。 所以我可以使用: 在gatsby-node.js我有: 常量路徑 = 要求('路徑'); 在.eslintrc.js我有: 在我有 ...
[英]@typescript-eslint/parser parserOptions.ecmaVersion ignored / not linting
我為我的測試文件配置了 ecmaVersion 6,但它不包含 ecma6 中不可用的 lint 功能。 規則運行良好。 .eslintrc.js tsconfig.e2e.json 示例代碼: 預期結果因為 Object.values() 是 ecma 2017 中引入的一個特性 ...