Skip to content

Commit

Permalink
Adiciona ESLint ao pipeline de CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gehuilherme authored Jul 19, 2024
1 parent 2a4fc87 commit 2aa3b8e
Show file tree
Hide file tree
Showing 6 changed files with 3,641 additions and 282 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["prettier", "next/core-web-vitals"]
}
11 changes: 11 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ jobs:
node-version: "lts/hydrogen"
- 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
4 changes: 2 additions & 2 deletions infra/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ async function getNewClient() {
return client;
}

export default {
export default Object.freeze({
query,
getNewClient,
};
});

function getSSLValues() {
// No .env, caso necessário utilizar um certificado auto-assinado, remover os caracteres de newline e substituir para \n (Ex. Banco de dados hospedado pela Digital Ocean).
Expand Down
Loading

0 comments on commit 2aa3b8e

Please sign in to comment.