@stylistic/eslint-plugin-plus
Advanced tools
Comparing version 2.6.0-beta.0 to 2.6.0-beta.1
@@ -72,6 +72,7 @@ 'use strict'; | ||
const to = node.default.range[0]; | ||
if (sourceCode.text.slice(from, to) !== " = ") { | ||
const span = sourceCode.text.slice(from, to); | ||
if (!span.match(/(?:^|[^ ]) = (?:$|[^ ])/)) { | ||
context.report({ | ||
*fix(fixer) { | ||
yield fixer.replaceTextRange([from, to], " = "); | ||
yield fixer.replaceTextRange([from, to], span.replace(/\s*=\s*/, " = ")); | ||
}, | ||
@@ -78,0 +79,0 @@ loc: { |
@@ -13,3 +13,3 @@ import type { Linter, Rule } from 'eslint' | ||
configs: { | ||
'disable-legacy': Linter.FlatConfig | ||
'disable-legacy': Linter.Config | ||
} | ||
@@ -16,0 +16,0 @@ } |
{ | ||
"name": "@stylistic/eslint-plugin-plus", | ||
"version": "2.6.0-beta.0", | ||
"version": "2.6.0-beta.1", | ||
"author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
@@ -42,7 +42,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/eslint": "^8.56.10", | ||
"@typescript-eslint/utils": "^8.0.0-alpha.34" | ||
"@types/eslint": "^9.6.0", | ||
"@typescript-eslint/utils": "^8.0.0-alpha.54" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/rule-tester": "^8.0.0-alpha.34" | ||
"@typescript-eslint/rule-tester": "^8.0.0-alpha.54" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
15438
369
+ Added@types/eslint@9.6.1(transitive)
- Removed@types/eslint@8.56.12(transitive)
Updated@types/eslint@^9.6.0