Skip to content

Commit

Permalink
add lint to GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Aug 19, 2023
1 parent 8886476 commit c7334aa
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
env:
es2021: true
node: true
extends: eslint:recommended
parserOptions:
ecmaVersion: latest
sourceType: module
rules:
indent:
- error
- 2
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
14 changes: 14 additions & 0 deletions .github/workflows/github-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: lint

on:
push:
branches:
- master

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm install
- run: ./node_modules/.bin/eslint . --ext .mjs
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,5 @@ dist
.pnp.*

# poteto
.eslint*
/package-lock.json
/testdir/sequence/deleteme-*
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![npm](https://img.shields.io/npm/v/poteto.svg)](https://npmjs.com/package/poteto)
![npm bundle size](https://img.shields.io/bundlephobia/min/poteto)
[![CI](https://github.com/LiviaMedeiros/poteto/actions/workflows/github-ci.yml/badge.svg)](https://github.com/LiviaMedeiros/poteto/actions/workflows/github-ci.yml)
[![lint](https://github.com/LiviaMedeiros/poteto/actions/workflows/github-lint.yml/badge.svg)](https://github.com/LiviaMedeiros/poteto/actions/workflows/github-lint.yml)

# poteto

Expand Down

0 comments on commit c7334aa

Please sign in to comment.