File tree 6 files changed +9
-8
lines changed
6 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ flow-typed/
6
6
# "lib/" is like "**/lib/**", and we have nested lib directories
7
7
# "!src/**/lib/" establishes that we would like to lint those nested directories
8
8
! src /** /lib /
9
+ .gitignore
Original file line number Diff line number Diff line change 1
1
// @flow
2
2
3
- import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common' ;
4
-
5
3
declare module '@contentacms/contenta-graphql/types/got' {
4
+ import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common' ;
5
+
6
6
declare type GotResponse = {
7
7
body : ObjectLiteral ,
8
8
url : string ,
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import type {
6
6
GraphQLFieldResolver ,
7
7
} from 'graphql' ;
8
8
9
- import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common' ;
10
-
11
9
declare module '@contentacms/contenta-graphql/types/graphql' {
10
+ import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common' ;
11
+
12
12
declare type TypeDef = ( ( ) => TypeDef ) | string | DocumentNode ;
13
13
declare type TypeDefinitions = TypeDef | TypeDef [ ] ;
14
14
Original file line number Diff line number Diff line change 1
1
// @flow
2
2
3
- import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common' ;
4
-
5
3
declare module '@contentacms/contenta-graphql/types/jsonapi' {
4
+ import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common' ;
5
+
6
6
declare type JsonApiBase = {
7
7
meta : ObjectLiteral ,
8
8
links : { [ string ] : string } ,
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
hooks : {
3
3
'commit-msg' : 'commitlint -e ${HUSKY_GIT_PARAMS}' ,
4
- 'pre-commit' : 'lint-staged && npm run flow' ,
4
+ 'pre-commit' : 'lint-staged && npm run lint && npm run flow' ,
5
5
'pre-push' : 'npm run test' ,
6
6
} ,
7
7
} ;
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"test" : " jest --coverage --detectOpenHandles --forceExit" ,
8
8
"test-ci" : " NODE_ENV=test yarn jest --coverage --ci --runInBand --detectOpenHandles --forceExit" ,
9
- "lint" : " eslint --ignore-path .gitignore ." ,
9
+ "lint" : " eslint ." ,
10
10
"prepare" : " npm run build" ,
11
11
"semantic-release" : " semantic-release" ,
12
12
"build" : " babel src -d lib --delete-dir-on-start --copy-files && flow-copy-source src lib" ,
You can’t perform that action at this time.
0 commit comments