Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit53397fa

Browse files
committed
fix linting with vscode settings.json change
1 parent67195b5 commit53397fa

File tree

51 files changed

+635
-648
lines changed

Some content is hidden

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

51 files changed

+635
-648
lines changed

‎.vscode/settings.json

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
{
2-
"editor.formatOnSave":true,
3-
"eslint.autoFixOnSave":true,
4-
"eslint.validate": ["javascript", {"language":"typescript","autoFix":true }],
5-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
6-
"files.exclude": {
7-
"build":false// set this to true to hide the "out" folder with the compiled JS files
8-
},
9-
"search.exclude": {
10-
"build":true// set this to false to include "out" folder in search results
11-
},
12-
// styles
13-
"workbench.colorCustomizations": {
14-
"activityBar.background":"#000000",
15-
"titleBar.activeBackground":"#000000",
16-
"titleBar.activeForeground":"#FFFFFF"
17-
},
18-
"cSpell.ignoreWords": ["camelcase"],
19-
"files.exclude": {
20-
".vscode-test/**":true,
21-
"*.vsix":true
22-
}
2+
"editor.formatOnSave":true,
3+
"editor.codeActionsOnSave": {
4+
"source.organizeImports":true,
5+
"source.fixAll":true
6+
},
7+
"files.exclude": {
8+
"build":false,// set this to true to hide the "out" folder with the compiled JS files
9+
".vscode-test/**":true,
10+
"*.vsix":true
11+
},
12+
// styles
13+
"workbench.colorCustomizations": {
14+
"activityBar.background":"#000000",
15+
"titleBar.activeBackground":"#000000",
16+
"titleBar.activeForeground":"#FFFFFF"
17+
}
2318
}

‎web-app/.storybook/addons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import'@storybook/addon-actions/register'
22
import'@storybook/addon-knobs/register'
3-
import'@storybook/addon-links/register'
3+
import'@storybook/addon-links/register'

‎web-app/.storybook/config.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
import{configure,addParameters}from'@storybook/react'
1+
import{configure}from'@storybook/react'
22
import'../src/styles/index.css'
33

44
// setup acquireVsCodeApi mock
55
//@ts-ignore
66
global.acquireVsCodeApi=()=>({
7-
postMessage(event:string){
8-
console.log('postMessage',event)
9-
}
7+
postMessage(event:string){
8+
console.log('postMessage',event)
9+
},
1010
})
1111

12-
1312
// automatically import all files ending in *.stories.tsx
1413
constreq=require.context('../stories',true,/\.stories\.tsx$/)
1514

1615
functionloadStories(){
17-
req.keys().forEach(req)
16+
req.keys().forEach(req)
1817
}
1918

2019
configure(loadStories,module)
21-

‎web-app/.vscode/settings.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
1-
{}
1+
{
2+
"editor.formatOnSave":true,
3+
"editor.codeActionsOnSave": {
4+
"source.organizeImports":true,
5+
"source.fixAll":true
6+
},
7+
"files.exclude": {
8+
"build":false,// set this to true to hide the "out" folder with the compiled JS files
9+
".vscode-test/**":true,
10+
"*.vsix":true
11+
},
12+
// styles
13+
"workbench.colorCustomizations": {
14+
"activityBar.background":"#000000",
15+
"titleBar.activeBackground":"#000000",
16+
"titleBar.activeForeground":"#FFFFFF"
17+
}
18+
}
19+

‎web-app/src/App.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import*asReactfrom'react'
21
import{ApolloProvider}from'@apollo/react-hooks'
3-
2+
import*asReactfrom'react'
43
importErrorBoundaryfrom'./components/ErrorBoundary'
5-
importclientfrom'./services/apollo'
64
importRoutesfrom'./Routes'
5+
importclientfrom'./services/apollo'
76

87
constApp=()=>(
98
<ErrorBoundary>

‎web-app/src/Routes.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import*asReactfrom'react'
22
import*asCRfrom'typings'
3-
importWorkspacefrom'./components/Workspace'
4-
53
importRouterfrom'./components/Router'
6-
importLoadingPagefrom'./containers/LoadingPage'
4+
importWorkspacefrom'./components/Workspace'
75
importContinuePagefrom'./containers/Continue'
6+
importLoadingPagefrom'./containers/LoadingPage'
87
importNewPagefrom'./containers/New'
98
importOverviewPagefrom'./containers/Overview'
10-
importLevelSummaryPagefrom'./containers/Tutorial/LevelPage'
119
importCompletedPagefrom'./containers/Tutorial/CompletedPage'
10+
importLevelSummaryPagefrom'./containers/Tutorial/LevelPage'
1211

1312
const{ Route}=Router
1413

‎web-app/src/components/Button/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import*asReactfrom'react'
21
import{ButtonasAlifdButton}from'@alifd/next'
2+
import*asReactfrom'react'
33

44
interfaceProps{
55
style?:React.CSSProperties

‎web-app/src/components/Card/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import*asReactfrom'react'
21
import{CardasAlifdCard}from'@alifd/next'
2+
import*asReactfrom'react'
33

44
conststyles={
55
card:{
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
import*asReactfrom'react'
22

33
conststyles={
4-
box:{
5-
display:'flex',
6-
alignItems:'center',
7-
justifyContent:'center',
8-
},
9-
input:{
10-
border:'1px solid black',
11-
},
12-
loading:{
13-
backgroundColor:'red',
14-
},
4+
box:{
5+
display:'flex',
6+
alignItems:'center',
7+
justifyContent:'center',
8+
},
9+
input:{
10+
border:'1px solid black',
11+
},
12+
loading:{
13+
backgroundColor:'red',
14+
},
1515
}
1616

1717
interfaceProps{
18-
status:'COMPLETE'|'INCOMPLETE'|'ACTIVE'
18+
status:'COMPLETE'|'INCOMPLETE'|'ACTIVE'
1919
}
2020

2121
constCheckbox=(props:Props)=>{
22-
constonChange=()=>{
23-
/* read only */
24-
}
22+
constonChange=()=>{
23+
/* read only */
24+
}
2525

26-
constchecked=props.status==='COMPLETE'
26+
constchecked=props.status==='COMPLETE'
2727

28-
return(
29-
<divstyle={styles.box}>
30-
<label>
31-
<inputstyle={styles.input}type="checkbox"checked={checked}onChange={onChange}/>
32-
</label>
33-
</div>
34-
)
28+
return(
29+
<divstyle={styles.box}>
30+
<label>
31+
<inputstyle={styles.input}type="checkbox"checked={checked}onChange={onChange}/>
32+
</label>
33+
</div>
34+
)
3535
}
3636

3737
exportdefaultCheckbox

‎web-app/src/components/Debugger/index.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ import * as React from 'react'
22
import*asTfrom'typings'
33

44
interfacePropsextendsT.MachineContext{
5-
state:string
6-
children:React.ReactElement
5+
state:string
6+
children:React.ReactElement
77
}
88

99
constDebugger=({ state, children, env, position, progress, processes, tutorial}:Props)=>(
10-
<divstyle={{backgroundColor:'#FFFF99',color:'black',padding:'.5rem'}}>
11-
<h4>state:{state}</h4>
12-
<p>MachineId:{env.machineId}</p>
13-
<p>SessionId:{env.sessionId}</p>
14-
<p>tutorial:{tutorial ?tutorial.id :'none'}</p>
15-
<pstyle={{backgroundColor:'khaki',padding:'.5rem'}}>position:{JSON.stringify(position)}</p>
16-
<pstyle={{backgroundColor:'moccasin',padding:'.5rem'}}>progress:{JSON.stringify(progress)}</p>
17-
<pstyle={{backgroundColor:'beige',padding:'.5rem'}}>processes:{JSON.stringify(processes)}</p>
18-
{children}
19-
</div>
10+
<divstyle={{backgroundColor:'#FFFF99',color:'black',padding:'.5rem'}}>
11+
<h4>state:{state}</h4>
12+
<p>MachineId:{env.machineId}</p>
13+
<p>SessionId:{env.sessionId}</p>
14+
<p>tutorial:{tutorial ?tutorial.id :'none'}</p>
15+
<pstyle={{backgroundColor:'khaki',padding:'.5rem'}}>position:{JSON.stringify(position)}</p>
16+
<pstyle={{backgroundColor:'moccasin',padding:'.5rem'}}>progress:{JSON.stringify(progress)}</p>
17+
<pstyle={{backgroundColor:'beige',padding:'.5rem'}}>processes:{JSON.stringify(processes)}</p>
18+
{children}
19+
</div>
2020
)
2121

2222
exportdefaultDebugger

‎web-app/src/components/Error/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import*asReactfrom'react'
21
import{ApolloError}from'apollo-boost'
32
import{GraphQLError}from'graphql'
3+
import*asReactfrom'react'
44

55
conststyles={
66
container:{

‎web-app/src/components/Icon/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import*asReactfrom'react'
21
import{IconasAlifdIcon}from'@alifd/next'
2+
import*asReactfrom'react'
33

44
interfaceProps{
55
type:string

‎web-app/src/components/Loading/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import*asReactfrom'react'
21
import{Loading}from'@alifd/next'
2+
import*asReactfrom'react'
33

44
interfaceProps{
55
text:string

‎web-app/src/components/Markdown/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import markdownEmoji from 'markdown-it-emoji'
44
//@ts-ignore no types for package
55
importprismfrom'markdown-it-prism'
66
import*asReactfrom'react'
7-
87
// load prism styles & language support
98
import'./prism'
109

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// Themes - more at https://prismjs.com/examples.html
2-
import'prismjs/themes/prism-tomorrow.css'
3-
42
// Language support
53
import'prismjs/components/prism-bash'
64
import'prismjs/components/prism-clike'
@@ -10,4 +8,6 @@ import 'prismjs/components/prism-javascript'
108
import'prismjs/components/prism-json'
119
import'prismjs/components/prism-sql'
1210
import'prismjs/components/prism-typescript'
11+
import'prismjs/themes/prism-tomorrow.css'
12+
1313
// TODO import all - current list only supports js related

‎web-app/src/components/Message/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import*asReactfrom'react'
21
import{MessageasAlifdMessage}from'@alifd/next'
2+
import*asReactfrom'react'
33

44
interfaceProps{
55
type:'error'
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
import*asReactfrom'react'
21
import{MessageasAlifdMessage}from'@alifd/next'
2+
import*asReactfrom'react'
33
import*asTfrom'typings'
44

55
interfaceProps{
6-
processes:T.ProcessEvent[]
6+
processes:T.ProcessEvent[]
77
}
88

99
conststyles={
10-
container:{
11-
display:'flex',
12-
flexDirection:'column'as'column',
13-
},
10+
container:{
11+
display:'flex',
12+
flexDirection:'column'as'column',
13+
},
1414
}
1515

1616
// display a list of active processes
1717
constProcessEvents=({ processes}:Props)=>{
18-
if(!processes.length){
19-
returnnull
20-
}
21-
return(
22-
<divstyle={styles.container}>
23-
{processes.map(process=>(
24-
<AlifdMessagekey={process.title}type="loading"size="medium"title={process.title}>
25-
{process.description}
26-
</AlifdMessage>
27-
))}
28-
</div>
29-
)
18+
if(!processes.length){
19+
returnnull
20+
}
21+
return(
22+
<divstyle={styles.container}>
23+
{processes.map(process=>(
24+
<AlifdMessagekey={process.title}type="loading"size="medium"title={process.title}>
25+
{process.description}
26+
</AlifdMessage>
27+
))}
28+
</div>
29+
)
3030
}
3131

3232
exportdefaultProcessEvents

‎web-app/src/components/Router/index.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import*asReactfrom'react'
22
import*asCRfrom'typings'
3-
import{useMachine}from'../../services/xstate-react'
4-
importmachinefrom'../../services/state/machine'
5-
6-
importRoutefrom'./Route'
7-
importdebuggerWrapperfrom'../Debugger/debuggerWrapper'
83
importchannelfrom'../../services/channel'
94
importmessageBusReceiverfrom'../../services/channel/receiver'
5+
importmachinefrom'../../services/state/machine'
6+
import{useMachine}from'../../services/xstate-react'
7+
importdebuggerWrapperfrom'../Debugger/debuggerWrapper'
8+
importRoutefrom'./Route'
109

1110
interfaceProps{
1211
children:any

‎web-app/src/components/StepHelp/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import*asReactfrom'react'
21
import{Balloon}from'@alifd/next'
2+
import*asReactfrom'react'
33
importButtonfrom'../Button'
44

55
conststyles={

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp