@putout/eslint
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -6,9 +6,9 @@ 'use strict'; | ||
const source = context.sourceCode; | ||
const {filename} = context; | ||
const getText = source.getText.bind(source); | ||
const getCommentsBefore = source.getCommentsBefore.bind(source); | ||
const getCommentsAfter = source.getCommentsAfter.bind(source); | ||
const getCommentsInside = source.getCommentsInside.bind(source); | ||
const {sourceCode, filename} = context; | ||
const getText = sourceCode.getText.bind(sourceCode); | ||
const getCommentsBefore = sourceCode.getCommentsBefore.bind(sourceCode); | ||
const getCommentsAfter = sourceCode.getCommentsAfter.bind(sourceCode); | ||
const getCommentsInside = sourceCode.getCommentsInside.bind(sourceCode); | ||
const getSpacesBeforeNode = createGetSpacesBeforeNode({ | ||
@@ -24,4 +24,17 @@ getText, | ||
const result = filter({text, node, options, getText, getCommentsBefore, getCommentsAfter, getCommentsInside, getSpacesBeforeNode, getSpacesAfterNode, filename}, options); | ||
const path = { | ||
text, | ||
node, | ||
options, | ||
getText, | ||
getCommentsBefore, | ||
getCommentsAfter, | ||
getCommentsInside, | ||
getSpacesBeforeNode, | ||
getSpacesAfterNode, | ||
filename, | ||
}; | ||
const result = filter(path, options); | ||
if (!result) | ||
@@ -28,0 +41,0 @@ return; |
'use strict'; | ||
const process = require('process'); | ||
const {simpleImport} = require('./simple-import.js'); | ||
@@ -4,0 +5,0 @@ const tryToCatch = require('try-to-catch'); |
{ | ||
"name": "@putout/eslint", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"type": "commonjs", | ||
@@ -44,3 +44,3 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
"eslint-plugin-n": "^16.0.0", | ||
"eslint-plugin-putout": "^19.0.0", | ||
"eslint-plugin-putout": "^20.0.0", | ||
"just-camel-case": "^4.0.2", | ||
@@ -47,0 +47,0 @@ "lerna": "^6.0.1", |
18129
333