Skip to content

Commit

Permalink
chore: fix eslint violations on String instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Jun 1, 2019
1 parent 18d184e commit 152cbe0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions packages/eslint-config/eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ module.exports = {
*/
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/indent': 'off',
// '@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
Expand All @@ -71,7 +70,6 @@ module.exports = {
'@typescript-eslint/no-angle-bracket-type-assertion': 'off',
'@typescript-eslint/prefer-interface': 'off',
'@typescript-eslint/no-namespace': 'off',
// '@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-triple-slash-reference': 'off',
'@typescript-eslint/no-empty-interface': 'off',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ describe('Repository in Thinking in LoopBack', () => {
@model()
class Role extends Entity {
@property()
name: String;
name: string;
}

@model()
class Address extends Entity {
@property()
street: String;
street: string;
}

@model()
Expand All @@ -87,7 +87,7 @@ describe('Repository in Thinking in LoopBack', () => {
id: number;

@property({type: 'string'})
name: String;
name: string;

@property.array(Role)
roles: Role[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ describe('DefaultCrudRepository', () => {
@model()
class Role {
@property()
name: String;
name: string;
}

@model()
class Address {
@property()
street: String;
street: string;
}

@model()
Expand All @@ -144,7 +144,7 @@ describe('DefaultCrudRepository', () => {
id: number;

@property({type: 'string'})
name: String;
name: string;

@property.array(Role)
roles: Role[];
Expand Down

0 comments on commit 152cbe0

Please sign in to comment.