comma-style.js 498 B

1234567891011121314151617181920
  1. /**
  2. * @author Yosuke Ota
  3. */
  4. 'use strict'
  5. const { wrapCoreRule } = require('../utils')
  6. // eslint-disable-next-line internal/no-invalid-meta
  7. module.exports = wrapCoreRule('comma-style', {
  8. create(_context, { coreHandlers }) {
  9. return {
  10. VSlotScopeExpression(node) {
  11. if (coreHandlers.FunctionExpression) {
  12. // @ts-expect-error -- Process params of VSlotScopeExpression as FunctionExpression.
  13. coreHandlers.FunctionExpression(node)
  14. }
  15. }
  16. }
  17. }
  18. })