@putout/eslint
Advanced tools
Comparing version 2.2.0 to 2.3.0
'use strict'; | ||
const prepare = (plugin, context, options) => (node) => { | ||
const { | ||
filter, | ||
report, | ||
} = plugin; | ||
const {filter, report} = plugin; | ||
@@ -26,14 +23,3 @@ const source = context.sourceCode; | ||
const result = filter({ | ||
text, | ||
node, | ||
options, | ||
getText, | ||
getCommentsBefore, | ||
getCommentsAfter, | ||
getCommentsInside, | ||
getSpacesBeforeNode, | ||
getSpacesAfterNode, | ||
filename, | ||
}, options); | ||
const result = filter({text, node, options, getText, getCommentsBefore, getCommentsAfter, getCommentsInside, getSpacesBeforeNode, getSpacesAfterNode, filename}, options); | ||
@@ -40,0 +26,0 @@ if (!result) |
@@ -21,6 +21,3 @@ 'use strict'; | ||
if (!keys(config.rules).length) | ||
return true; | ||
return false; | ||
return !keys(config.rules).length; | ||
}; | ||
@@ -27,0 +24,0 @@ |
@@ -45,8 +45,5 @@ 'use strict'; | ||
const { | ||
output, | ||
messages, | ||
} = linter.verifyAndFix(source, allOptions, mainOptions); | ||
const {output, messages} = linter.verifyAndFix(source, allOptions, mainOptions); | ||
return [output, messages.map(convertToPlace)]; | ||
}; |
{ | ||
"name": "@putout/eslint", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"type": "commonjs", | ||
@@ -41,6 +41,6 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
"@putout/plugin-eslint-plugin": "*", | ||
"c8": "^7.5.0", | ||
"eslint": "^8.0.1", | ||
"c8": "^8.0.0", | ||
"eslint": "^8.45.0", | ||
"eslint-plugin-n": "^16.0.0", | ||
"eslint-plugin-putout": "^17.0.0", | ||
"eslint-plugin-putout": "^19.0.0", | ||
"just-camel-case": "^4.0.2", | ||
@@ -51,3 +51,3 @@ "lerna": "^6.0.1", | ||
"montag": "^1.0.0", | ||
"nodemon": "^2.0.1", | ||
"nodemon": "^3.0.1", | ||
"putout": "*", | ||
@@ -54,0 +54,0 @@ "supertape": "^8.0.0", |
@@ -58,5 +58,3 @@ # @putout/eslint [![NPM version][NPMIMGURL]][NPMURL] | ||
config: { | ||
extends: [ | ||
'plugin:putout/recommended', | ||
], | ||
extends: ['plugin:putout/recommended'], | ||
}, | ||
@@ -75,5 +73,3 @@ }); | ||
config: { | ||
extends: [ | ||
'plugin:putout/recommended', | ||
], | ||
extends: ['plugin:putout/recommended'], | ||
}, | ||
@@ -80,0 +76,0 @@ }); |
Sorry, the diff of this file is not supported yet
17968
321
190