gaoyikeshuer / ReactNative-Notes

0 stars 0 forks source link

lint-staged issue #8

Open gaoyikeshuer opened 1 year ago

gaoyikeshuer commented 1 year ago

Potential solution:

  1. run"npm install --save-dev lint-staged" again
  2. close the terminal
  3. git add .
  4. yarn lint-staged
gaoyikeshuer commented 1 year ago

came across Skipping backup because there’s no initial commit yet

gaoyikeshuer commented 1 year ago

Kinda understand the error. because you don't understand what staged files are.

In this case:

"lint-staged": { "src/*/.{js,ts,tsx}": [ "yarn prettier:fix", "yarn lint" ]

only when js file, ts file and tsx file changed, the error "No staged files match any configured task" will disappear.