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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp