All Projects → chinchiheather → tslint-lines-between-class-members

chinchiheather / tslint-lines-between-class-members

Licence: other
Custom rule for TSLint to enforce blank lines between class methods - achieves a similar thing to lines-between-class-members in ESLint

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tslint-lines-between-class-members

tslint-defocus
A tslint rule to nag you when you forget that you have focused some Jasmine tests with 'fdescribe' or 'fit'
Stars: ✭ 18 (+0%)
Mutual labels:  tslint, tslint-rules
custom-tslint-formatters
Custom formatters for TSLint
Stars: ✭ 14 (-22.22%)
Mutual labels:  tslint
fullstack-typescript
A demo project of a full stack typescript application
Stars: ✭ 28 (+55.56%)
Mutual labels:  tslint
vscode-lint
A VSCode configuration tool integrating Stylelint and Eslint
Stars: ✭ 60 (+233.33%)
Mutual labels:  tslint
react-ui-kit-boilerplate
A minimal React UI Kit boilerplate with Storybook, hot reloading, Styled Components, Typescript and Jest
Stars: ✭ 88 (+388.89%)
Mutual labels:  tslint
react-typescript
React16 + HMR + typescript + webpack + tslint + tests
Stars: ✭ 21 (+16.67%)
Mutual labels:  tslint
TSLint.MSBuild
[Deprecated] An MSBuild task for running TSLint.
Stars: ✭ 13 (-27.78%)
Mutual labels:  tslint
astraea
TypeScript + React Boilerplate
Stars: ✭ 15 (-16.67%)
Mutual labels:  tslint
alda
A boilerplate for React isomorphic aplication with Material Design
Stars: ✭ 16 (-11.11%)
Mutual labels:  tslint
ionic3-awesome
😃 ionic3自定义组件及常用例子 演示地址
Stars: ✭ 95 (+427.78%)
Mutual labels:  tslint
ts-standard
Typescript style guide, linter, and formatter using StandardJS
Stars: ✭ 338 (+1777.78%)
Mutual labels:  tslint
codeclimate-tslint
Code Climate TSLint-Engine
Stars: ✭ 39 (+116.67%)
Mutual labels:  tslint
react-typescript-boilerplate
A React + Redux + TypeScript + HOT + Webpack + Material-UI + Sass boilerplate
Stars: ✭ 18 (+0%)
Mutual labels:  tslint
gulp-reporter
Error report for: CSSLint/EditorConfig/ESLint/HTMLHint/JSCS/JSHint/PostCSS/Standard/TSLint/XO
Stars: ✭ 17 (-5.56%)
Mutual labels:  tslint
express-ts-api-boilerplate
Express TypeScript API Boilerplate
Stars: ✭ 15 (-16.67%)
Mutual labels:  tslint
stencil-boilerplate
A Stencil app boilerplate including routing, Redux etc.
Stars: ✭ 51 (+183.33%)
Mutual labels:  tslint
play-angular-typescript.g8
A giter8 template for a Play Angular 4 Typescript application
Stars: ✭ 91 (+405.56%)
Mutual labels:  tslint
tslint-webpack-plugin
TSLint plugin for Webpack
Stars: ✭ 22 (+22.22%)
Mutual labels:  tslint
web-build-tool-demo
比较全面的前端构建工具demo,拿来即练,不定时更新,包含git npm gulp webpack babel typescript husky eslint tslint lint-stage prettier等
Stars: ✭ 42 (+133.33%)
Mutual labels:  tslint
umi-dva-typescript-mock
基于umi + dva + typescript + mock + antd的react框架,内置PWA
Stars: ✭ 17 (-5.56%)
Mutual labels:  tslint

tslint-lines-between-class-members

npm CircleCI

Custom rule for TSLint to enforce blank lines between class methods - achieves a similar thing to lines-between-class-members in ESLint

Install

# yarn
yarn add --dev tslint-lines-between-class-members

# npm
npm install --save-dev tslint-lines-between-class-members

Configuration

Update your tslint.json config file, adding the new rules directory and the new rule
You can choose to specify the exact number of lines you want between methods, or leave it to default to just checking there is at least 1

{
  "rulesDirectory": [
    "node_modules/tslint-lines-between-class-members"
  ],
  "rules": {
    "lines-between-class-members": true,
  }
}

Config Examples

At least one line:

"lines-between-class-members": true

Exactly one line:

"lines-between-class-members": [true, 1]

Exactly twenty two lines:

"lines-between-class-members": [true, 22]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].