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 11{
2- "printWidth": 80 ,
2+ "printWidth": 100 ,
33 "semi": true,
44 "singleQuote": true,
5- "tabWidth": 2 ,
5+ "tabWidth": 4 ,
66 "useTabs": false,
77 "arrowParens": "avoid",
8- "jsxBracketSameLine": false,
98 "trailingComma": "all"
109}
Original file line number Diff line number Diff line change 11{
22 "name" : " my-app" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "license" : " MIT" ,
55 "lint-staged" : {
66 "src/**/*.{ts,tsx}" : [
Original file line number Diff line number Diff line change 11declare 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 ;
66}
Original file line number Diff line number Diff line change @@ -3,22 +3,22 @@ import './app.css';
33import logo from '../assets/logo.svg' ;
44
55export 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+ ) ;
2424} ;
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import ReactDOM from 'react-dom';
33import { App } from './components/app' ;
44
55ReactDOM . 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' ) ,
1010) ;
You can’t perform that action at this time.
0 commit comments