Skip to content
Prev Previous commit
Next Next commit
fix: use eslint-utils
  • Loading branch information
ItMaga committed Jan 10, 2023
commit 3d00c8d232c36d45e3dc7b0513a61cd05485918f
4 changes: 2 additions & 2 deletions lib/rules/padding-lines-in-component-definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

const utils = require('../utils')
const { isComment } = require('../utils/indent-utils')
const { isCommentToken } = require('eslint-utils')

const AvailablePaddingOptions = {
Never: 'never',
Expand Down Expand Up @@ -223,7 +223,7 @@ module.exports = {
const tokenBeforeNext = sourceCode.getTokenBefore(nextProperty, {
includeComments: true
})
const isCommentBefore = isComment(tokenBeforeNext)
const isCommentBefore = isCommentToken(tokenBeforeNext)
const reportNode = isCommentBefore ? tokenBeforeNext : nextProperty

const betweenLinesRange =
Expand Down