Skip to content

Commit

Permalink
Merge pull request #18 from m4rcone/lint-quality-actions
Browse files Browse the repository at this point in the history
adds `eslint` job in `Linting` GitHub Action + `lint:eslint:check` script with `ESLint`
  • Loading branch information
m4rcone authored Dec 12, 2024
2 parents 64eeb2c + 6e15b24 commit ecef2ef
Show file tree
Hide file tree
Showing 7 changed files with 4,605 additions and 738 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"next/core-web-vitals",
"prettier"
]
}
15 changes: 14 additions & 1 deletion .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Linting
on: pull_request

jobs:
jest:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
Expand All @@ -16,3 +16,16 @@ jobs:
- run: npm ci

- run: npm run lint:prettier:check
eslint:
name: ESlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "lts/hydrogen"

- run: npm ci

- run: npm run lint:eslint:check
4 changes: 3 additions & 1 deletion infra/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ async function getNewClient() {
return client;
}

export default {
const database = {
query,
getNewClient,
};

export default database;
1 change: 1 addition & 0 deletions infra/migrations/1733232352672_teste.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
/* eslint-disable camelcase */

exports.shorthands = undefined;
Expand Down
Loading

0 comments on commit ecef2ef

Please sign in to comment.