Skip to content

Commit 0140a85

Browse files
fix(lint-staged): remove tslint script in test glob
somehow the tslint is not working when using with staged files matching the test glob
1 parent fac4f11 commit 0140a85

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.lintstagedrc.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ linters:
33
- prettier --write --config ./.prettierrc.yml
44
- tslint --project ./tsconfig.json -t codeFrame --fix
55
- git add
6-
"(src/**/*.spec.ts,test/**/*.ts)":
6+
"(src/**/*.spec.ts|test/**/*.ts)":
77
- prettier --write --config ./.prettierrc.yml
8-
- tslint --project ./tsconfig.jest.json -t codeFrame --fix
8+
# FIXME tslint will not work because of the following error
9+
# ✖ tslint --project ./tsconfig.jest.json -t codeFrame --fix found some errors. Please fix them and try committing again.
10+
#'/Users/michaelwittwer/dev/shiftcode/dynamo-easy/test/models/complex.model.ts' is not included in project.
11+
# - tslint --project ./tsconfig.jest.json -t codeFrame --fix
12+
- git add
913
"**/package.json":
1014
- sort-package-json
1115
- git add

src/mapper/for-type/object.mapper.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { ObjectMapper } from './object.mapper'
22

3-
// TODO remove test comment
43
describe('object mapper', () => {
54
describe('to db', () => {
65
it('should work', () => {

test/models/complex.model.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import {
1010
} from '../../src/dynamo-easy'
1111
import { NestedObject } from './nested-object.model'
1212

13-
// TODO remove test comment
14-
1513
@Model({ tableName: 'complex_model' })
1614
export class ComplexModel {
1715
@PartitionKey()

0 commit comments

Comments
 (0)