eslint-plugin-etc:更通用的(与TypeScript相关的)ESLint规则-源码

上传者: 42165490 | 上传时间: 2021-02-26 20:04:54 | 文件大小: 96KB | 文件类型: ZIP
eslint-plugin-etc 该软件包包含一堆与TypeScript相关的通用ESLint规则。 本质上,这是软件包中规则的重新实现。 有些规则比较自以为是,不包含在recommended配置中。 开发人员可以自行决定是否要启用自以为是的规则。 安装 使用npm安装ESLint TypeScript解析器: npm install @typescript-eslint/parser --save-dev 使用npm安装软件包: npm install eslint-plugin-etc --save-dev 配置parser和parserOptions的ESLint。 在这里,我使用.eslintrc.js文件进行配置: const { join } = require ( "path" ) ; module . exports = { parser : "@types

文件下载

资源详情

[{"title":"( 61 个子文件 96KB ) eslint-plugin-etc:更通用的(与TypeScript相关的)ESLint规则-源码","children":[{"title":"eslint-plugin-etc-main","children":[{"title":".eslintrc.json <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"source","children":[{"title":"tag.ts <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"utils.ts <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"configs","children":[{"title":"recommended.ts <span style='color:#111;'> 371B </span>","children":null,"spread":false}],"spread":true},{"title":"index.ts <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"rules","children":[{"title":"no-misused-generics.ts <span style='color:#111;'> 4.95KB </span>","children":null,"spread":false},{"title":"no-internal.ts <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"prefer-interface.ts <span style='color:#111;'> 7.51KB </span>","children":null,"spread":false},{"title":"no-commented-out-code.ts <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"no-t.ts <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"no-enum.ts <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"no-const-enum.ts <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"no-implicit-any-catch.ts <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"no-deprecated.ts <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"throw-error.ts <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"no-assign-mutated-array.ts <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"no-foreach.ts <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false}],"spread":false},{"title":"tslint-tag.ts <span style='color:#111;'> 6.48KB </span>","children":null,"spread":false}],"spread":true},{"title":".github","children":[{"title":"FUNDING.yml <span style='color:#111;'> 721B </span>","children":null,"spread":false}],"spread":true},{"title":"yarn.lock <span style='color:#111;'> 104.19KB </span>","children":null,"spread":false},{"title":"tsconfig-dist.json <span style='color:#111;'> 125B </span>","children":null,"spread":false},{"title":".vscode","children":[{"title":"launch.json <span style='color:#111;'> 763B </span>","children":null,"spread":false}],"spread":true},{"title":".circleci","children":[{"title":"config.yml <span style='color:#111;'> 685B </span>","children":null,"spread":false}],"spread":true},{"title":"CONTRIBUTING.md <span style='color:#111;'> 94B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 4.89KB </span>","children":null,"spread":false},{"title":"THIRD_PARTY_NOTICES <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"rules","children":[{"title":"no-implicit-any-catch.md <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"no-deprecated.md <span style='color:#111;'> 785B </span>","children":null,"spread":false},{"title":"no-const-enum.md <span style='color:#111;'> 842B </span>","children":null,"spread":false},{"title":"no-enum.md <span style='color:#111;'> 446B </span>","children":null,"spread":false},{"title":"no-internal.md <span style='color:#111;'> 777B </span>","children":null,"spread":false},{"title":"no-assign-mutated-array.md <span style='color:#111;'> 956B </span>","children":null,"spread":false},{"title":"no-commented-out-code.md <span style='color:#111;'> 551B </span>","children":null,"spread":false},{"title":"prefer-interface.md <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"throw-error.md <span style='color:#111;'> 761B </span>","children":null,"spread":false},{"title":"no-t.md <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":"no-foreach.md <span style='color:#111;'> 903B </span>","children":null,"spread":false},{"title":"no-misused-generics.md <span style='color:#111;'> 488B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".editorconfig <span style='color:#111;'> 259B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":".eslintrc.json <span style='color:#111;'> 60B </span>","children":null,"spread":false},{"title":"utils.ts <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"modules","children":[{"title":"deprecated.ts <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false},{"title":"internal.ts <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false}],"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 237B </span>","children":null,"spread":false},{"title":"rules","children":[{"title":"no-misused-generics.ts <span style='color:#111;'> 5.26KB </span>","children":null,"spread":false},{"title":"no-internal.ts <span style='color:#111;'> 9.78KB </span>","children":null,"spread":false},{"title":"prefer-interface.ts <span style='color:#111;'> 6.35KB </span>","children":null,"spread":false},{"title":"no-commented-out-code.ts <span style='color:#111;'> 5.14KB </span>","children":null,"spread":false},{"title":"no-t.ts <span style='color:#111;'> 941B </span>","children":null,"spread":false},{"title":"no-enum.ts <span style='color:#111;'> 958B </span>","children":null,"spread":false},{"title":"no-const-enum.ts <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"no-implicit-any-catch.ts <span style='color:#111;'> 11.77KB </span>","children":null,"spread":false},{"title":"no-deprecated.ts <span style='color:#111;'> 10.91KB </span>","children":null,"spread":false},{"title":"throw-error.ts <span style='color:#111;'> 3.98KB </span>","children":null,"spread":false},{"title":"no-assign-mutated-array.ts <span style='color:#111;'> 6.61KB </span>","children":null,"spread":false},{"title":"no-foreach.ts <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 48B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 6.15KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明