Code Monkey home page Code Monkey logo

Comments (3)

skyeewers avatar skyeewers commented on June 6, 2024

Seeing the same issue with a fresh install of prettier and prettier-php here!
If I point npx prettier --check ./sites/templates (templates being a directory that only contains PHP files) I'm getting a warning that the directory contains no files the could be checked with prettier.

This appears to be a new behavior since the prettier 3 upgrade. If I drop my version requirements in my package.json to the following the plugin behaves as intended.

{ "prettier": "^2.8.4", "@prettier/plugin-php": "^0.19.7", }

Halp? 🥺

from plugin-php.

czosel avatar czosel commented on June 6, 2024

The reason for this is most likely that you're either missing the PHP plugin, or you're not specifying that it should be used explicitly (the "plugin search" feature has been removed in Prettier v3, see #2215 for details).

from plugin-php.

fisker avatar fisker commented on June 6, 2024

Should have been fixed in Prettier core. https://prettier.io/blog/2023/11/13/3.1.0#process-files-only-supported-by-plugins-15433httpsgithubcomprettierprettierpull15433-by-sosukesuzukihttpsgithubcomsosukesuzuki

from plugin-php.

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.