Skip to content

Commit 505bb12

Browse files
committed
eslint fixes
1 parent a02f6dc commit 505bb12

File tree

7 files changed

+28
-12
lines changed

7 files changed

+28
-12
lines changed

.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
},
1010
"rules": {
1111
"semi": 2
12+
},
13+
"globals": {
14+
"document": true,
15+
"window": true
1216
}
1317
}

.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 80,
3+
"parser": "flow",
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"semi": true,
7+
"singleQuote": true,
8+
"trailingComma": "all",
9+
"bracketSpacing": true,
10+
"jsxBracketSameLine": false,
11+
"arrowParens": "avoid"
12+
}

src/App.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/App.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React, { Component } from 'react';
2+
import MemoryGame from './module';
3+
4+
const App = () => (
5+
<MemoryGame cards={['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']} />
6+
);
7+
8+
export default App;

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
import React from 'react';
23
import ReactDOM from 'react-dom';
34
import './index.css';

src/module/MemoryGrid.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import styled from 'styled-components'
2+
import styled from 'styled-components';
33

44
const Grid = styled.div`
55
display: flex;
@@ -15,4 +15,4 @@ const Grid = styled.div`
1515
}
1616
`;
1717

18-
export default (({ children }) => <Grid>{children}</Grid>);
18+
export default ({ children }) => <Grid>{children}</Grid>;

src/registerServiceWorker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
// In production, we register a service worker to serve assets from local cache.
23

34
// This lets the app load faster on subsequent visits in production, and gives

0 commit comments

Comments
 (0)