@stylistic/eslint-plugin-plus
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -51,3 +51,3 @@ 'use strict'; | ||
const span = sourceCode.text.slice(from, to); | ||
if (span !== ", " && !span.match(/,\s*\r?\n/)) { | ||
if (span !== ", " && !span.match(/,\s*\n/)) { | ||
context.report({ | ||
@@ -54,0 +54,0 @@ *fix(fixer) { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const tupleRe = /^([\w_$]+)(\s*)(\?\s*)?:(\s*)(.*)$/; | ||
const tupleRe = /^([\w$]+)(\s*)(\?\s*)?:(\s*)(.*)$/; | ||
var typeNamedTupleSpacing = utils.createRule({ | ||
@@ -9,0 +9,0 @@ name: "type-named-tuple-spacing", |
{ | ||
"name": "@stylistic/eslint-plugin-plus", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
@@ -43,6 +43,6 @@ "license": "MIT", | ||
"@types/eslint": "^8.56.10", | ||
"@typescript-eslint/utils": "^7.8.0" | ||
"@typescript-eslint/utils": "^7.12.0" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/rule-tester": "^7.8.0" | ||
"@typescript-eslint/rule-tester": "^7.12.0" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
15172