tslint-config-prettier

WebJar for tslint-config-prettier

Лицензия

Лицензия

MIT
Категории

Категории

config Библиотеки уровня приложения Configuration
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

tslint-config-prettier
Последняя версия

Последняя версия

1.15.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

tslint-config-prettier
WebJar for tslint-config-prettier
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/alexjoverm/tslint-config-prettier

Скачать tslint-config-prettier

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/tslint-config-prettier/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>tslint-config-prettier</artifactId>
    <version>1.15.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/tslint-config-prettier/
implementation 'org.webjars.npm:tslint-config-prettier:1.15.0'
// https://jarcasting.com/artifacts/org.webjars.npm/tslint-config-prettier/
implementation ("org.webjars.npm:tslint-config-prettier:1.15.0")
'org.webjars.npm:tslint-config-prettier:jar:1.15.0'
<dependency org="org.webjars.npm" name="tslint-config-prettier" rev="1.15.0">
  <artifact name="tslint-config-prettier" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='tslint-config-prettier', version='1.15.0')
)
libraryDependencies += "org.webjars.npm" % "tslint-config-prettier" % "1.15.0"
[org.webjars.npm/tslint-config-prettier "1.15.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

tslint-config-prettier

npm Travis downloads dependencies Status devDependencies Status

👮 TSLint + 💅 Prettier = 😍

Do you want to use TSLint and Prettier without conflicts? tslint-config-prettier disables all conflicting rules that may cause such problems. Prettier takes care of the formatting whereas tslint takes care of all the other things.

Check how it works in this tutorial.

Get started

yarn add --dev tslint-config-prettier
# or
npm install --save-dev tslint-config-prettier

Make sure you've already set up TSLint and Prettier.

Then, extend your tslint.json, and make sure tslint-config-prettier is at the end:

{
  "extends": [
    "tslint:latest",
    "tslint-config-prettier"
  ]
}

More configuration

tslint-config-prettier also turns off formatting rules from the following rulesets, so you can use them safely.

{
  "extends": [
    "tslint:latest",
    "tslint-react",
    "tslint-eslint-rules",
    "tslint-config-prettier"
  ]
}

CLI helper tool

tslint-config-prettier is shipped with a little CLI tool to help you check if your configuration contains any rules that are in conflict with Prettier. (require tslint installed)

In order to execute the CLI tool, first add a script for it to package.json:

{
  "scripts": {
    "tslint-check": "tslint-config-prettier-check ./tslint.json"
  }
}

Then run yarn tslint-check or npm run tslint-check.

Or simply run npx tslint-config-prettier-check ./tslint.json.

Tutorials

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Related

  • tslint-plugin-prettier - Runs Prettier as a TSLint rule and reports differences as individual TSLint issues.

Credits

Made with ❤️ by @alexjoverm and all its contributors

Версии библиотеки

Версия
1.15.0