Skip to content

Doesn't seem to recognize/fix formatting issues in css files #33

@tylergaw

Description

@tylergaw

Example repo: https://github.com/tylergaw/precise-commits-n

Issue

style.css has incorrect formatting. precise-commits does not correct the formatting.

Steps

  1. Make a change to style.css
  2. Stage the change with git add style.css
  3. Run yarn precise-commits
# yarn precise-commits
yarn run v1.15.2
$ precise-commits
✔  precise-commits: 1 modified file(s) found
✔  [1/1] Processing file: style.css
ℹ        --> No formatting changes required in: style.css
✔  Formatting complete 🎉

Expectation

I would expect precise-commits to have found and fixed the formatting issues in style.css

Things I tried

I thought maybe it was a prettier config issue so I tried adding:

"prettier": {
  "files": "*.css"
}

to package.json

That didn't get it so I also tried creating a .prettierrc and adding:

{
  "files": "*.css"
}

Neither of those fixed the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions