Giter Club home page Giter Club logo

xo-action's Introduction

xo-action

❤️ JavaScript happiness style linter GitHub Action

Usage

To use the action simply add the following lines to your .github/main.workflow.

action "xo" {
  uses = "stoe/xo-action@master"
  secrets = ["GITHUB_TOKEN"]
}

License license

MIT © Stefan Stölzle

xo-action's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar stoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xo-action's Issues

Bug report: Unexpected token in JSON.parse

Describe the bug

✖  fatal     SyntaxError: Unexpected token u in JSON at position 0 
     at JSON.parse (<anonymous>)
    at Toolkit.run (/entrypoint.js:31:25)
    at Function.<anonymous> (/node_modules/actions-toolkit/lib/index.js:107:31)
    at step (/node_modules/actions-toolkit/lib/index.js:43:23)
    at Object.next (/node_modules/actions-toolkit/lib/index.js:24:53)
    at /node_modules/actions-toolkit/lib/index.js:18:71
    at new Promise (<anonymous>)
    at __awaiter (/node_modules/actions-toolkit/lib/index.js:14:12)
    at Function.Toolkit.run (/node_modules/actions-toolkit/lib/index.js:98:16)
    at Object.<anonymous> (/entrypoint.js:5:9)
##[error]Docker run failed with exit code 1

To Reproduce
Have xo throw an error that's not accepted by JSON.parse.

Expected behavior
The correct error to be logged.

Additional context
Looks like this line is the culprit.

[...results] = JSON.parse(error.stdout);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.