File tree Expand file tree Collapse file tree 5 files changed +29
-30
lines changed Expand file tree Collapse file tree 5 files changed +29
-30
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "printWidth": 80 ,
2
+ "printWidth": 100 ,
3
3
"semi": true,
4
4
"singleQuote": true,
5
- "tabWidth": 2 ,
5
+ "tabWidth": 4 ,
6
6
"useTabs": false,
7
7
"arrowParens": "avoid",
8
- "jsxBracketSameLine": false,
9
8
"trailingComma": "all"
10
9
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " my-app" ,
3
- "version" : " 2.0.0 " ,
3
+ "version" : " 2.0.1 " ,
4
4
"license" : " MIT" ,
5
5
"lint-staged" : {
6
6
"src/**/*.{ts,tsx}" : [
Original file line number Diff line number Diff line change 1
1
declare module '*.svg' {
2
- import React = require( 'react' ) ;
3
- export const ReactComponent : React . SFC < React . SVGProps < SVGSVGElement > > ;
4
- const src : string ;
5
- export default src ;
2
+ import React = require( 'react' ) ;
3
+ export const ReactComponent : React . SFC < React . SVGProps < SVGSVGElement > > ;
4
+ const src : string ;
5
+ export default src ;
6
6
}
Original file line number Diff line number Diff line change @@ -3,22 +3,22 @@ import './app.css';
3
3
import logo from '../assets/logo.svg' ;
4
4
5
5
export const App = ( ) : JSX . Element => {
6
- return (
7
- < div className = "app" >
8
- < header className = "app__header" >
9
- < img src = { logo } className = "app__logo" alt = "logo" />
10
- < p >
11
- Edit < code > src/app.tsx</ code > and save to reload.
12
- </ p >
13
- < a
14
- className = "app__link"
15
- href = "https://reactjs.org"
16
- target = "_blank"
17
- rel = "noopener noreferrer"
18
- >
19
- Learn React
20
- </ a >
21
- </ header >
22
- </ div >
23
- ) ;
6
+ return (
7
+ < div className = "app" >
8
+ < header className = "app__header" >
9
+ < img src = { logo } className = "app__logo" alt = "logo" />
10
+ < p >
11
+ Edit < code > src/app.tsx</ code > and save to reload.
12
+ </ p >
13
+ < a
14
+ className = "app__link"
15
+ href = "https://reactjs.org"
16
+ target = "_blank"
17
+ rel = "noopener noreferrer"
18
+ >
19
+ Learn React
20
+ </ a >
21
+ </ header >
22
+ </ div >
23
+ ) ;
24
24
} ;
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import ReactDOM from 'react-dom';
3
3
import { App } from './components/app' ;
4
4
5
5
ReactDOM . render (
6
- < React . StrictMode >
7
- < App />
8
- </ React . StrictMode > ,
9
- document . getElementById ( 'root' ) ,
6
+ < React . StrictMode >
7
+ < App />
8
+ </ React . StrictMode > ,
9
+ document . getElementById ( 'root' ) ,
10
10
) ;
You can’t perform that action at this time.
0 commit comments