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.
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
.
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
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.
effective-prettier util.js
effective-prettier styles.css
effective-prettier text.md
effective-prettier "**/*.{js,jsx,ts,tsx,json,md,yaml,yml}"
--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
Apache License Version 2.0, January 2004
Copyright 2020
Sebastian Software GmbH