Skip to content

Commit 4938a25

Browse files
author
Naomi Carrigan
committed
chore(tools): fix linter
1 parent 6a5e466 commit 4938a25

File tree

6 files changed

+42
-32
lines changed

6 files changed

+42
-32
lines changed
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
2-
"extends": "../../.eslintrc.json",
3-
"parserOptions": {
4-
"sourceType": "module",
5-
"ecmaVersion": 2018,
6-
"ecmaFeatures": {
7-
"jsx": true
8-
}
2+
"extends": ["plugin:react/recommended"],
3+
"parserOptions": {
4+
"sourceType": "module",
5+
"ecmaVersion": 2018,
6+
"ecmaFeatures": {
7+
"jsx": true
98
}
10-
}
9+
},
10+
"settings": {
11+
"react": {
12+
"version": "detect"
13+
}
14+
}
15+
}

apps/top-flex-box-example/package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/top-flex-box-example/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@
2323
"last 1 firefox version",
2424
"last 1 safari version"
2525
]
26+
},
27+
"devDependencies": {
28+
"eslint-plugin-react": "^7.33.2"
2629
}
2730
}

apps/top-flex-box-example/src/App.js

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { Sandpack } from "@codesandbox/sandpack-react"
1+
import { React } from 'react';
2+
import { Sandpack } from '@codesandbox/sandpack-react';
23

34
function App() {
45
return (
5-
<Sandpack
6-
files={{
7-
"styles.css": {
8-
active: true,
9-
code: `
6+
<Sandpack
7+
files={{
8+
'styles.css': {
9+
active: true,
10+
code: `
1011
.flex-container {
1112
/* display: flex; */
1213
gap: 12px;
@@ -20,9 +21,9 @@ function App() {
2021
/* flex: 1; */
2122
}
2223
`
23-
},
24-
"index.html": {
25-
code: `
24+
},
25+
'index.html': {
26+
code: `
2627
<!DOCTYPE html>
2728
<html lang="en">
2829
<head>
@@ -39,14 +40,14 @@ function App() {
3940
</div>
4041
</body>
4142
</html>`
42-
},
43-
}}
44-
options={{
45-
editorHeight: "100vh",
46-
}}
47-
theme={'dark'}
48-
template="static"
49-
/>
43+
}
44+
}}
45+
options={{
46+
editorHeight: '100vh'
47+
}}
48+
theme={'dark'}
49+
template='static'
50+
/>
5051
);
5152
}
5253

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#editor {
2-
height: 100%;
3-
width: 100%;
2+
height: 100%;
3+
width: 100%;
44
}
55

66
body {
7-
margin: 0;
8-
padding: 0;
9-
}
7+
margin: 0;
8+
padding: 0;
9+
}

apps/top-flex-box-example/src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ root.render(
99
<App />
1010
</React.StrictMode>
1111
);
12-
13-

0 commit comments

Comments
 (0)