@so1ve/eslint-plugin 0.70.0 → 0.71.1

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
@@ -168,7 +168,8 @@ const padAfterLastImport = createEslintRule({
168
168
  "Program:exit"() {
169
169
  if (lastImportNode) {
170
170
  const nextToken = sourceCode.getTokenAfter(lastImportNode);
171
- if (nextToken && nextToken.value !== "<\/script>" && lastImportNode.loc.end.line + 1 === nextToken.loc.start.line) {
171
+ if (nextToken && // Workaround: Vue
172
+ nextToken.value !== "<\/script>" && lastImportNode.loc.end.line + 1 === nextToken.loc.start.line) {
172
173
  context.report({
173
174
  node: lastImportNode,
174
175
  messageId: "padAfterLastImport",
package/dist/index.mjs CHANGED
@@ -166,7 +166,8 @@ const padAfterLastImport = createEslintRule({
166
166
  "Program:exit"() {
167
167
  if (lastImportNode) {
168
168
  const nextToken = sourceCode.getTokenAfter(lastImportNode);
169
- if (nextToken && nextToken.value !== "<\/script>" && lastImportNode.loc.end.line + 1 === nextToken.loc.start.line) {
169
+ if (nextToken && // Workaround: Vue
170
+ nextToken.value !== "<\/script>" && lastImportNode.loc.end.line + 1 === nextToken.loc.start.line) {
170
171
  context.report({
171
172
  node: lastImportNode,
172
173
  messageId: "padAfterLastImport",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/eslint-plugin",
3
- "version": "0.70.0",
3
+ "version": "0.71.1",
4
4
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
5
5
  "contributors": [
6
6
  {