|
|
@@ -86,7 +86,9 @@
|
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
|
"start": "./node_modules/webpack-dev-server/bin/webpack-dev-server.js",
|
|
|
"build": "NODE_ENV=\"production\" webpack",
|
|
|
- "build-and-analyze": "ENABLE_ANALYZER=true NODE_ENV=\"production\" ./node_modules/webpack/bin/webpack.js"
|
|
|
+ "build-and-analyze": "ENABLE_ANALYZER=true NODE_ENV=\"production\" ./node_modules/webpack/bin/webpack.js",
|
|
|
+ "prepare": "cd .. && husky install dashboard/.husky",
|
|
|
+ "lint-staged": "lint-staged"
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
"@babel/core": "^7.15.0",
|
|
|
@@ -94,6 +96,7 @@
|
|
|
"@babel/preset-env": "^7.15.0",
|
|
|
"@babel/preset-react": "^7.14.5",
|
|
|
"@babel/preset-typescript": "^7.15.0",
|
|
|
+ "@ianvs/prettier-plugin-sort-imports": "^4.1.1",
|
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
|
|
"@porter-dev/api-contracts": "^0.2.28",
|
|
|
"@testing-library/jest-dom": "^4.2.4",
|
|
|
@@ -128,14 +131,25 @@
|
|
|
"@types/traverse": "^0.6.32",
|
|
|
"@types/uuid": "^9.0.1",
|
|
|
"@types/webpack-dev-server": "^3.11.5",
|
|
|
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
|
+ "@typescript-eslint/parser": "^6.8.0",
|
|
|
"babel-loader": "^8.2.2",
|
|
|
"babel-plugin-lodash": "^3.3.4",
|
|
|
"babel-plugin-styled-components": "^1.13.3",
|
|
|
"cronstrue": "^2.28.0",
|
|
|
"css-loader": "^5.2.6",
|
|
|
+ "eslint": "^8.51.0",
|
|
|
+ "eslint-config-prettier": "^9.0.0",
|
|
|
+ "eslint-config-standard-with-typescript": "^39.1.1",
|
|
|
+ "eslint-plugin-import": "^2.28.1",
|
|
|
+ "eslint-plugin-n": "^16.2.0",
|
|
|
+ "eslint-plugin-promise": "^6.1.1",
|
|
|
+ "eslint-plugin-react": "^7.33.2",
|
|
|
"file-loader": "^6.1.0",
|
|
|
"html-webpack-plugin": "^4.5.0",
|
|
|
- "prettier": "2.2.1",
|
|
|
+ "husky": "^8.0.3",
|
|
|
+ "lint-staged": "^15.0.2",
|
|
|
+ "prettier": "^3.0.3",
|
|
|
"qs": "^6.9.4",
|
|
|
"react-beautiful-dnd": "^13.1.1",
|
|
|
"react-collapse": "^5.1.1",
|
|
|
@@ -150,5 +164,14 @@
|
|
|
"webpack-bundle-analyzer": "^4.4.2",
|
|
|
"webpack-cli": "^3.3.12",
|
|
|
"webpack-dev-server": "^3.11.0"
|
|
|
+ },
|
|
|
+ "lint-staged": {
|
|
|
+ "**/*.{js,ts,jsx,tsx}": [
|
|
|
+ "eslint --fix",
|
|
|
+ "prettier --write"
|
|
|
+ ],
|
|
|
+ "**/*.(md|json)": [
|
|
|
+ "prettier --write"
|
|
|
+ ]
|
|
|
}
|
|
|
-}
|
|
|
+}
|