Skip to content

Commit

Permalink
DR-767 Increase ESLint rule level (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmohns authored May 13, 2024
1 parent b20f34b commit 6aa96c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ jobs:
run: |
rush install
- name: Run ESLint
- name: Run ESLint (error)
working-directory: apps/drec-api
run: pnpm run lint:error
continue-on-error: true

- name: Run ESLint (all)
working-directory: apps/drec-api
run: pnpm run lint
continue-on-error: true
Expand Down
5 changes: 2 additions & 3 deletions apps/drec-api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ module.exports = {
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
// Temporarily disable `eslint:recommended` until other lint issues have been fixed
// 'eslint:recommended',
// 'plugin:@typescript-eslint/eslint-recommended',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
Expand Down
5 changes: 3 additions & 2 deletions apps/drec-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"redis:drop": "redis-cli flushall",
"prettier": "prettier --check --config-precedence file-override './{src,migrations,test}/**/*'",
"prettier:fix": "prettier --write --config-precedence file-override './{src,migrations,test}/**/*'",
"lint": "eslint \"{src,migrations,test}/**/*{.ts,.tsx}\" --no-error-on-unmatched-pattern",
"lint:fix": "eslint \"{src,migrations,test}/**/*{.ts,.tsx}\" --fix --no-error-on-unmatched-pattern",
"lint": "eslint \"{src,migrations,test}/**/*{.ts,.tsx}\"",
"lint:error": "eslint \"{src,migrations,test}/**/*{.ts,.tsx}\" --quiet",
"lint:fix": "eslint \"{src,migrations,test}/**/*{.ts,.tsx}\" --fix",
"migrate": "pnpm typeorm:run:issuer && pnpm typeorm:run && pnpm typeorm:run:certificate",
"migrate:docker": "pnpm typeorm:run:issuer && node_modules/typeorm/cli.js --config dist/js/ormconfig.js migration:run",
"typeorm": "ts-node -r tsconfig-paths/register node_modules/typeorm/cli.js --config ormconfig-dev.ts",
Expand Down

0 comments on commit 6aa96c1

Please sign in to comment.