Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bot] Run grit migration: Apply a GritQL pattern #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grit-app[bot]
Copy link

@grit-app grit-app bot commented Oct 23, 2023

✅ This migration is up to date! ✅

⚠️ This pull request was auto-generated with Grit. ⚠️

This pull request was created with these settings:

  • Target branch: main
  • Source files: **/*
  • Preset pattern: es6_arrow_functions – Converts function expressions to ES6 arrow functions
Pattern body
engine marzano(0.1)
language js

/*
The following pattern transforms JS traditional functions to arrow functions.

To see how it works, follow the tutorial.
*/
or {
  `function ($args) { $body }` => `($args) => {
  $body
}` where {
    $body <: not contains {
      or { `this`, `arguments` }
    } until `function $_($_) { $_ }`
  },
  `($args) => { return $value }` => `($args) => $value`
}

Please feel free to provide feedback on this pull request. Any comments will be incorporated into future migrations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants