Skip to content

ninosaurus/eslint-check

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

ESLint checker ✅

Use this action to check if changed files in pull request are matched with provided eslint rules. 🚀

Code example

name: Node CI environment on: [pull_request] jobs: lint: runs-on: ubuntu-latest strategy: matrix: node-version: [10.x] steps: - uses: actions/checkout@v1 with: fetch-depth: 1 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - name: npm login run: npm config set //registry.npmjs.org/:_authToken=$NPM_READONLY_AUTH_TOKEN env: NPM_READONLY_AUTH_TOKEN: ${{ secrets.NPM_READONLY_AUTH_TOKEN }} - name: npm install working-directory: ./application run: npm i --ignore-scripts - name: Run ESLint uses: ninosaurus/eslint-check@v5 with: eslint-config-path: "./application/assets/js/.eslintrc.json" custom-directory: "./application" repo-token: ${{secrets.GITHUB_TOKEN}}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors