❤️ JavaScript happiness style linter GitHub Action
To use the action simply add the following lines to your .github/main.workflow
.
action "xo" {
uses = "stoe/xo-action@master"
secrets = ["GITHUB_TOKEN"]
}
MIT © Stefan Stölzle
❤️ JavaScript happiness style linter GitHub Action
License: MIT License
❤️ JavaScript happiness style linter GitHub Action
To use the action simply add the following lines to your .github/main.workflow
.
action "xo" {
uses = "stoe/xo-action@master"
secrets = ["GITHUB_TOKEN"]
}
MIT © Stefan Stölzle
Is your feature request related to a problem? Please describe.
Make Action aware of different lint configs.
Describe the solution you'd like
Use configs from
.eslintrc
eslintConfig
in package.json
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.
Line 31 in 2ff5b82
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.