Skip to content

Commit 94df36a

Browse files
committed
style: reformat source files
1 parent a06d736 commit 94df36a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+24885
-15352
lines changed

.circleci/config.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
version: 2
22
jobs:
3-
build_12.18.2:
3+
build_14.15.4:
44
docker:
5-
- image: 'circleci/node:12.18.2'
5+
- image: circleci/node:14.15.4
66
working_directory: ~/app
77
steps:
88
- checkout
99
- restore_cache:
1010
keys:
11-
- 'v1-dependencies-{{ checksum "package.json" }}'
11+
- v1-dependencies-{{ checksum "package.json" }}
1212
- v1-dependencies-
1313
- run: npm install
1414
- save_cache:
1515
paths:
1616
- node_modules
17-
key: 'v1-dependencies-{{ checksum "package.json" }}'
17+
key: v1-dependencies-{{ checksum "package.json" }}
1818
- run: npm test
1919
build_latest:
2020
docker:
21-
- image: 'circleci/node:latest'
21+
- image: circleci/node:latest
2222
working_directory: ~/app
2323
steps:
2424
- checkout
2525
- restore_cache:
2626
keys:
27-
- 'v1-dependencies-{{ checksum "package.json" }}'
27+
- v1-dependencies-{{ checksum "package.json" }}
2828
- v1-dependencies-
2929
- run: npm install
3030
- save_cache:
3131
paths:
3232
- node_modules
33-
key: 'v1-dependencies-{{ checksum "package.json" }}'
33+
key: v1-dependencies-{{ checksum "package.json" }}
3434
- run: npm test
3535
workflows:
3636
version: 2
3737
workflow:
3838
jobs:
39-
- build_12.18.2
39+
- build_14.15.4
4040
- build_latest

.editorconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# http://editorconfig.org
22

33
[*]
4-
indent_style = tab
4+
indent_style = space
55
indent_size = 2
66
end_of_line = lf
77
charset = utf-8
@@ -16,7 +16,7 @@ indent_style = ignore
1616
insert_final_newline = ignore
1717

1818
[MakeFile]
19-
indent_style = tab
19+
indent_style = space
2020

2121
[*.md]
2222
trim_trailing_whitespace = false

.eslintrc.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
],
1010
"rules": {
1111
"prettier/prettier": [
12-
"error", {
13-
"endOfLine":"auto"
12+
"error",
13+
{
14+
"endOfLine": "auto"
1415
}
1516
]
1617
}

.github/stale.yml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ daysUntilClose: 7
77
# Issues with these labels will never be considered stale
88
exemptLabels:
99
- 'Type: Security'
10-
- 'Status: Blocked'
1110

1211
# Label to use when marking an issue as stale
1312
staleLabel: 'Status: Abandoned'

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ config.json
55
.eslintrc.json
66
package.json
77
*.html
8+
*.txt

.prettierrc

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"trailingComma": "es5",
3-
"semi": false,
4-
"singleQuote": true,
5-
"useTabs": true,
6-
"quoteProps": "consistent",
7-
"bracketSpacing": true,
8-
"arrowParens": "always",
9-
"printWidth": 100
2+
"trailingComma": "es5",
3+
"semi": false,
4+
"singleQuote": true,
5+
"useTabs": false,
6+
"quoteProps": "consistent",
7+
"bracketSpacing": true,
8+
"arrowParens": "always",
9+
"printWidth": 100
1010
}

adonis-typings/container.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
*/
99

1010
declare module '@ioc:Adonis/Core/Application' {
11-
import { RouterContract } from '@ioc:Adonis/Core/Route'
12-
import { ServerContract } from '@ioc:Adonis/Core/Server'
13-
import { RequestConstructorContract } from '@ioc:Adonis/Core/Request'
14-
import { ResponseConstructorContract } from '@ioc:Adonis/Core/Response'
15-
import { HttpContextConstructorContract } from '@ioc:Adonis/Core/HttpContext'
11+
import { RouterContract } from '@ioc:Adonis/Core/Route'
12+
import { ServerContract } from '@ioc:Adonis/Core/Server'
13+
import { RequestConstructorContract } from '@ioc:Adonis/Core/Request'
14+
import { ResponseConstructorContract } from '@ioc:Adonis/Core/Response'
15+
import { HttpContextConstructorContract } from '@ioc:Adonis/Core/HttpContext'
1616

17-
export interface ContainerBindings {
18-
'Adonis/Core/Route': RouterContract
19-
'Adonis/Core/Server': ServerContract
20-
'Adonis/Core/Request': RequestConstructorContract
21-
'Adonis/Core/Response': ResponseConstructorContract
22-
'Adonis/Core/HttpContext': HttpContextConstructorContract
23-
}
17+
export interface ContainerBindings {
18+
'Adonis/Core/Route': RouterContract
19+
'Adonis/Core/Server': ServerContract
20+
'Adonis/Core/Request': RequestConstructorContract
21+
'Adonis/Core/Response': ResponseConstructorContract
22+
'Adonis/Core/HttpContext': HttpContextConstructorContract
23+
}
2424
}

adonis-typings/context.ts

+52-52
Original file line numberDiff line numberDiff line change
@@ -8,61 +8,61 @@
88
*/
99

1010
declare module '@ioc:Adonis/Core/HttpContext' {
11-
import { RouteNode } from '@ioc:Adonis/Core/Route'
12-
import { IncomingMessage, ServerResponse } from 'http'
13-
import { MacroableConstructorContract } from 'macroable'
14-
import { LoggerContract } from '@ioc:Adonis/Core/Logger'
15-
import { RequestContract } from '@ioc:Adonis/Core/Request'
16-
import { ResponseContract } from '@ioc:Adonis/Core/Response'
17-
import { ProfilerRowContract } from '@ioc:Adonis/Core/Profiler'
18-
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
11+
import { RouteNode } from '@ioc:Adonis/Core/Route'
12+
import { IncomingMessage, ServerResponse } from 'http'
13+
import { MacroableConstructorContract } from 'macroable'
14+
import { LoggerContract } from '@ioc:Adonis/Core/Logger'
15+
import { RequestContract } from '@ioc:Adonis/Core/Request'
16+
import { ResponseContract } from '@ioc:Adonis/Core/Response'
17+
import { ProfilerRowContract } from '@ioc:Adonis/Core/Profiler'
18+
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
1919

20-
/**
21-
* Http request context passed to all middleware
22-
* and route handler
23-
*/
24-
export interface HttpContextContract {
25-
/**
26-
* A helper to see top level properties on the context object
27-
*/
28-
inspect(): any
29-
request: RequestContract
30-
response: ResponseContract
31-
logger: LoggerContract
32-
profiler: ProfilerRowContract
33-
route?: RouteNode
34-
routeKey: string
35-
params: any
36-
subdomains: any
37-
}
20+
/**
21+
* Http request context passed to all middleware
22+
* and route handler
23+
*/
24+
export interface HttpContextContract {
25+
/**
26+
* A helper to see top level properties on the context object
27+
*/
28+
inspect(): any
29+
request: RequestContract
30+
response: ResponseContract
31+
logger: LoggerContract
32+
profiler: ProfilerRowContract
33+
route?: RouteNode
34+
routeKey: string
35+
params: any
36+
subdomains: any
37+
}
3838

39-
/**
40-
* Shape of the constructor. We export the constructor and not
41-
* the context instance, since that is passed to the HTTP
42-
* lifecycle
43-
*/
44-
export interface HttpContextConstructorContract
45-
extends MacroableConstructorContract<HttpContextContract> {
46-
app?: ApplicationContract
39+
/**
40+
* Shape of the constructor. We export the constructor and not
41+
* the context instance, since that is passed to the HTTP
42+
* lifecycle
43+
*/
44+
export interface HttpContextConstructorContract
45+
extends MacroableConstructorContract<HttpContextContract> {
46+
app?: ApplicationContract
4747

48-
/**
49-
* Creates a new fake context instance for a given route.
50-
*/
51-
create(
52-
routePattern: string,
53-
routeParams: any,
54-
req?: IncomingMessage,
55-
res?: ServerResponse
56-
): HttpContextContract
48+
/**
49+
* Creates a new fake context instance for a given route.
50+
*/
51+
create(
52+
routePattern: string,
53+
routeParams: any,
54+
req?: IncomingMessage,
55+
res?: ServerResponse
56+
): HttpContextContract
5757

58-
new (
59-
request: RequestContract,
60-
response: ResponseContract,
61-
logger: LoggerContract,
62-
profiler: ProfilerRowContract
63-
): HttpContextContract
64-
}
58+
new (
59+
request: RequestContract,
60+
response: ResponseContract,
61+
logger: LoggerContract,
62+
profiler: ProfilerRowContract
63+
): HttpContextContract
64+
}
6565

66-
const HttpContext: HttpContextConstructorContract
67-
export default HttpContext
66+
const HttpContext: HttpContextConstructorContract
67+
export default HttpContext
6868
}

0 commit comments

Comments
 (0)