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

eslint-plugin-validate-jsx-nesting

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-validate-jsx-nesting - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

10

package.json
{
"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

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