@taiga-ui/eslint-plugin-experience-next 0.555.0 → 0.557.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
|
@@ -58356,6 +58356,7 @@ const DEFAULT_EXCEPTIONS = [
|
|
|
58356
58356
|
{ from: 'TuiTextfieldOptionsDirective', to: 'TuiTextfield' },
|
|
58357
58357
|
{ from: 'TuiPreviewDialogDirective', to: 'TuiPreview' },
|
|
58358
58358
|
{ from: 'TuiAccountComponent', to: 'TuiAccountComponent' },
|
|
58359
|
+
{ from: 'TuiMonthComponent', to: 'TuiMonthComponent' },
|
|
58359
58360
|
{ from: 'TuiIslandDirective', to: 'TuiIsland' },
|
|
58360
58361
|
{ from: 'TuiTableBarsHostComponent', to: 'TuiTableBarsHost' },
|
|
58361
58362
|
];
|
|
@@ -58802,22 +58803,12 @@ const rule$7 = createRule({
|
|
|
58802
58803
|
});
|
|
58803
58804
|
continue;
|
|
58804
58805
|
}
|
|
58805
|
-
if (currentIsSingleLine &&
|
|
58806
|
-
nextIsSingleLine &&
|
|
58807
|
-
!sameExportGroup &&
|
|
58808
|
-
!blankLineBetween) {
|
|
58806
|
+
if (currentIsSingleLine && !sameExportGroup && !blankLineBetween) {
|
|
58809
58807
|
context.report({
|
|
58810
58808
|
fix: (fixer) => fixer.replaceTextRange([current.node.range[1], next.node.range[0]], getSpacingReplacement(sourceCode, betweenText, next.node.loc.start.line, 1)),
|
|
58811
58809
|
messageId: 'missingBlankLineBetweenVariableGroups',
|
|
58812
58810
|
node: next.node,
|
|
58813
58811
|
});
|
|
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
58812
|
continue;
|
|
58822
58813
|
}
|
|
58823
58814
|
if (!currentIsSingleLine && !blankLineBetween) {
|
|
@@ -58854,7 +58845,6 @@ const rule$7 = createRule({
|
|
|
58854
58845
|
fixable: 'code',
|
|
58855
58846
|
messages: {
|
|
58856
58847
|
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
58848
|
missingBlankLineBetweenVariableGroups: 'Exported and non-exported variable declarations should be separated by a blank line',
|
|
58859
58849
|
unexpectedBlankLineBeforeNextSingleLineVariable: 'Single-line variable declarations should not be separated by a blank line before the next single-line variable declaration',
|
|
58860
58850
|
},
|
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.557.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
|
};
|