Skip to content

Commit

Permalink
Bump node dependencies with 23 updates. Migrate to eslint 9 and add r…
Browse files Browse the repository at this point in the history
…eact major versions to dependabot ignore (#57)

* Bump the all-node-dependencies group across 1 directory with 23 updates
* Migrates to eslint 9 (adds eslingconfig file)
* Add react and react-dom major version updates to dependabot ignore

Bumps the all-node-dependencies group with 23 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@grafana/data](https://github.com/grafana/grafana/tree/HEAD/packages/grafana-data) | `11.3.0` | `11.4.0` |
| [@grafana/runtime](https://github.com/grafana/grafana/tree/HEAD/packages/grafana-runtime) | `11.3.0` | `11.4.0` |
| [@grafana/ui](https://github.com/grafana/grafana/tree/HEAD/packages/grafana-ui) | `11.3.0` | `11.4.0` |
| [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) | `15.3.0` | `16.0.0` |
| [@stylistic/eslint-plugin-ts](https://github.com/eslint-stylistic/eslint-stylistic/tree/HEAD/packages/eslint-plugin-ts) | `2.10.1` | `2.13.0` |
| [@swc/core](https://github.com/swc-project/swc) | `1.7.42` | `1.10.8` |
| [@testing-library/react](https://github.com/testing-library/react-testing-library) | `16.0.1` | `16.2.0` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.12.2` | `8.20.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.12.2` | `8.20.0` |
| [esbuild](https://github.com/evanw/esbuild) | `0.24.0` | `0.24.2` |
| [eslint](https://github.com/eslint/eslint) | `8.57.1` | `9.18.0` |
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | `9.1.0` | `10.0.1` |
| [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) | `50.4.3` | `50.6.2` |
| [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) | `7.37.2` | `7.37.4` |
| [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) | `5.0.0` | `5.1.0` |
| [react](https://github.com/facebook/react/tree/HEAD/packages/react) | `18.3.1` | `19.0.0` |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `18.3.12` | `19.0.7` |
| [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) | `18.3.1` | `19.0.0` |
| [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) | `18.3.1` | `19.0.3` |
| [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) | `6.27.0` | `7.1.3` |
| [rollup](https://github.com/rollup/rollup) | `4.24.3` | `4.31.0` |
| [rollup-plugin-node-externals](https://github.com/Septh/rollup-plugin-node-externals) | `7.1.3` | `8.0.0` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.6.3` | `5.7.3` |
---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: idastambuk <ida.stambuk@grafana.com>
  • Loading branch information
dependabot[bot] and idastambuk authored Jan 23, 2025
1 parent 8dcaaac commit 3ab2d3a
Show file tree
Hide file tree
Showing 6 changed files with 1,290 additions and 1,053 deletions.
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ updates:
directory: '/'
schedule:
interval: 'weekly'
ignore:
- dependency-name: 'react'
update-types: ["version-update:semver-major"]
- dependency-name: 'react-dom'
update-types: ["version-update:semver-major"]
groups:
all-node-dependencies:
patterns:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ compiled/
yarn-error.log
.DS_Store
.idea/
.eslintcache
19 changes: 19 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["./.gitignore"],
}, ...compat.extends("./.config/.eslintrc").map(config => ({
...config,
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
}))];
28 changes: 15 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "yarn clean && yarn typecheck && yarn bundle",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf ./dist ./compiled",
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx ./src",
"lint": "eslint --cache ./src",
"typecheck": "tsc -p ./tsconfig.build.json",
"test": "jest --notify --watch",
"test:ci": "jest",
Expand All @@ -30,28 +30,30 @@
"tslib": "^2.8.0"
},
"devDependencies": {
"@grafana/data": "11.3.0",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@grafana/data": "11.4.0",
"@grafana/eslint-config": "^8.0.0",
"@grafana/runtime": "11.3.0",
"@grafana/runtime": "11.4.0",
"@grafana/tsconfig": "^2.0.0",
"@grafana/ui": "11.3.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@grafana/ui": "11.4.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@stylistic/eslint-plugin-ts": "^2.9.0",
"@swc/core": "^1.7.40",
"@swc/jest": "^0.2.36",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.2",
"@testing-library/react": "16.0.1",
"@testing-library/react": "16.2.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "29.5.14",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "19.0.7",
"@types/react-dom": "19.0.3",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "^8.12.0",
"@typescript-eslint/parser": "^8.12.0",
"esbuild": "^0.24.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-jsdoc": "^50.4.3",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
Expand All @@ -61,12 +63,12 @@
"node-notifier": "^10.0.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router-dom": "^6.27.0",
"react-router-dom": "^7.1.3",
"rimraf": "^6.0.1",
"rollup": "^4.24.2",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-esbuild": "^6.1.1",
"rollup-plugin-node-externals": "^7.1.3",
"typescript": "5.6.3"
"rollup-plugin-node-externals": "^8.0.0",
"typescript": "5.7.3"
}
}
Loading

0 comments on commit 3ab2d3a

Please sign in to comment.