Skip to content

Commit 29af682

Browse files
committed
ESLINT & Prettier Configuration Added
1 parent f0fdc74 commit 29af682

File tree

6 files changed

+84
-5
lines changed

6 files changed

+84
-5
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

.eslintrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"env": {
3+
"commonjs": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"react-app",
9+
"plugin:prettier/recommended"
10+
],
11+
"parserOptions": {
12+
"ecmaVersion": 2018
13+
},
14+
"rules": {
15+
"no-console": "error"
16+
}
17+
}

.lintstagedrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"lint-staged": {
3+
"*.+(js|jsx)": ["eslint --fix", "git add"],
4+
"*.+(json|css|md)": ["prettier --write", "git add"]
5+
}
6+
}

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 85,
3+
"arrowParens": "always",
4+
"tabWidth": 2,
5+
"singleQuote": true
6+
}

package-lock.json

+51-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "edly-panel",
2+
"name": "panel",
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
@@ -8,10 +8,12 @@
88
"@fortawesome/react-fontawesome": "^0.1.4",
99
"axios": "^0.19.0",
1010
"bootstrap-scss": "^4.3.1",
11+
"chart.js": "^2.8.0",
1112
"history": "^4.10.1",
1213
"node-sass": "^4.12.0",
1314
"react": "^16.9.0",
1415
"react-bootstrap": "^1.0.0-beta.12",
16+
"react-chartjs-2": "^2.8.0",
1517
"react-dom": "^16.9.0",
1618
"react-redux": "^7.1.1",
1719
"react-router-dom": "^5.0.1",

0 commit comments

Comments
 (0)