delei opened a new issue, #3728:
URL: https://github.com/apache/hertzbeat/issues/3728

   ### Is there an existing issue for this?
   
   - [x] I have searched the existing issues
   
   ### Current Behavior
   
   When I executed the following command
   
   ```bash
   yarn lint:style
   ```
   
   an error message appeared.
   ```bash
   yarn run v1.22.22
   $ stylelint "src/**/*.less" --syntax less --fix
   Error: The "syntax" option is no longer available. You should install an 
appropriate syntax, e.g. postcss-scss, and use the "customSyntax" option
       at getPostcssResult 
(/Users/deleiguo/WorkSpace/gitrepo/deleiguo/hertzbeat/web-app/node_modules/stylelint/lib/getPostcssResult.js:39:25)
       at lintSource 
(/Users/deleiguo/WorkSpace/gitrepo/deleiguo/hertzbeat/web-app/node_modules/stylelint/lib/lintSource.js:99:10)
       at async 
/Users/deleiguo/WorkSpace/gitrepo/deleiguo/hertzbeat/web-app/node_modules/stylelint/lib/standalone.js:210:27
       at async Promise.all (index 0)
       at async standalone 
(/Users/deleiguo/WorkSpace/gitrepo/deleiguo/hertzbeat/web-app/node_modules/stylelint/lib/standalone.js:253:22)
   error Command failed with exit code 1.
   info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this 
command.
   ```
   
   ### Expected Behavior
   
   Using stylelint correctly
   
   ### Steps To Reproduce
   
   1. In this enviroment
   - node: v20.18.3
   - yarn: 1.22.22
   
   2. Enter directory `web-app` 
   
   3. Execute the following command
   ```bash
   yarn lint:style
   ```
   
   ### Environment
   
   ```markdown
   HertzBeat version(s): 1.7.2
   ```
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to