eslint-plugin-validate-jsx-nesting
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "eslint-plugin-validate-jsx-nesting", | ||
"version": "0.0.6", | ||
"description": "ESLint Plugin for Validating JSX Nesting", | ||
"version": "0.0.7", | ||
"author": "Manan Tank", | ||
"main": "dist/index.js", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/MananTank/eslint-plugin-validate-jsx-nesting.git" | ||
}, | ||
"scripts": { | ||
@@ -27,7 +33,5 @@ "clean": "rimraf dist", | ||
], | ||
"author": "Manan Tank", | ||
"dependencies": { | ||
"validate-html-nesting": "^1.0.2" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
@@ -34,0 +38,0 @@ "@types/estree-jsx": "^0.0.2", |
@@ -9,3 +9,3 @@ # eslint-plugin-validate-jsx-nesting | ||
without such validation, When JSX is converted to HTML and rendered in the DOM, the browser will try to fix the invalid nestings ( such as `<hr>` inside `<p>` ) and thus the rendered DOM will have a different structure than the JSX structure. | ||
Without such validation, When JSX is converted to HTML and rendered in the DOM, the browser will try to fix the invalid nestings ( such as `<hr>` inside `<p>` ) and thus the rendered DOM will have a different structure than the JSX structure. | ||
@@ -15,3 +15,3 @@ This is a big issue for frameworks that rely on JSX rendering the exact same elements in DOM. This can lead to unexpected behaviors. | ||
Validation library | ||
This babel plugin uses [validate-html-nesting](https://github.com/MananTank/validate-html-nesting) library for validating html element nesting | ||
This babel plugin uses the [validate-html-nesting](https://github.com/MananTank/validate-html-nesting) library for validating HTML element nesting | ||
@@ -24,5 +24,5 @@ This ESLint plugin works with any framework that uses JSX. | ||
### Add in list plugins | ||
### Add in the list of plugins | ||
Add `"eslint-plugin-validate-jsx-nesting"` to the plugins section of your ESLint configuration file. You can omit the eslint-plugin- prefix if you want. | ||
Add `"eslint-plugin-validate-jsx-nesting"` to the plugins section of your ESLint configuration file. You can omit the `"eslint-plugin-"` prefix if you want. | ||
@@ -29,0 +29,0 @@ ```json |
Sorry, the diff of this file is not supported yet
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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
162329
0