@html-eslint/parser
Advanced tools
Comparing version 0.8.0 to 0.9.0-alpha.0
@@ -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 | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
372443
0
31
26928
14
1
- Removedparse5@^6.0.1
- Removedparse5@6.0.1(transitive)