cooldowns and linting
This commit is contained in:
@@ -33,6 +33,8 @@ module.exports = {
|
||||
'no-plusplus': [0],
|
||||
'no-await-in-loop': [0],
|
||||
'indent': ['error', 4],
|
||||
'keyword-spacing': ['error'],
|
||||
'key-spacing': ['error'],
|
||||
|
||||
// for preact
|
||||
"react/react-in-jsx-scope": [0],
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"start": "parcel index.html --port 40080",
|
||||
"build": "rm -rf dist && parcel build index.html",
|
||||
"lint": "eslint --fix src/",
|
||||
"lint": "eslint --fix --ext .jsx src/",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
|
||||
@@ -30,8 +30,8 @@ const addState = connect(
|
||||
|
||||
function renderBody(props){
|
||||
const {game, setGame} = props;
|
||||
if(game){
|
||||
return(
|
||||
if (game){
|
||||
return (
|
||||
<div>
|
||||
<GameContainer />
|
||||
<button
|
||||
|
||||
@@ -126,7 +126,7 @@ function GamePanel(props) {
|
||||
|
||||
// style={{ "min-height": "100%" }}
|
||||
function phaseText(phase){
|
||||
switch(phase){
|
||||
switch (phase){
|
||||
case 'Skill':
|
||||
return "Choose abilities"
|
||||
case 'Target':
|
||||
|
||||
Reference in New Issue
Block a user