@taiga-ui/eslint-plugin-experience-next 0.555.0 → 0.556.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -214,7 +214,7 @@ declare const plugin: {
|
|
|
214
214
|
'single-line-let-spacing': import("eslint").Rule.RuleModule & {
|
|
215
215
|
name: string;
|
|
216
216
|
};
|
|
217
|
-
'single-line-variable-spacing': import("@typescript-eslint/utils/ts-eslint").RuleModule<"missingBlankLineAfterMultilineVariable" | "
|
|
217
|
+
'single-line-variable-spacing': import("@typescript-eslint/utils/ts-eslint").RuleModule<"missingBlankLineAfterMultilineVariable" | "missingBlankLineBetweenVariableGroups" | "unexpectedBlankLineBeforeNextSingleLineVariable", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
218
218
|
name: string;
|
|
219
219
|
};
|
|
220
220
|
'standalone-imports-sort': import("@typescript-eslint/utils/ts-eslint").RuleModule<"incorrectOrder", [{
|
package/index.esm.js
CHANGED
|
@@ -58802,22 +58802,12 @@ const rule$7 = createRule({
|
|
|
58802
58802
|
});
|
|
58803
58803
|
continue;
|
|
58804
58804
|
}
|
|
58805
|
-
if (currentIsSingleLine &&
|
|
58806
|
-
nextIsSingleLine &&
|
|
58807
|
-
!sameExportGroup &&
|
|
58808
|
-
!blankLineBetween) {
|
|
58805
|
+
if (currentIsSingleLine && !sameExportGroup && !blankLineBetween) {
|
|
58809
58806
|
context.report({
|
|
58810
58807
|
fix: (fixer) => fixer.replaceTextRange([current.node.range[1], next.node.range[0]], getSpacingReplacement(sourceCode, betweenText, next.node.loc.start.line, 1)),
|
|
58811
58808
|
messageId: 'missingBlankLineBetweenVariableGroups',
|
|
58812
58809
|
node: next.node,
|
|
58813
58810
|
});
|
|
58814
|
-
}
|
|
58815
|
-
if (currentIsSingleLine && !nextIsSingleLine && !blankLineBetween) {
|
|
58816
|
-
context.report({
|
|
58817
|
-
fix: (fixer) => fixer.replaceTextRange([current.node.range[1], next.node.range[0]], getSpacingReplacement(sourceCode, betweenText, next.node.loc.start.line, 1)),
|
|
58818
|
-
messageId: 'missingBlankLineBeforeMultilineVariable',
|
|
58819
|
-
node: next.node,
|
|
58820
|
-
});
|
|
58821
58811
|
continue;
|
|
58822
58812
|
}
|
|
58823
58813
|
if (!currentIsSingleLine && !blankLineBetween) {
|
|
@@ -58854,7 +58844,6 @@ const rule$7 = createRule({
|
|
|
58854
58844
|
fixable: 'code',
|
|
58855
58845
|
messages: {
|
|
58856
58846
|
missingBlankLineAfterMultilineVariable: 'Multiline variable declarations should be followed by a blank line before the next variable declaration',
|
|
58857
|
-
missingBlankLineBeforeMultilineVariable: 'Multiline variable declarations should be preceded by a blank line after single-line variable declarations',
|
|
58858
58847
|
missingBlankLineBetweenVariableGroups: 'Exported and non-exported variable declarations should be separated by a blank line',
|
|
58859
58848
|
unexpectedBlankLineBeforeNextSingleLineVariable: 'Single-line variable declarations should not be separated by a blank line before the next single-line variable declaration',
|
|
58860
58849
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/eslint-plugin-experience-next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.556.0",
|
|
4
4
|
"description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
|
|
5
5
|
"homepage": "https://github.com/taiga-family/toolkit#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type MessageIds = 'missingBlankLineAfterMultilineVariable' | '
|
|
1
|
+
type MessageIds = 'missingBlankLineAfterMultilineVariable' | 'missingBlankLineBetweenVariableGroups' | 'unexpectedBlankLineBeforeNextSingleLineVariable';
|
|
2
2
|
export declare const rule: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
3
3
|
name: string;
|
|
4
4
|
};
|