Git Product home page Git Product logo

effective-prettier's Introduction

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

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

effective-prettier's People

Contributors

swernerx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.