Skip to content

Commit

Permalink
Merge pull request #22 from felipemaion/lint-quality-actions
Browse files Browse the repository at this point in the history
Adds `lint:eslint:check` + `eslint` job in `Linting GitHub Action`
  • Loading branch information
felipemaion authored Oct 22, 2024
2 parents 656e781 + 54f0faa commit 52f0f31
Show file tree
Hide file tree
Showing 7 changed files with 3,672 additions and 259 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"next/core-web-vitals"
]
}
13 changes: 13 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@ -25,10 +25,12 @@ async function getNewClient() {
await client.connect();
return client;
}
export default {

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

function getSSL() {
if (process.env.POSTGRES_CA) {
Expand Down
1 change: 1 addition & 0 deletions infra/migrations/1710383390337_test-migration.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 52f0f31

Please sign in to comment.