koenrh / dnscontrol-action

Deploy your DNS configuration using GitHub Actions using DNSControl.
ISC License
79 stars 37 forks source link

ESLint config example #90

Closed galexrt closed 1 year ago

galexrt commented 1 year ago

I'm currently trying to use your example GitHub actions flows and the ESLint is failing (because of "no ESLint config file being found"). Do you have an example on how to get ESLint running in a new repo that is used for dnscontrol?

So far from researching it seems that I would need to use npm to create a package.json in the repo that "points" to the correct folder.

koenrh commented 1 year ago

Sorry, I missed this GitHub issue.

Have you tried creating a .eslintrc.yml file in the root of the project?

For example:

env: {}
rules:
  indent:
    - error
    - 4
  linebreak-style:
    - error
    - unix
  quotes:
    - error
    - double
  semi:
    - error
    - always
galexrt commented 1 year ago

Thanks, I'll try it out! For now, I'll close the issue here.