tslint-midway-contrib

tslint default rule for midway

tslint-midway-contrib

this is a sub package for midway.

Document: https://midwayjs.org/midway

Install

tnpm i tslint tslint-midway-contrib --save-dev

Usage

  • package.json
"prettier": {
    "singleQuote": true
  }

Configuration

  • tslint.json
{
  "extends": ["tslint-midway-contrib"]
}

Which Rules Should I Turn On?

There certainly are a lot of options! To start, you can enable our recommended defaults (recommended ruleset) by adding "@ali/tslint-midway"under "extends"in your tslint.json:

{
    "extends": ["tslint-midway-contrib"],
    "rulesDirectory": ["node_modules/tslint-midway-contrib"],
    "rules": {
        // ...
    }
}

License

MIT

Repository

http://github.com/midwayjs/midway.git


上一篇:sofa-rpc-node
下一篇:zonetk-core

相关推荐

  • 如何快速的成为 Ant Design 的 contributor

    大家好,我是 Rustin。今天想跟大家介绍下如何快速的成为 antd 的贡献者,希望能够对想要加入 antd 社区贡献的同学有帮助! 此博客在 GitHub 上公开发布. 如果您有任何问题或疑问,请...

    2 个月前
  • 前端:Angular框架关闭Tslint语法检查

    由于Angular版本问题而引起的代码误报,出现问题一般为TSLINT......,这个时候可以使用以下操作解决。 替换tslint.json文件内容 ...

    1 个月前
  • 从 0 开始,成为 Ant-Design Contributor

    大家好,我是 zoomdong,一名大三的学生,目前在北京实习。想给大家分享一下我最近给 Antdesign贡献代码的经历,同时也希望能引导大家来一起参与其中,一起为开源世界来贡献自己的力量! 原文地...

    9 天前
  • weallcontribute

    CONTRIBUTING.md generator weallcontribute npm version(https://img.shields.io/npm/v/weallcontribute...

    2 年前
  • vrsource-tslint-rules

    Extension rules for tslint Purpose This project includes a variety of tslint rules we have found ...

    1 年前
  • videojs-contrib-quality-levels

    Exposes a list of quality levels available for the source. videojscontribqualitylevels Build Statu...

    20 天前
  • videojs-contrib-hls

    Play back HLS with video.js, even where it's not natively supported Notice: this project will be d...

    2 年前
  • videojs-contrib-eme

    Supports Encrypted Media Extensions for playback of encrypted content in Video.js videojscontribem...

    20 天前
  • videojs-contrib-dash

    A Video.js sourcehandler providing MPEGDASH playback. video.js MPEGDASH Source Handler Build Stat...

    2 年前
  • videojs-contrib-ads

    A framework that provides common functionality needed by video advertisement libraries working with ...

    2 年前

官方社区

扫码加入 JavaScript 社区