Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
lauti7 committed Apr 5, 2024
1 parent 2c42954 commit e791851
Show file tree
Hide file tree
Showing 5 changed files with 868 additions and 12 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test/
dist/
*.js
*.d.ts
*.json
src/index.ts

src/proto
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "@dcl/eslint-config/sdk",
"parserOptions": {
"project": ["tsconfig.json"]
},
"rules": {
"prettier/prettier": [
"error",
{
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"tabWidth": 2
}
]
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"build": "tsc -p tsconfig.json",
"start": "node --trace-warnings --abort-on-uncaught-exception --unhandled-rejections=strict dist/index.js",
"test": "jest --forceExit --detectOpenHandles --coverage --verbose",
"migrate": "node-pg-migrate --database-url-var PG_COMPONENT_PSQL_CONNECTION_STRING --envPath .env -j ts --tsconfig tsconfig.json -m ./src/migrations"
"migrate": "node-pg-migrate --database-url-var PG_COMPONENT_PSQL_CONNECTION_STRING --envPath .env -j ts --tsconfig tsconfig.json -m ./src/migrations",
"lint:check": "eslint '**/*.{js,ts}'",
"lint:fix": "eslint '**/*.{js,ts}' --fix"
},
"devDependencies": {
"@dcl/eslint-config": "^2.0.0",
"@types/node": "^20.11.28",
"@well-known-components/test-helpers": "^1.5.6",
"ts-node": "^10.9.2",
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { AppComponents } from '../types'

export interface IDatabaseComponent {}

export function createDBComponent({ pg, logs }: Pick<AppComponents, 'pg' | 'logs'>): IDatabaseComponent {
export function createDBComponent(_components: Pick<AppComponents, 'pg' | 'logs'>): IDatabaseComponent {
return {}
}
Loading

0 comments on commit e791851

Please sign in to comment.