eslint-plugin-tailwind-variants 2.0.2 → 2.0.3

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.
@@ -163,9 +163,14 @@ export const rule = createRule({
163
163
  column: 1,
164
164
  line: prop.node.loc.start.line,
165
165
  });
166
+ let endLine = prop.node.loc.end.line + 1;
167
+ const nextProp = currentBlockProperties[index + 1];
168
+ if (nextProp) {
169
+ endLine = nextProp.node.loc.start.line;
170
+ }
166
171
  const currentLineEnd = sourceCode.getIndexFromLoc({
167
172
  column: 1,
168
- line: prop.node.loc.end.line + 1,
173
+ line: endLine,
169
174
  });
170
175
  let replacement = "";
171
176
  if (emptyLineBetweenGroups && index > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-tailwind-variants",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "ESLint plugin for Tailwind Variants",
5
5
  "repository": {
6
6
  "type": "git",