Skip to content

Commit

Permalink
chore: fixes gts 2.0 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
moltar authored and Roman committed Apr 14, 2020
1 parent 86fa9e6 commit 5b325e7
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules
lib/
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./node_modules/gts/",
"env": {
"jest": true
}
}
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
...require('gts/.prettierrc.json'),
bracketSpacing: true,
}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
2 changes: 1 addition & 1 deletion cases/abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import clone from 'clone';
import { Data } from '../data';

export abstract class Case implements Case {
// tslint:disable-next-line no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
protected readonly data: any;

/**
Expand Down
1 change: 0 additions & 1 deletion cases/class-validator.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'reflect-metadata';
import {
IsNegative,
MinLength,
ValidateNested,
IsBoolean,
IsNumber,
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
}
};
1 change: 1 addition & 0 deletions test/abstract.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import clone from 'clone';
// eslint-disable-next-line node/no-unpublished-import
import { assert, IsExact } from 'conditional-type-checks';
import { cases } from '../cases/index';
import { DATA, Data } from '../data';
Expand Down

0 comments on commit 5b325e7

Please sign in to comment.