Skip to content

Commit

Permalink
fix lint & tests
Browse files Browse the repository at this point in the history
  • Loading branch information
killroy192 committed Jul 29, 2024
1 parent c6767e0 commit be55e1a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 34 deletions.
25 changes: 25 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"tsconfigRootDir": ".",
"sourceType": "module"
},
"plugins": ["@typescript-eslint/eslint-plugin"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"root": true,
"env": {
"node": true,
"jest": true
},
"ignorePatterns": [".eslintrc.js"],
"rules": {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
25 changes: 0 additions & 25 deletions .eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

make pre-commit
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

make pre-push
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ all: init clean typecheck test

init:; npm i

typecheck :; npx tsc --project tsconfig.json
typecheck :; npx tsc --noEmit --project tsconfig.json

clean :; rm -rf dist

lint :; npx eslint \"{src,apps,libs,test}/**/*.ts\" --fix
lint :; npx eslint \{src,apps,libs,test\}/**/*.ts --fix

test :; npx jest --passWithNoTests

Expand Down
2 changes: 1 addition & 1 deletion test/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import * as request from 'supertest';
import { default as request } from 'supertest';
import { AppModule } from './../src/app.module';

describe('AppController (e2e)', () => {
Expand Down

0 comments on commit be55e1a

Please sign in to comment.