This commit is contained in:
2019-03-14 15:16:11 -07:00
commit 8aa4af62af
11 changed files with 7467 additions and 0 deletions

35
.eslintrc.js Normal file
View File

@@ -0,0 +1,35 @@
/* eslint-env node */
module.exports = {
parserOptions: {
ecmaVersion: 8,
sourceType: 'module',
},
env: { browser: true },
extends: ['airbnb', 'prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error',
'import/order': [
'error', {
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index'
]
}
],
'import/no-extraneous-dependencies': [
'error', {
devDependencies: [
'test/**',
'src/test/**',
],
'optionalDependencies': false,
'peerDependencies': false
}
],
}
}

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
node_modules
dist

15
README.md Normal file
View File

@@ -0,0 +1,15 @@
# global_state_playground
> Created by [create-poi-app](https://poi.js.org).
## Project Scripts
### `npm run build`
Build app for production to `./dist` folder.
### `npm run dev`
Start a dev server to preview your app.

11
babel.config.js Normal file
View File

@@ -0,0 +1,11 @@
/* eslint-env node */
module.exports = {
presets: [
// Our default preset
'poi/babel',
],
plugins: [
// This adds Hot Reloading support
'react-hot-loader/babel',
],
};

31
package.json Normal file
View File

@@ -0,0 +1,31 @@
{
"name": "global_state_playground",
"private": true,
"scripts": {
"build": "poi --prod",
"start": "poi --serve",
"lint": "eslint ."
},
"prettier": {
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5"
},
"dependencies": {
"immer": "^2.1.3",
"react": "^16.8.4",
"react-dom": "^16.8.4"
},
"devDependencies": {
"@poi/plugin-eslint": "^12.0.0",
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.11.0",
"poi": "^12.4.2",
"prettier": "^1.16.4"
}
}

5
poi.config.js Normal file
View File

@@ -0,0 +1,5 @@
/* eslint-env node */
module.exports = {
entry: 'src/index',
plugins: ['@poi/plugin-eslint'],
};

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

0
src/assets/css/style.css Normal file
View File

5
src/index.js Normal file
View File

@@ -0,0 +1,5 @@
import ReactDOM from 'react-dom';
import './assets/css/style.css';
import App from './views/App';
ReactDOM.render(App, document.getElementById('app'));

5
src/views/App.jsx Normal file
View File

@@ -0,0 +1,5 @@
import React from 'react';
const App = () => <div>Hello World!</div>;
export default App();

7358
yarn.lock Normal file

File diff suppressed because it is too large Load Diff