azz / Prettier Tslint
Licence: mit
Code ➡️ prettier ➡️ tslint --fix ➡️ Formatted Code ✨
Stars: ✭ 221
Programming Languages
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
Projects that are alternatives of or similar to Prettier Tslint
spec
🐣 easy to use eslint/stylelint/tslint/prettier/...
Stars: ✭ 60 (-72.85%)
Mutual labels: tslint, prettier
Tslint Plugin Prettier
Runs Prettier as a TSLint rule and reports differences as individual TSLint issues
Stars: ✭ 232 (+4.98%)
Mutual labels: prettier, tslint
web-build-tool-demo
比较全面的前端构建工具demo,拿来即练,不定时更新,包含git npm gulp webpack babel typescript husky eslint tslint lint-stage prettier等
Stars: ✭ 42 (-81%)
Mutual labels: tslint, prettier
Typescript Starter
Quickly create and configure a new library or Node.js project
Stars: ✭ 2,953 (+1236.2%)
Mutual labels: prettier, tslint
alda
A boilerplate for React isomorphic aplication with Material Design
Stars: ✭ 16 (-92.76%)
Mutual labels: tslint, prettier
express-ts-api-boilerplate
Express TypeScript API Boilerplate
Stars: ✭ 15 (-93.21%)
Mutual labels: tslint, prettier
Aurora
📦 A set of configs and rules for Typescript projects.
Stars: ✭ 30 (-86.43%)
Mutual labels: prettier, tslint
Doctorpretty
Wadler's "A prettier printer" embedded pretty-printer DSL for Swift
Stars: ✭ 186 (-15.84%)
Mutual labels: prettier
Tslint Consistent Codestyle
Collection of awesome rules to extend TSLint
Stars: ✭ 203 (-8.14%)
Mutual labels: tslint
Typescript Webpack React Redux Boilerplate
React and Redux with TypeScript
Stars: ✭ 182 (-17.65%)
Mutual labels: tslint
Typestrict
ESLint config focused on maximizing type safety 💪
Stars: ✭ 182 (-17.65%)
Mutual labels: tslint
Stylelint Prettier
Stylelint plugin for Prettier formatting
Stars: ✭ 188 (-14.93%)
Mutual labels: prettier
Prettier Chrome
🎨 An extension that can run Prettier in the browser
Stars: ✭ 207 (-6.33%)
Mutual labels: prettier
Typescript
TypeScript coding guidelines & configs for Formik
Stars: ✭ 215 (-2.71%)
Mutual labels: tslint
React Conf 17 Videos
Find that one presentation you missed!
Stars: ✭ 182 (-17.65%)
Mutual labels: prettier
Tslint React Hooks
TSLint rule for detecting invalid uses of React Hooks
Stars: ✭ 218 (-1.36%)
Mutual labels: tslint
React Luo
React Automatically - 保持最新技术 react17 hooks router5 webpack5 babel7 antd4
Stars: ✭ 211 (-4.52%)
Mutual labels: prettier
Prettier Plugin Tailwind
Sort tailwind classes in HTML with Prettier.
Stars: ✭ 192 (-13.12%)
Mutual labels: prettier
prettier-tslint
Formats your TypeScript using prettier
followed by tslint --fix
.
Install
With npm
:
npm install --save-dev prettier-tslint
Or with yarn
:
yarn add --dev prettier-tslint
prettier-tslint
allows you to install your own version of prettier
and
typescript
, so make sure you've installed them, too.
Configuration
prettier-tslint
find and will respect:
-
prettier
's.prettierrc
, or any other config file such aspackage.json
. -
prettier
's.prettierignore
file. -
tslint
'stslint.json
.
prettier-tslint
has no additional configuration.
CLI
Commands:
fix Fix one or more files
check List files that aren't formatted
Options:
--version Show version number [boolean]
--help Show help [boolean]
Examples:
prettier-tslint fix file1.ts file2.ts Fix provided files
prettier-tslint fix '**/*.ts' Fix all TypeScript files
prettier-tslint check '**/*.ts' List all unformatted TypeScript files
API
import { fix, check } from "prettier-tslint";
check("file.ts"); // -> false
fix("file.ts");
check("file.ts"); // -> true
Currently the fix
function will write to disk and not return anything. This behavior may change in a minor release before 1.0.0
is released.
Contributing
See CONTRIBUTING.md
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].