eslint-plugin-beautiful-sort
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"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 @@ |
9797
296