Skip to content

Commit f359353

Browse files
author
Mateu Aguiló Bosch
committed
fix: resolve linting issues
1 parent 5cad0f1 commit f359353

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ flow-typed/
66
# "lib/" is like "**/lib/**", and we have nested lib directories
77
# "!src/**/lib/" establishes that we would like to lint those nested directories
88
!src/**/lib/
9+
.gitignore

flow-typed/custom/got.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// @flow
22

3-
import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common';
4-
53
declare module '@contentacms/contenta-graphql/types/got' {
4+
import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common';
5+
66
declare type GotResponse = {
77
body: ObjectLiteral,
88
url: string,

flow-typed/custom/graphql.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import type {
66
GraphQLFieldResolver,
77
} from 'graphql';
88

9-
import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common';
10-
119
declare module '@contentacms/contenta-graphql/types/graphql' {
10+
import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common';
11+
1212
declare type TypeDef = (() => TypeDef) | string | DocumentNode;
1313
declare type TypeDefinitions = TypeDef | TypeDef[];
1414

flow-typed/custom/jsonapi.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// @flow
22

3-
import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common';
4-
53
declare module '@contentacms/contenta-graphql/types/jsonapi' {
4+
import type { ObjectLiteral } from '@contentacms/contenta-graphql/types/common';
5+
66
declare type JsonApiBase = {
77
meta: ObjectLiteral,
88
links: { [string]: string },

husky.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
hooks: {
33
'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',
55
'pre-push': 'npm run test',
66
},
77
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"test": "jest --coverage --detectOpenHandles --forceExit",
88
"test-ci": "NODE_ENV=test yarn jest --coverage --ci --runInBand --detectOpenHandles --forceExit",
9-
"lint": "eslint --ignore-path .gitignore .",
9+
"lint": "eslint .",
1010
"prepare": "npm run build",
1111
"semantic-release": "semantic-release",
1212
"build": "babel src -d lib --delete-dir-on-start --copy-files && flow-copy-source src lib",

0 commit comments

Comments
 (0)