ls-lint icon indicating copy to clipboard operation
ls-lint copied to clipboard

How can I config the error message

Open NealST opened this issue 4 years ago • 7 comments
trafficstars

the default error message "failed for rules: kebab-case" is not easy understandable, so I want to config my error message for it.

NealST avatar Sep 03 '21 12:09 NealST

Hey @NealST, what error message would you like to see?

loeffel-io avatar Nov 02 '21 13:11 loeffel-io

Came here to write this :point_up: .

Something like

2021/11/08 14:58:13 ./pages/test-test.md.erb should be written in snakecase 
OR
2021/11/08 14:58:13 ./pages/test-test.md.erb should have a filename written in snakecase 

might be better.

But how do you feel about adding

ls:
  .md.erb: snake_case
     error: "Custom error message with %placeholders"

plaindocs avatar Nov 08 '21 15:11 plaindocs

@plaindocs,your said is what I want, and on the other hand, most of my users are chinese, so I want to config the error message to chinese. Something like this:

./pages/test-test.md.erb 需要使用驼峰格式编写

NealST avatar Nov 10 '21 06:11 NealST