Skip to content

Commit

Permalink
Delimiter style for interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovepixelart committed Dec 5, 2023
1 parent 06cacc7 commit 68003aa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"sourceType": "module"
},
"rules": {
"comma-dangle": ["error", "never"],
"comma-dangle": [
"error",
"never"
],
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/method-signature-style": "error",
Expand Down Expand Up @@ -86,6 +89,19 @@
"plugin:@typescript-eslint/stylistic-type-checked"
],
"rules": {
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none",
"requireLast": true
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}
],
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",
Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/ICacheOptions.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { RedisOptions } from 'ioredis'

interface ICacheOptions {
engine: 'memory' | 'redis',
engineOptions?: RedisOptions,
engine: 'memory' | 'redis'
engineOptions?: RedisOptions
defaultTTL?: string
}

Expand Down

0 comments on commit 68003aa

Please sign in to comment.