GithubHelp home page GithubHelp logo

Comments (4)

Janther avatar Janther commented on June 18, 2024 1

Hi @dimalinux
--plugin=prettier-plugin-solidity should be enough, can you try?

from prettier-plugin-solidity.

Janther avatar Janther commented on June 18, 2024

prettier 3.0.0 no longer loads external plugins automatically, have a look at the release notes.

This means you have to declare it either in the command line, configuration file, or using the plugins option in the API. Here is the documentation. Here is an example.

No new release required.

The PR that you mentioned contains (among other things like testing and CI) the changes for the README to reflect these changes.

from prettier-plugin-solidity.

dimalinux avatar dimalinux commented on June 18, 2024

Thanks! For anyone else having the same issue. If you installed prettier and prettier-plugin-solidity via npm, you can add this flag to fix the issue:

--plugin="$(npm config get prefix)/lib/node_modules/prettier-plugin-solidity/src/index.js"

from prettier-plugin-solidity.

dimalinux avatar dimalinux commented on June 18, 2024

That was the first way I tried. It couldn't find the plugin. In case it is part of the puzzle, my NPM install directory is configured like this (bash on Linux): https://github.com/sindresorhus/guides/blob/main/npm-global-without-sudo.md

prettier is in ${HOME}/.npm-packages/bin/prettier and the plugin is in ${HOME}/.npm-packages/lib/node_modules/prettier-plugin-solidity/

from prettier-plugin-solidity.

Related Issues (20)

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.