Skip to content

Commit

Permalink
fix(config): update lint to naming-convention rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jul 29, 2020
1 parent 7d525fc commit 8db6b43
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
42 changes: 40 additions & 2 deletions config/eslint.json
Expand Up @@ -35,7 +35,6 @@
}
}
],
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/explicit-member-accessibility": [
Expand All @@ -61,7 +60,6 @@
"SwitchCase": 1
}
],
"@typescript-eslint/interface-name-prefix": "error",
"@typescript-eslint/member-delimiter-style": [
"error",
{
Expand Down Expand Up @@ -89,6 +87,45 @@
]
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": [
"camelCase"
],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "variable",
"format": [
"camelCase",
"UPPER_CASE"
],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "typeLike",
"format": [
"PascalCase"
],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "interface",
"format": [
"PascalCase"
],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid",
"prefix": [
"I"
]
}
],
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
Expand Down Expand Up @@ -154,6 +191,7 @@
"error",
"any",
"Number",
"String",
"Boolean",
"Undefined"
],
Expand Down
4 changes: 2 additions & 2 deletions docs/api/js-utils.timeout.md
Expand Up @@ -9,7 +9,7 @@ Reject after a set amount of time if the original promise has not yet resolved.
<b>Signature:</b>

```typescript
export declare function timeout<T>(ms: number, oper: Promise<T>): Promise<T>;
export declare function timeout<T>(ms: number, oper: Promise<T>): Promise<Optional<T>>;
```

## Parameters
Expand All @@ -21,5 +21,5 @@ export declare function timeout<T>(ms: number, oper: Promise<T>): Promise<T>;

<b>Returns:</b>

Promise&lt;T&gt;
Promise&lt;[Optional](./js-utils.optional.md)<!-- -->&lt;T&gt;&gt;

0 comments on commit 8db6b43

Please sign in to comment.