Skip to content

Commit 438891a

Browse files
Merge branch 'layer5io:master' into readme
2 parents 4ce9e5e + adf0c76 commit 438891a

File tree

81 files changed

+9855
-12934
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+9855
-12934
lines changed

.babelrc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,16 @@
3434
],
3535
"plugins": [
3636
[
37-
"@babel/plugin-proposal-class-properties"
37+
"@babel/plugin-transform-class-properties"
3838
],
3939
[
40-
"@babel/plugin-proposal-object-rest-spread"
40+
"@babel/plugin-transform-nullish-coalescing-operator"
41+
],
42+
[
43+
"@babel/plugin-transform-object-rest-spread"
44+
],
45+
[
46+
"@babel/plugin-transform-optional-chaining"
4147
],
4248
[
4349
"@babel/plugin-transform-async-to-generator"

.eslintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@babel/eslint-parser",
33
"settings": {
44
"react": {
55
"version": "latest"
66
},
77
"import/extensions": [
88
".js"
99
],
10-
"import/parser": "babel-eslint",
10+
"import/parser": "@babel/eslint-parser",
1111
"import/resolver": {
1212
"node": {
1313
"extensions": [
@@ -20,6 +20,7 @@
2020
}
2121
},
2222
"parserOptions": {
23+
"requireConfigFile": false,
2324
"ecmaVersion": 6,
2425
"sourceType": "module",
2526
"allowImportExportEverywhere": true,

.github/workflows/publish-package.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ jobs:
6565
echo "Build New Package" >> $GITHUB_STEP_SUMMARY
6666
6767
- name: Publish Package
68+
env:
69+
NODE_AUTH_TOKEN: '' # Explicitly empty for install
6870
run: |
6971
set -e
7072
npm publish --provenance --access public --verbose
7173
7274
- name: Pull changes from remote
73-
run: git pull origin master
75+
run: git pull --rebase --autostash origin master
7476

7577
- uses: stefanzweifel/git-auto-commit-action@v7
7678
with:
@@ -81,6 +83,3 @@ jobs:
8183
commit_user_email: lee@toones.io
8284
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
8385
token: ${{ secrets.GH_ACCESS_TOKEN }}
84-
85-
86-

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

docs/pages/_document.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ class MyDocument extends Document {
7575
}
7676
}
7777

78-
MyDocument.getInitialProps = ctx => {
78+
MyDocument.getInitialProps = (ctx) => {
7979
const pageContext = getPageContext();
80-
const page = ctx.renderPage(Component => props => (
80+
const page = ctx.renderPage((Component) => (props) => (
8181
<JssProvider registry={pageContext.sheetsRegistry} generateClassName={pageContext.generateClassName}>
8282
<Component pageContext={pageContext} {...props} />
8383
</JssProvider>

docs/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Layout from '../utils/layout';
1010
import withRoot from '../utils/withRoot';
1111
import { withStyles } from 'tss-react/mui';
1212

13-
const styles = theme => ({
13+
const styles = (theme) => ({
1414
stepIcon: {
1515
fontSize: '30px',
1616
marginRight: theme.spacing.unit * 2,

docs/utils/CodeSnippet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'prismjs/components/prism-bash';
77
import Paper from '@mui/material/Paper';
88
import { withStyles } from 'tss-react/mui';
99

10-
const styles = theme => ({});
10+
const styles = (theme) => ({});
1111

1212
class CodeSnippet extends React.Component {
1313
static propTypes = {

docs/utils/Menu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import ListItem from '@mui/material/ListItem';
77
import ListItemText from '@mui/material/ListItemText';
88
import ListSubheader from '@mui/material/ListSubheader';
99

10-
const styles = theme => ({
10+
const styles = (theme) => ({
1111
list: {
1212
width: 250,
1313
},
@@ -26,7 +26,7 @@ const sandboxes = [
2626
{ name: 'Resizable Columns', href: 'https://codesandbox.io/embed/q8w3230qpj?autoresize=1&hidenavigation=1' },
2727
];
2828

29-
const SandboxItem = props => (
29+
const SandboxItem = (props) => (
3030
<ListItem button>
3131
<ListItemText onClick={() => window.open(props.href, '_blank')} primary={props.name} />
3232
</ListItem>
@@ -50,7 +50,7 @@ class Menu extends React.Component {
5050
Examples
5151
</ListSubheader>
5252
}>
53-
{sandboxes.map(item => (
53+
{sandboxes.map((item) => (
5454
<SandboxItem href={item.href} name={item.name} />
5555
))}
5656
</List>

docs/utils/layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Menu from './Menu';
1515
/* eslint-disable import/no-webpack-loader-syntax */
1616
import lightTheme from '!raw-loader!prismjs/themes/prism.css';
1717

18-
const styles = theme => ({
18+
const styles = (theme) => ({
1919
appBar: {
2020
backgroundColor: '#23232f',
2121
},

docs/utils/withRoot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function withRoot(Component) {
3333
pageContext: PropTypes.object,
3434
};
3535

36-
WithRoot.getInitialProps = ctx => {
36+
WithRoot.getInitialProps = (ctx) => {
3737
if (Component.getInitialProps) {
3838
return Component.getInitialProps(ctx);
3939
}

0 commit comments

Comments
 (0)