@so1ve/eslint-plugin 0.46.0 → 0.46.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
@@ -753,7 +753,7 @@ const semiSpacing = createEslintRule({
753
753
  TSTypeAliasDeclaration(node) {
754
754
  const leftToken = node.typeAnnotation;
755
755
  const rightToken = sourceCode.getTokenAfter(node.typeAnnotation);
756
- if (rightToken.type !== utils.AST_TOKEN_TYPES.Punctuator || rightToken.value !== ";") {
756
+ if (!rightToken || rightToken.type !== utils.AST_TOKEN_TYPES.Punctuator || rightToken.value !== ";") {
757
757
  return;
758
758
  }
759
759
  const hasSpacing = sourceCode.isSpaceBetween(leftToken, rightToken);
package/dist/index.mjs CHANGED
@@ -738,7 +738,7 @@ const semiSpacing = createEslintRule({
738
738
  TSTypeAliasDeclaration(node) {
739
739
  const leftToken = node.typeAnnotation;
740
740
  const rightToken = sourceCode.getTokenAfter(node.typeAnnotation);
741
- if (rightToken.type !== AST_TOKEN_TYPES.Punctuator || rightToken.value !== ";") {
741
+ if (!rightToken || rightToken.type !== AST_TOKEN_TYPES.Punctuator || rightToken.value !== ";") {
742
742
  return;
743
743
  }
744
744
  const hasSpacing = sourceCode.isSpaceBetween(leftToken, rightToken);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/eslint-plugin",
3
- "version": "0.46.0",
3
+ "version": "0.46.1",
4
4
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
5
5
  "contributors": [
6
6
  {