-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update eslint and prettier (#135)
* chore: update eslint and prettier * fix: run eslint without cli options
- Loading branch information
Showing
55 changed files
with
53,138 additions
and
53,529 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.DS_Store | ||
.github/ | ||
.husky/ | ||
dist/ | ||
node_modules/ | ||
.env | ||
.env.* | ||
!.env.example | ||
data/ | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = {extends: ['@commitlint/config-conventional']}; | ||
module.exports = { extends: ['@commitlint/config-conventional'] }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97,034 changes: 48,517 additions & 48,517 deletions
97,034
dvalin-tools/__scraper_cache__/redirect_links.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
version: '3.8' | ||
|
||
services: | ||
event_agent: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
target: runtime-localdev | ||
environment: | ||
- DVALIN_REPO_ROOT_DIR=/usr/src/repo/dvalin-data | ||
volumes: | ||
- ..:/usr/src/repo/dvalin-data | ||
- ./__scraper_cache__:/usr/src/app/__scraper_cache__ | ||
event_agent: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
target: runtime-localdev | ||
environment: | ||
- DVALIN_REPO_ROOT_DIR=/usr/src/repo/dvalin-data | ||
volumes: | ||
- ..:/usr/src/repo/dvalin-data | ||
- ./__scraper_cache__:/usr/src/app/__scraper_cache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
version: '3.8' | ||
|
||
services: | ||
event_agent: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
target: runtime-prod | ||
image: ghcr.io/dval-in/dvalin-tools-event-agent:latest | ||
restart: unless-stopped | ||
command: celery -A dvalin_tools.agents.event_agent worker --loglevel=info -B | ||
environment: | ||
- DVALIN_CELERY_BROKER_URL=${DVALIN_CELERY_BROKER_URL} | ||
- DVALIN_CELERY_RESULT_BACKEND=${DVALIN_CELERY_RESULT_BACKEND} | ||
- DVALIN_S3_ENDPOINT=${DVALIN_S3_ENDPOINT} | ||
- DVALIN_S3_ACCESS_KEY=${DVALIN_S3_ACCESS_KEY} | ||
- DVALIN_S3_SECRET_KEY=${DVALIN_S3_SECRET_KEY} | ||
- DVALIN_GIT_USER_EMAIL=${DVALIN_GIT_USER_EMAIL} | ||
- DVALIN_GIT_USER_NAME=${DVALIN_GIT_USER_NAME} | ||
- DVALIN_GIT_GITHUB_USERNAME=${DVALIN_GIT_GITHUB_USERNAME} | ||
- DVALIN_GIT_PRIVATE_ACCESS_TOKEN=${DVALIN_GIT_PRIVATE_ACCESS_TOKEN} | ||
- DVALIN_REPO_ROOT_DIR=/usr/src/repo/dvalin-data | ||
depends_on: | ||
- redis | ||
event_agent: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
target: runtime-prod | ||
image: ghcr.io/dval-in/dvalin-tools-event-agent:latest | ||
restart: unless-stopped | ||
command: celery -A dvalin_tools.agents.event_agent worker --loglevel=info -B | ||
environment: | ||
- DVALIN_CELERY_BROKER_URL=${DVALIN_CELERY_BROKER_URL} | ||
- DVALIN_CELERY_RESULT_BACKEND=${DVALIN_CELERY_RESULT_BACKEND} | ||
- DVALIN_S3_ENDPOINT=${DVALIN_S3_ENDPOINT} | ||
- DVALIN_S3_ACCESS_KEY=${DVALIN_S3_ACCESS_KEY} | ||
- DVALIN_S3_SECRET_KEY=${DVALIN_S3_SECRET_KEY} | ||
- DVALIN_GIT_USER_EMAIL=${DVALIN_GIT_USER_EMAIL} | ||
- DVALIN_GIT_USER_NAME=${DVALIN_GIT_USER_NAME} | ||
- DVALIN_GIT_GITHUB_USERNAME=${DVALIN_GIT_GITHUB_USERNAME} | ||
- DVALIN_GIT_PRIVATE_ACCESS_TOKEN=${DVALIN_GIT_PRIVATE_ACCESS_TOKEN} | ||
- DVALIN_REPO_ROOT_DIR=/usr/src/repo/dvalin-data | ||
depends_on: | ||
- redis | ||
|
||
redis: | ||
image: "redis:alpine" | ||
ports: | ||
- "6379:6379" | ||
restart: unless-stopped | ||
redis: | ||
image: 'redis:alpine' | ||
ports: | ||
- '6379:6379' | ||
restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// @ts-check | ||
|
||
import tseslint from 'typescript-eslint'; | ||
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended'; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: [ | ||
'.github/*', | ||
'.node_modules/*', | ||
'dist/*', | ||
'data/*', | ||
'.DS_Store', | ||
'.env*', | ||
'pnpm-lock.yaml' | ||
] | ||
}, | ||
{ | ||
plugins: { | ||
'@typescript-eslint': tseslint.plugin | ||
}, | ||
languageOptions: { | ||
parser: tseslint.parser, | ||
parserOptions: { | ||
project: true, | ||
sourceType: 'module', | ||
ecmaVersion: 2020 | ||
} | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_' | ||
} | ||
], | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ selector: 'typeAlias', format: ['PascalCase'] }, | ||
{ | ||
selector: 'enumMember', | ||
format: ['PascalCase'] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
// disable type-aware linting on JS files | ||
files: ['**/*.js'], | ||
...tseslint.configs.disableTypeChecked | ||
}, | ||
eslintPluginPrettier | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.