fix(v2): examples should use Node 14 by default on CodeSandbox + regen with alpha72 (#4574)

* codesandbox: use node 14 by default

* Regenerate examples

* Add example json files to prettierrignore
This commit is contained in:
Sébastien Lorber 2021-04-07 18:28:06 +02:00 committed by GitHub
parent 44029128fa
commit 3bcd0a6ab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 1790 additions and 1601 deletions

View file

@ -8,7 +8,7 @@
*/
const OFF = 0;
// const WARNING = 1;
const WARNING = 1;
const ERROR = 2;
module.exports = {
@ -19,7 +19,7 @@ module.exports = {
jest: true,
node: true,
},
parser: '@babel/eslint-parser',
parser: 'babel-eslint',
parserOptions: {
allowImportExportEverywhere: true,
},

View file

@ -14,7 +14,7 @@ $ yarn
$ yarn start
```
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
### Build

View file

@ -19,24 +19,24 @@
"dev": "docusaurus start"
},
"dependencies": {
"@docusaurus/core": "2.0.0-alpha.71",
"@docusaurus/preset-classic": "2.0.0-alpha.71",
"@docusaurus/core": "2.0.0-alpha.72",
"@docusaurus/preset-classic": "2.0.0-alpha.72",
"@mdx-js/react": "^1.6.21",
"clsx": "^1.1.1",
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"devDependencies": {
"@babel/eslint-parser": "^7.13.10",
"eslint": "^7.20.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^6.15.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.7.1",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"prettier": "^2.2.1",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"prettier": "^2.0.2",
"stylelint": "^13.2.1"
},
"browserslist": {
@ -52,4 +52,4 @@
]
},
"description": "Docusaurus example project (facebook template)"
}
}

View file

@ -2,5 +2,9 @@
"infiniteLoopProtection": true,
"hardReloadOnChange": true,
"view": "browser",
"template": "docusaurus"
}
"template": "docusaurus",
"node": "14",
"container": {
"node": "14"
}
}

File diff suppressed because it is too large Load diff