@effective/prettier
A leaner and more up-to-date alternative to prettier-eslint.
Last updated 2 months ago by swernerx .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @effective/prettier 
SYNC missed versions from official npm registry.

Effective Prettier (Effective Project)
Sponsored by Version Downloads Build Status Unix Build Status Windows Dependencies

Originally started as a very lean alternative to prettier-eslint which focuses on the basics of integrating Prettier and linting infrastructure into one tool. Includes a CLI tool called effective-prettier. Nowadays it supports both eslint and stylelint together with prettier. It executes these tool in memory using their APIs instead of touching files multiple times on the disc.

Problem

For some users linting rules tweak the behavior of prettier results. Combining both tools is typically quite a configuration hassle. The easier way to write a new tool which combines both... or even all three of the most relevant front-end tools into one CLI. Welcome effective-prettier.

Features

You are in one solution to combine linting with prettification:

  • ✅ Prettier
  • ✅ ESLint
  • ✅ Stylelint

With a hell lot of nice gimmicks:

  • In memory transformation + write on change only
  • Respects ignore files
  • File format auto-detection
  • Multi-threading with glob-based file lists

Usage

Files are only written and touched when changes were made to the content.

Ignore files by Prettier and ESLint/Stylelint are used in combination for all files.

Massively faster when using a glob pattern through its threading infrastructure.

JavaScript

effective-prettier util.js

CSS

effective-prettier styles.css

Markdown

effective-prettier text.md

Mixed

effective-prettier "**/*.{js,jsx,ts,tsx,json,md,yaml,yml}"

CLI Options

--verbose, -v       Increase log level
--auto-root, -a     Detecting project root folder automatically
--skip-ignore, -s   Skip checking any ignore files
--enable-typed, -t  Enable ESLint rules which require types (slower)
--concurrency       Setting the number of instances to be executed in parallel

License

Apache License Version 2.0, January 2004

Copyright

Logo of Sebastian Software GmbH, Mainz, Germany

Copyright 2020
Sebastian Software GmbH

Current Tags

  • 4.1.0                                ...           latest (3 days ago)

23 Versions

  • 4.1.0                                ...           3 days ago
  • 4.0.4                                ...           3 days ago
  • 4.0.3                                ...           22 days ago
  • 4.0.2                                ...           22 days ago
  • 4.0.1                                ...           23 days ago
  • 4.0.0                                ...           23 days ago
  • 3.3.0                                ...           24 days ago
  • 3.2.1                                ...           a month ago
  • 3.2.0                                ...           a month ago
  • 3.1.1                                ...           a month ago
  • 3.1.0                                ...           a month ago
  • 3.0.0                                ...           a month ago
  • 2.3.0                                ...           2 months ago
  • 2.2.2                                ...           2 months ago
  • 2.2.1                                ...           2 months ago
  • 2.2.0                                ...           2 months ago
  • 2.1.0                                ...           2 months ago
  • 2.0.5                                ...           2 months ago
  • 2.0.4                                ...           2 months ago
  • 2.0.3                                ...           2 months ago
  • 2.0.2                                ...           2 months ago
  • 2.0.1                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 45
This Month 2
Last Day 0
Last Week 0
Last Month 327
Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |