Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@swanide/swan-eslint-parser

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swanide/swan-eslint-parser

swan eslint parser

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

@swanide/swan-eslint-parser

Swan 模板解析器,将 Swan 模板解析成 AST 语法树,给代码检查工具和小程序编辑器插件使用。

修改自 vue 模板解析器:vue-eslint-parser

主要功能:

  1. 解析 swan 模板语法成 ast 语法树。
  2. 提供兼容 eslint 的 ast 语法树格式,作为 eslint 代码检查工具的 parser。

Swan 模板语法

test

更新测试用例

test cases 在 test/fixtures 目录,在增加新的 features 之后,需要更新 test case。然后运行如下命令更新:

npm run update-fixtures

运行测试

npm run test

publish

npm publish

FAQs

Package last updated on 23 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc