Skip to content

Commit

Permalink
style: reformat source files
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Feb 16, 2021
1 parent aa993af commit d75a624
Show file tree
Hide file tree
Showing 24 changed files with 2,171 additions and 2,143 deletions.
41 changes: 33 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,42 @@
version: 2.1
orbs:
version: 2
orbs: null
aws-ecr: circleci/[email protected]
jobs:
tests:
build_14.15.4:
docker:
- image: 'bayesimpact/circleci'
- image: circleci/node:14.15.4
working_directory: ~/app
steps:
- checkout
- setup_remote_docker
- run: docker-compose run --rm tests
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
build_latest:
docker:
- image: circleci/node:latest
working_directory: ~/app
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
workflows:
version: 2.1
version: 2
workflow:
jobs:
- tests
- build_14.15.4
- build_latest
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ root = true

[*]
indent_size = 2
indent_style = tab
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand All @@ -20,4 +20,4 @@ indent_style = ignore
insert_final_newline = ignore

[MakeFile]
indent_style = tab
indent_style = space
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
],
"rules": {
"prettier/prettier": [
"error"
"error",
{
"endOfLine": "auto"
}
]
}
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ config.json
.eslintrc.json
package.json
*.html
*.txt
16 changes: 8 additions & 8 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"useTabs": true,
"quoteProps": "consistent",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 100
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"useTabs": false,
"quoteProps": "consistent",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 100
}
8 changes: 4 additions & 4 deletions adonis-typings/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
*/

declare module '@ioc:Adonis/Core/Application' {
import { RedisManagerContract } from '@ioc:Adonis/Addons/Redis'
import { RedisManagerContract } from '@ioc:Adonis/Addons/Redis'

export interface ContainerBindings {
'Adonis/Addons/Redis': RedisManagerContract
}
export interface ContainerBindings {
'Adonis/Addons/Redis': RedisManagerContract
}
}
28 changes: 14 additions & 14 deletions adonis-typings/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
*/

declare module '@ioc:Adonis/Core/Event' {
import { Redis } from 'ioredis'
import { RedisClusterConnectionContract, RedisConnectionContract } from '@ioc:Adonis/Addons/Redis'
import { Redis } from 'ioredis'
import { RedisClusterConnectionContract, RedisConnectionContract } from '@ioc:Adonis/Addons/Redis'

interface EventsList {
'redis:ready': { connection: RedisClusterConnectionContract | RedisConnectionContract }
'redis:connect': { connection: RedisClusterConnectionContract | RedisConnectionContract }
'redis:error': {
error: any
connection: RedisClusterConnectionContract | RedisConnectionContract
}
'redis:end': { connection: RedisClusterConnectionContract | RedisConnectionContract }
interface EventsList {
'redis:ready': { connection: RedisClusterConnectionContract | RedisConnectionContract }
'redis:connect': { connection: RedisClusterConnectionContract | RedisConnectionContract }
'redis:error': {
error: any
connection: RedisClusterConnectionContract | RedisConnectionContract
}
'redis:end': { connection: RedisClusterConnectionContract | RedisConnectionContract }

'node:added': { connection: RedisClusterConnectionContract; node: Redis }
'node:removed': { connection: RedisClusterConnectionContract; node: Redis }
'node:error': { error: any; connection: RedisClusterConnectionContract; address: string }
}
'node:added': { connection: RedisClusterConnectionContract; node: Redis }
'node:removed': { connection: RedisClusterConnectionContract; node: Redis }
'node:error': { error: any; connection: RedisClusterConnectionContract; address: string }
}
}
Loading

0 comments on commit d75a624

Please sign in to comment.