I am an engineering manager working on Power Virtual Agents at Microsoft.
a-b-r-o-w-n / eslint-action Goto Github PK
View Code? Open in Web Editor NEWGithub action that lints changed files.
License: MIT License
Github action that lints changed files.
License: MIT License
Currently, on pull_request
event is supported.
Hi,
I'm trying to use this action but I'm getting an error loading a module. My React Typescript application is not located in the root. So I use the following argument to point in the right path:
files: src/Unosquare.AssetCore.Server/client-app/src/**/*
It seems like eslint is finding my config file but not the related modules declared:
##[error]Failed to load plugin 'react' declared in 'src/Unosquare.AssetCore.Server/client-app/.eslintrc.js': Cannot find module 'eslint-plugin-react'
The node_modules folder is restored before to use this GH Action.
Thanks!
Warnings are currently ignored. Instead, it should be configured using the eslint option quiet
to report warnings as annotations.
Things to consider:
When I delete one file from the repo in PR I get this error. The file I deleted was src/image.png
##[error]No files matching 'src/image.png' were found.
8
##[error]Node run failed with exit code 1
my options
repo-token: ***
files: src/**/*
extensions: .js,.jsx,.ts,.tsx
ignore: **/node_modules/**
Getting this error in my workflows:
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: a-b-r-o-w-n/[email protected]. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Can we just code update this to 16?
Lines 26 to 28 in 542dd7a
Happy to do that via a PR.
Thanks for your hard work! This was the only GitHub action that works for me in a mono-repo where working-directory
is not the repository root. :)
When all lint issues are solved, the annotations for the failed lines persist, even when I re-run tests.
I'm not sure if this is an issue with my workflow file or intended behavior:
- name: Save Code Linting Report JSON
run: npm run lint:report
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "backend/eslint_report.json"
- name: Upload ESLint report
uses: actions/upload-artifact@v2
with:
name: eslint_report.json
path: backend/eslint_report.json
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.