Skip to content

Commit

Permalink
chore(tools): fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Naomi Carrigan committed Dec 13, 2023
1 parent 6a5e466 commit 4938a25
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 32 deletions.
21 changes: 13 additions & 8 deletions apps/top-flex-box-example/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"extends": "../../.eslintrc.json",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
}
"extends": ["plugin:react/recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
}
}
},
"settings": {
"react": {
"version": "detect"
}
}
}
3 changes: 3 additions & 0 deletions apps/top-flex-box-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions apps/top-flex-box-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"eslint-plugin-react": "^7.33.2"
}
}
35 changes: 18 additions & 17 deletions apps/top-flex-box-example/src/App.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Sandpack } from "@codesandbox/sandpack-react"
import { React } from 'react';
import { Sandpack } from '@codesandbox/sandpack-react';

function App() {
return (
<Sandpack
files={{
"styles.css": {
active: true,
code: `
<Sandpack
files={{
'styles.css': {
active: true,
code: `
.flex-container {
/* display: flex; */
gap: 12px;
Expand All @@ -20,9 +21,9 @@ function App() {
/* flex: 1; */
}
`
},
"index.html": {
code: `
},
'index.html': {
code: `
<!DOCTYPE html>
<html lang="en">
<head>
Expand All @@ -39,14 +40,14 @@ function App() {
</div>
</body>
</html>`
},
}}
options={{
editorHeight: "100vh",
}}
theme={'dark'}
template="static"
/>
}
}}
options={{
editorHeight: '100vh'
}}
theme={'dark'}
template='static'
/>
);
}

Expand Down
10 changes: 5 additions & 5 deletions apps/top-flex-box-example/src/index.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#editor {
height: 100%;
width: 100%;
height: 100%;
width: 100%;
}

body {
margin: 0;
padding: 0;
}
margin: 0;
padding: 0;
}
2 changes: 0 additions & 2 deletions apps/top-flex-box-example/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ root.render(
<App />
</React.StrictMode>
);


0 comments on commit 4938a25

Please sign in to comment.