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

eslint-plugin-beautiful-sort

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-beautiful-sort - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

src/rules/sort-imports/ImportNode.js

2

package.json
{
"name": "eslint-plugin-beautiful-sort",
"version": "1.0.5",
"version": "1.0.6",
"description": "eslint plugin for import sort",

@@ -5,0 +5,0 @@ "main": "src/index.js",

const eslint = require('eslint');
const ImportWrap = require('./ImportWrap');
const ImportNode = require('./ImportNode');
const TYPES = require('./types');

@@ -10,7 +10,7 @@

meta: {
type: "layout",
fixable: "code",
type: 'layout',
fixable: 'code',
schema: [
{
type: "object",
type: 'object',
properties: {

@@ -58,3 +58,3 @@ special: {

return {
"Program": programNode => {
Program: programNode => {
const imports = programNode.body.filter(node => node.type === 'ImportDeclaration');

@@ -71,3 +71,3 @@

imports.forEach((node, index) => {
const importWrap = new ImportWrap(node, { special });
const importWrap = new ImportNode(node, { special });
const stateLink = importsState[importWrap.type] ?? importsState.rest;

@@ -74,0 +74,0 @@

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