* UI spring cleaning - fix ~570 outstanding eslint warnings - make eslint force user to correct warnings - remove .css files that are not referenced - remove dummy.tsx as it is not consumed anywhere - remove a few functions that were "dead code" (ie. not consumed anywhere) - remove commented out blocks of code that had no explanatory comments surrounding them * add prettier to pre-commit configuration * change ignoreRestSiblings to true we have a few spots in the codebase where we destructure an object key and then use something like ...restProps setting this to true allows that * upgrade from eslint 7.21.0 to 8.25.0 - add @grafana/eslint-config to dev dependencies and pre-commit eslint deps - add @grafana/eslint-config peer dependencies to package.json * fix remaining outstanding prettier warnings * enable noUnusedLocals and noUnusedParameters and fix errors related to this * make pre-commit complain about eslint warnings * import from moment-timezone instead of moment * fix react/display-name eslint warning * add eslint-plugin-react-hooks to dev deps this is a peer dependency from @grafana/eslint-config * turn off react/prop-types * temporarily turn off react-hooks/exhaustive-deps add note that it will be turned back on and fixed in next PR * fix unused import errors after rebase to dev * fix more new prettier errors * turn react/no-unescaped-entities eslint rule off * address PR comment about useReducer * remove includeTemplateGroup from src/components/AlertTemplates/AlertTemplatesForm.helper.tsx * update arg typing for refreshPageError * update handleSyncException typing * fix strict equality in containers/IntegrationSettings/parts/Autoresolve.tsx * enhance typing in components/AlertTemplates/AlertTemplatesForm.tsx * revert small change per Maxim's comment
123 lines
4 KiB
JSON
123 lines
4 KiB
JSON
{
|
|
"name": "grafana-oncall-app",
|
|
"version": "1.0.0",
|
|
"description": "Grafana OnCall Plugin",
|
|
"scripts": {
|
|
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx --max-warnings=0 ./src",
|
|
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --max-warnings=0 --quiet ./src",
|
|
"stylelint": "stylelint ./src/**/*.css",
|
|
"stylelint:fix": "stylelint --fix ./src/**/*.css",
|
|
"build": "grafana-toolkit plugin:build",
|
|
"test": "jest --verbose",
|
|
"dev": "grafana-toolkit plugin:dev",
|
|
"watch": "grafana-toolkit plugin:dev --watch",
|
|
"sign": "grafana-toolkit plugin:sign",
|
|
"ci-build:finish": "grafana-toolkit plugin:ci-build --finish",
|
|
"ci-package": "grafana-toolkit plugin:ci-package",
|
|
"ci-report": "grafana-toolkit plugin:ci-report",
|
|
"start": "yarn watch",
|
|
"plop": "plop",
|
|
"setversion": "setversion"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/grafana/oncall.git"
|
|
},
|
|
"lint-staged": {
|
|
"*.ts?(x)": [
|
|
"prettier --write",
|
|
"eslint --fix"
|
|
],
|
|
"*.js?(x)": [
|
|
"prettier --write",
|
|
"eslint --fix"
|
|
],
|
|
"*.css": [
|
|
"stylelint --fix"
|
|
]
|
|
},
|
|
"author": "Grafana Labs",
|
|
"license": "Apache-2.0",
|
|
"devDependencies": {
|
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
"@babel/plugin-proposal-decorators": "^7.18.10",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
|
|
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
|
"@babel/plugin-syntax-decorators": "^7.18.6",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
"@babel/plugin-transform-react-constant-elements": "^7.18.12",
|
|
"@babel/plugin-transform-typescript": "^7.18.12",
|
|
"@babel/preset-env": "^7.18.10",
|
|
"@babel/preset-react": "^7.18.6",
|
|
"@babel/preset-typescript": "^7.18.6",
|
|
"@grafana/data": "^9.1.1",
|
|
"@grafana/eslint-config": "^5.0.0",
|
|
"@grafana/runtime": "^9.1.1",
|
|
"@grafana/toolkit": "^9.1.1",
|
|
"@grafana/ui": "^9.1.1",
|
|
"@jest/globals": "^27.5.1",
|
|
"@testing-library/jest-dom": "^5.16.5",
|
|
"@testing-library/react": "12",
|
|
"@types/dompurify": "^2.3.4",
|
|
"@types/jest": "^27.5.1",
|
|
"@types/lodash-es": "^4.17.6",
|
|
"@types/react-copy-to-clipboard": "^5.0.4",
|
|
"@types/react-dom": "^18.0.6",
|
|
"@types/react-responsive": "^8.0.5",
|
|
"@types/react-router-dom": "^5.3.3",
|
|
"@types/react-test-renderer": "^17.0.2",
|
|
"@types/throttle-debounce": "^5.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.40.1",
|
|
"copy-webpack-plugin": "^11.0.0",
|
|
"dompurify": "^2.3.12",
|
|
"eslint": "^8.25.0",
|
|
"eslint-plugin-jsdoc": "^39.3.14",
|
|
"eslint-plugin-react": "^7.31.10",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-rulesdir": "^0.2.1",
|
|
"jest": "^27.5.1",
|
|
"jest-environment-jsdom": "^27.5.1",
|
|
"lint-staged": "^10.2.11",
|
|
"lodash-es": "^4.17.21",
|
|
"moment-timezone": "^0.5.35",
|
|
"plop": "^2.7.4",
|
|
"postcss-loader": "^7.0.1",
|
|
"react-test-renderer": "^17.0.2",
|
|
"stylelint-config-prettier": "^9.0.3",
|
|
"stylelint-prettier": "^2.0.0",
|
|
"ts-jest": "^27.1.3",
|
|
"ts-loader": "^9.3.1",
|
|
"typescript": "4.6.4",
|
|
"webpack-bundle-analyzer": "^4.6.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=14"
|
|
},
|
|
"dependencies": {
|
|
"@types/query-string": "^6.3.0",
|
|
"@types/react-transition-group": "^4.4.5",
|
|
"array-move": "^4.0.0",
|
|
"change-case": "^4.1.1",
|
|
"circular-dependency-plugin": "^5.2.2",
|
|
"dayjs": "^1.11.5",
|
|
"eslint-plugin-import": "^2.25.4",
|
|
"mobx": "5.13.0",
|
|
"mobx-react": "6.1.1",
|
|
"prettier": "^2.7.1",
|
|
"rc-table": "^7.17.1",
|
|
"react-copy-to-clipboard": "^5.0.2",
|
|
"react-draggable": "^4.4.5",
|
|
"react-emoji-render": "^1.2.4",
|
|
"react-modal": "^3.15.1",
|
|
"react-responsive": "^8.1.0",
|
|
"react-router-dom": "^5.2.0",
|
|
"react-sortable-hoc": "^1.11.0",
|
|
"react-string-replace": "^0.4.4",
|
|
"react-transition-group": "^4.4.5",
|
|
"sass-loader": "^13.0.2",
|
|
"stylelint": "^13.13.1",
|
|
"stylelint-config-standard": "^22.0.0",
|
|
"throttle-debounce": "^2.1.0"
|
|
}
|
|
}
|