File tree Expand file tree Collapse file tree 10 files changed +28
-19
lines changed
components/Stage/StepDescription Expand file tree Collapse file tree 10 files changed +28
-19
lines changed Original file line number Diff line number Diff line change 1313 "semicolon" : [true , " never" ],
1414 "triple-equals" : true ,
1515 "forin" : false ,
16- "no-console" : false
16+ "no-console" : false ,
17+ "no-submodule-imports" : false
1718 },
1819 "defaultSeverity" : " warning" ,
19- "no-submodule-imports" : false ,
20+
2021 "linterOptions" : {
2122 "exclude" : [" node_modules/**" ]
2223 }
Original file line number Diff line number Diff line change @@ -16,5 +16,8 @@ module.exports = ({ config }) => {
1616 } ,
1717 } )
1818 config . resolve . extensions . push ( '.ts' , '.tsx' )
19+
20+ config . resolve . modules = [ 'node_modules' , path . resolve ( __dirname , '../src' ) ]
21+
1922 return config
2023}
Original file line number Diff line number Diff line change 11import * as React from 'react'
2- import Markdown from '../.. /Markdown'
2+ import Markdown from 'components /Markdown'
33
44const styles = {
55 // active: {
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import { useQuery } from '@apollo/react-hooks'
33import { Button , Card } from '@alifd/next'
44import * as T from 'typings/graphql'
55
6- import { send } from '../../ utils/vscode'
6+ import { send } from 'utils/vscode'
77import LoadingPage from '../LoadingPage'
88import queryTutorial from './queryTutorial'
9- import ErrorView from '../../ components/Error'
9+ import ErrorView from 'components/Error'
1010
1111interface Props {
1212 tutorial : T . Tutorial
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import { useQuery } from '@apollo/react-hooks'
33import * as T from 'typings/graphql'
44
55import queryTutorials from './queryTutorials'
6- import { send } from '../../ utils/vscode'
6+ import { send } from 'utils/vscode'
77import LoadingPage from '../LoadingPage'
8- import ErrorView from '../../ components/Error'
9- import TutorialList from '../../ components/TutorialList'
8+ import ErrorView from 'components/Error'
9+ import TutorialList from 'components/TutorialList'
1010
1111interface Props {
1212 tutorialList : T . Tutorial [ ]
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import * as React from 'react'
22import { useQuery } from '@apollo/react-hooks'
33import * as T from 'typings/graphql'
44
5- import ErrorView from '../../../ components/Error'
6- import Level from '../../../ components/Level'
5+ import ErrorView from 'components/Error'
6+ import Level from 'components/Level'
77import queryLevel from './queryLevel'
88
99interface LevelProps {
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import * as React from 'react'
22import { useQuery } from '@apollo/react-hooks'
33import * as T from 'typings/graphql'
44
5- import Stage from '../../../ components/Stage'
6- import ErrorView from '../../../ components/Error'
5+ import Stage from 'components/Stage'
6+ import ErrorView from 'components/Error'
77import queryStage from './queryStage'
88
99interface PageProps {
Original file line number Diff line number Diff line change 11import * as React from 'react'
2- import DataContext from '../../ utils/DataContext'
3- import Summary from '../../ components/Summary'
2+ import DataContext from 'utils/DataContext'
3+ import Summary from 'components/Summary'
44
55interface PageProps {
66 send ( action : string ) : void
Original file line number Diff line number Diff line change 11import * as React from 'react'
2- import { send } from '../../ utils/vscode'
2+ import { send } from 'utils/vscode'
33
4- import Router from '../../ components/Router'
4+ import Router from 'components/Router'
55import LoadingPage from '../LoadingPage'
66import SummaryPage from './SummaryPage'
77import LevelSummaryPage from './LevelSummaryPage'
8- import StagePage from './StagePage '
8+ import StageSummaryPage from './StageSummaryPage '
99import CompletedPage from './CompletedPage'
1010
1111const { Route } = Router
@@ -27,7 +27,7 @@ const Tutorial = (props: Props) => {
2727 < LevelSummaryPage send = { send } />
2828 </ Route >
2929 < Route path = "Tutorial.Stage" >
30- < StagePage send = { send } />
30+ < StageSummaryPage send = { send } />
3131 </ Route >
3232 < Route path = "Tutorial.Completed" >
3333 < CompletedPage />
Original file line number Diff line number Diff line change 33 "baseUrl" : " src" ,
44 "rootDirs" : [" src" , " stories" ],
55 "paths" : {
6+ "components/*" : [" ./components/*" ],
7+ "containers/*" : [" ./containers/*" ],
8+ "services/*" : [" ./services/*" ],
9+ "styles/*" : [" ./styles/*" ],
610 "typings" : [" ../../typings/index.d.ts" ],
7- "typings/graphql" : [" ../../typings/graphql.d.ts" ]
11+ "typings/graphql" : [" ../../typings/graphql.d.ts" ],
12+ "utils/*" : [" ./utils/*" ]
813 },
914 "allowSyntheticDefaultImports" : true
1015 },
You can’t perform that action at this time.
0 commit comments