prettier / prettier-eslint-cli

CLI for prettier-eslint
https://npm.im/prettier-eslint-cli
MIT License
539 stars 85 forks source link

Can an error be reported when the error cannot be resolved? #411

Closed qieqie7 closed 2 years ago

qieqie7 commented 3 years ago

Relevant code/config.

const a = 'longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong';

What you did: package.json

{
  "husky": {
        "hooks": {
            "pre-commit": "lint-staged"
        }
    },
    "lint-staged": {
        "src/**/*.{js,jsx,ts,tsx}": [
            "prettier-eslint --write"
        ]
    }
|

What happened: start, image

then I will git commit this change

image

Reproduction:

-- paste your link here --

Problem description:

But the error is not resolved

Suggested solution:

I hope this change can't commit. And throw this error.

JounQin commented 2 years ago

https://antfu.me/posts/why-reproductions-are-required

Feel free to create a new issue with minimal but runnable reproduction.