@so1ve/eslint-plugin 0.81.0 → 0.81.2

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/dist/index.cjs CHANGED
@@ -388,7 +388,7 @@ const padAfterLastImport = createEslintRule({
388
388
  if (lastImportNode) {
389
389
  const nextToken = sourceCode.getTokenAfter(lastImportNode);
390
390
  if (nextToken && // Workaround: Vue
391
- nextToken.value !== "<\/script>" && lastImportNode.loc.end.line + 1 === nextToken.loc.start.line) {
391
+ nextToken.value !== "<\/script>" && (lastImportNode.loc.end.line + 1 === nextToken.loc.start.line || sourceCode.commentsExistBetween(lastImportNode, nextToken))) {
392
392
  context.report({
393
393
  node: lastImportNode,
394
394
  messageId: "padAfterLastImport",
package/dist/index.mjs CHANGED
@@ -386,7 +386,7 @@ const padAfterLastImport = createEslintRule({
386
386
  if (lastImportNode) {
387
387
  const nextToken = sourceCode.getTokenAfter(lastImportNode);
388
388
  if (nextToken && // Workaround: Vue
389
- nextToken.value !== "<\/script>" && lastImportNode.loc.end.line + 1 === nextToken.loc.start.line) {
389
+ nextToken.value !== "<\/script>" && (lastImportNode.loc.end.line + 1 === nextToken.loc.start.line || sourceCode.commentsExistBetween(lastImportNode, nextToken))) {
390
390
  context.report({
391
391
  node: lastImportNode,
392
392
  messageId: "padAfterLastImport",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/eslint-plugin",
3
- "version": "0.81.0",
3
+ "version": "0.81.2",
4
4
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
5
5
  "contributors": [
6
6
  {
@@ -31,12 +31,12 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@typescript-eslint/utils": "^5.59.2",
34
+ "@typescript-eslint/utils": "^5.59.5",
35
35
  "@vue/reactivity": "^3.2.47"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "^18.16.5",
39
- "@typescript-eslint/types": "^5.59.2"
38
+ "@types/node": "^18.16.6",
39
+ "@typescript-eslint/types": "^5.59.5"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "unbuild",