update: apply eslint and move hardcoded values to .env
.editorconfig
0 → 100644
.eslintignore
0 → 100644
.eslintrc.json
0 → 100644
{ | ||
"name": "botc-frontend", | ||
"version": "0.0.1", | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix" | ||
}, | ||
"dependencies": { | ||
"@material-ui/core": "^3.9.2", | ||
"@material-ui/icons": "^3.0.2", | ||
"axios": "^0.19.0", | ||
"chart.js": "^2.7.3", | ||
"chartist": "^0.11.0", | ||
"eslint": "^6.6.0", | ||
"eslint-config-airbnb": "^18.0.1", | ||
"eslint-config-prettier": "^6.6.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"eslint-plugin-react": "^7.14.3", | ||
"eslint-plugin-react-hooks": "^1.7.0", | ||
"history": "^4.10.1", | ||
"perfect-scrollbar": "^1.4.0", | ||
"prettier": "^1.19.1", | ||
"prop-types": "^15.7.2", | ||
"qrcode.react": "^0.9.3", | ||
"react": "^16.11.0", | ||
"react-bootstrap-sweetalert": "^4.4.1", | ||
... | ... | @@ -23,15 +41,6 @@ |
"redux-actions": "^2.6.4", | ||
"redux-thunk": "^2.3.0" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
"extends": "react-app" | ||
}, | ||
"browserslist": [ | ||
">0.2%", | ||
"not dead", | ||
... | ... | @@ -39,6 +48,19 @@ |
"not op_mini all" | ||
], | ||
"devDependencies": { | ||
"husky": "^3.1.0", | ||
"lint-staged": "^9.5.0", | ||
"redux-devtools-extension": "^2.13.8" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx}": [ | ||
"eslint --fix", | ||
"git add" | ||
] | ||
} | ||
} | ||
\ No newline at end of file |
src/.env.example
0 → 100644
src/App.js
deleted
100644 → 0
src/App.jsx
0 → 100644