Skip to content

Commit ecbc32b

Browse files
committed
Fix lint
1 parent 7f077c6 commit ecbc32b

File tree

9 files changed

+25
-21
lines changed

9 files changed

+25
-21
lines changed

packages/graphql-playground/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
"calculate-size": "^1.1.1",
114114
"classnames": "^2.2.5",
115115
"codemirror": "^5.27.4",
116+
"codemirror-graphql": "^0.6.12",
116117
"cuid": "^1.3.8",
117118
"graphcool-styles": "0.2.4",
118119
"graphcool-tmp-ui": "^0.0.11",
@@ -124,8 +125,10 @@
124125
"keycode": "^2.1.9",
125126
"lodash": "^4.17.4",
126127
"lodash.debounce": "^4.0.8",
128+
"marked": "^0.3.9",
127129
"polished": "^1.9.0",
128130
"postcss-modules": "^0.6.4",
131+
"prop-types": "^15.6.0",
129132
"react": "^16.2.0",
130133
"react-addons-shallow-compare": "^15.6.2",
131134
"react-codemirror": "^1.0.0",

packages/graphql-playground/src/components/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as React from 'react'
2-
import * as fetch from 'isomorphic-fetch'
32
import { Provider } from 'react-redux'
43
import createStore from '../createStore'
54
import MiddlewareApp from './MiddlewareApp'

packages/graphql-playground/src/components/Playground.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { GraphQLEditor } from './Playground/GraphQLEditor'
33
import * as fetch from 'isomorphic-fetch'
44
import { TabBar } from './Playground/TabBar'
55
import { defaultQuery, getDefaultSession } from '../constants'
6-
import { Session } from '../types'
6+
import { Session, ISettings } from '../types'
77
import * as cuid from 'cuid'
88
import * as Immutable from 'seamless-immutable'
99
import PlaygroundStorage from './PlaygroundStorage'
@@ -25,7 +25,6 @@ import { isSharingAuthorization } from './Playground/util/session'
2525
import { SchemaFetcher } from './Playground/SchemaFetcher'
2626
import Settings from './Settings'
2727
import SettingsEditor from './SettingsEditor'
28-
import { ISettings } from '../types'
2928
import { GraphQLConfig } from '../graphqlConfig'
3029
import FileEditor from './FileEditor'
3130

packages/graphql-playground/src/components/Playground/ExecuteButton.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
*/
88

99
import * as React from 'react'
10-
import * as cx from 'classnames'
11-
import { withTheme, LocalThemeInterface } from '../Theme'
1210
import * as cn from 'classnames'
11+
import { withTheme, LocalThemeInterface } from '../Theme'
1312
import ExecuteButtonOperation from './ExecuteButtonOperation'
1413

1514
export interface Props {
@@ -122,7 +121,7 @@ class ExecuteButton extends React.Component<
122121
}
123122
`}</style>
124123
<div
125-
className={cx('graphcool-execute-button', this.props.localTheme, {
124+
className={cn('graphcool-execute-button', this.props.localTheme, {
126125
running: this.props.isRunning,
127126
})}
128127
onMouseDown={onMouseDown}

packages/graphql-playground/src/components/Playground/GraphQLEditorSession.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import * as React from 'react'
2-
import { Session } from '../../types'
2+
import { Session, ISettings } from '../../types'
33
import GraphQLEditor from './GraphQLEditor'
44
import { SchemaFetcher } from './SchemaFetcher'
55
import { SharingProps } from '../Share'
6-
import { ISettings } from '../../types'
76

87
export interface Props {
98
session: Session

packages/graphql-playground/src/components/Playground/SchemaFetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class SchemaFetcher {
1414
}
1515
async fetch(endpoint: string, headers?: any) {
1616
const cachedSchema = this.cache.get(this.hash(endpoint, headers))
17-
return cachedSchema || (await this.fetchSchema(endpoint, headers))
17+
return cachedSchema || this.fetchSchema(endpoint, headers)
1818
}
1919
refetch(endpoint: string, headers: any) {
2020
return this.fetchSchema(endpoint, headers)
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import * as styledComponents from 'styled-components'
2-
import { ThemedStyledComponentsModule } from 'styled-components'
1+
// import * as styledComponents from 'styled-components'
2+
import { default as styled, css, injectGlobal, keyframes, ThemeProvider } from 'styled-components'
33

4-
import { ThemeInterface, theme } from './theme'
4+
import { theme } from './theme'
55

6-
const {
7-
default: styled,
8-
css,
9-
injectGlobal,
10-
keyframes,
11-
ThemeProvider,
12-
} = styledComponents as ThemedStyledComponentsModule<ThemeInterface>
6+
// const {
7+
// default: styled,
8+
// css,
9+
// injectGlobal,
10+
// keyframes,
11+
// ThemeProvider,
12+
// } = styledComponents as ThemedStyledComponentsModule<ThemeInterface>
1313

1414
export { css, injectGlobal, keyframes, ThemeProvider, theme }
1515
export default styled

packages/graphql-playground/tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"tslint-graphcool-frontend"
44
],
55
"rules": {
6-
"forin": false
6+
"forin": false,
7+
"no-submodule-imports": false
78
}
89
}

packages/graphql-playground/yarn.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ code-point-at@^1.0.0:
15911591
version "1.1.0"
15921592
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
15931593

1594-
codemirror-graphql@^0.6.11:
1594+
codemirror-graphql@^0.6.11, codemirror-graphql@^0.6.12:
15951595
version "0.6.12"
15961596
resolved "https://registry.yarnpkg.com/codemirror-graphql/-/codemirror-graphql-0.6.12.tgz#91a273fe5188857524a30221d06e645b4ca41f00"
15971597
dependencies:
@@ -4503,6 +4503,10 @@ [email protected]:
45034503
version "0.3.6"
45044504
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7"
45054505

4506+
marked@^0.3.9:
4507+
version "0.3.9"
4508+
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.9.tgz#54ce6a57e720c3ac6098374ec625fcbcc97ff290"
4509+
45064510
math-expression-evaluator@^1.2.14:
45074511
version "1.2.17"
45084512
resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac"

0 commit comments

Comments
 (0)