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

@html-eslint/parser

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@html-eslint/parser - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0-alpha.0

lib/common/doctype.js

9

lib/index.js

@@ -1,9 +0,12 @@

const createParser = require("./parser");
const Parser = require("./parser");
const { visitorKeys } = require("./visitor-keys");
const PostProcessor = require("./postprocessor/postprocessor");
exports.parseForESLint = function parseForESLint(code) {
const parser = createParser();
const parser = new Parser({ sourceCodeLocationInfo: true });
const postProcessor = new PostProcessor();
const ast = parser.parse(code);
const after = postProcessor.process(ast);
return {
ast,
ast: after,
scopeManager: null,

@@ -10,0 +13,0 @@ visitorKeys,

{
"name": "@html-eslint/parser",
"version": "0.8.0",
"version": "0.9.0-alpha.0",
"description": "Parser for @html-eslint/eslint-plugin",

@@ -32,6 +32,3 @@ "author": "yeonjuan",

},
"dependencies": {
"parse5": "^6.0.1"
},
"gitHead": "1b86f4c68af6b4a973e12bdfa205dfc28a239b20"
"gitHead": "442c5d402ce891b088b1548fe8a27fe9fadc91c3"
}

@@ -1,11 +0,13 @@

# `@html5-eslint/parser`
# `@html-eslint/parser`
> TODO: description
Parser for `@html-eslint/plugin`.
This project contains code forked from [parse5](https://github.com/inikulin/parse5). Some codes were transformed for generating suitable AST for `@html-eslint/plugin`.
## Usage
```
const parser = require('@html5-eslint/parser');
const parser = require('@html-eslint/parser');
// TODO: DEMONSTRATE API
```
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