Skip to content

Augment templates configs with more opinionated stricter rules for actor development #89

@pocesar

Description

@pocesar

this: https://maximorlov.com/linting-rules-for-asynchronous-code-in-javascript

and also:

  • Add rule for Apify.getValue('INPUT') -> Apify.getInput()
  • async event listeners on page.on() or any other event listener that is synchronous. if it's there, ask to add try/catch block
  • for type: "module", require adding the extension for .js files (not .mjs)
  • add jsconfig.json by default, a lot of VSCode devs have no idea this exists (and they code contains 0 warnings/errors/hints) and helps a lot with "closer to tsconfig" intellisense and even a companion to eslint

this means it shouldn't be added to top level @apify/eslint-config because there will be many rules that only make sense while dealing with the SDK on a daily basis

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions