Code Monkey home page Code Monkey logo

eslint-plugin-dprint's Introduction

eslint-plugin-dprint

npm version Downloads/month Build Status codecov Dependency Status

The plugin that runs dprint to format code in ESLint.

๐Ÿ’ฟ Installation

Use npm or a compatible tool.

$ npm install -D eslint eslint-plugin-dprint

๐Ÿ“– Usage

Write your ESLint configuration. For example:

module.exports = {
  extends: ["eslint:recommended", "plugin:dprint/recommended"],
  rules: {
    "dprint/dprint": [
      "error",
      {
        config: {
          // The TypeScript configuration of dprint
          // See also https://dprint.dev/plugins/typescript/config/
        },
      },
    ],
  },
};

Then run ESLint with --fix!

Available Rules

Rule Description
dprint/dprint Format code with dprint.

Available Configs

Config Description
plugin:dprint/disable-conflict-rules Disable rules where are conflicted with the dprint/dprint rule.
plugin:dprint/recommended Enable the dprint/dprint rule along with the plugin:dprint/disable-conflict-rules preset.

๐Ÿ“ฐ Changelog

See GitHub Releases.

โค๏ธ Contributing

Welcome contributing!

Please use GitHub's Issues/PRs.

Development Tools

  • npm test ... Run tests. It generates code coverage into coverage directory.
  • npm run watch ... Run tests when files are edited.
  • npm version <patch|minor|major> ... Bump a new version.

eslint-plugin-dprint's People

Contributors

mysticatea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

eslint-plugin-dprint's Issues

how is the version of dprint and typescript plugin configured

Does this ship with a fixed version of dprint and it's typescript plugin? If so, can I make it use specific versions of these?

Btw. given that there has not been any commits to this repo since 2020, is there another recommended way to use dprint in a project which already uses eslint? Thanks!

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.