Skip to content

Commit 3ab2d3a

Browse files
Bump node dependencies with 23 updates. Migrate to eslint 9 and add react 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>
1 parent 8dcaaac commit 3ab2d3a

File tree

6 files changed

+1290
-1053
lines changed

6 files changed

+1290
-1053
lines changed

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ updates:
1717
directory: '/'
1818
schedule:
1919
interval: 'weekly'
20+
ignore:
21+
- dependency-name: 'react'
22+
update-types: ["version-update:semver-major"]
23+
- dependency-name: 'react-dom'
24+
update-types: ["version-update:semver-major"]
2025
groups:
2126
all-node-dependencies:
2227
patterns:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ compiled/
99
yarn-error.log
1010
.DS_Store
1111
.idea/
12+
.eslintcache

eslint.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import path from "node:path";
2+
import { fileURLToPath } from "node:url";
3+
import js from "@eslint/js";
4+
import { FlatCompat } from "@eslint/eslintrc";
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all
12+
});
13+
14+
export default [{
15+
ignores: ["./.gitignore"],
16+
}, ...compat.extends("./.config/.eslintrc").map(config => ({
17+
...config,
18+
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
19+
}))];

package.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "yarn clean && yarn typecheck && yarn bundle",
1111
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
1212
"clean": "rimraf ./dist ./compiled",
13-
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx ./src",
13+
"lint": "eslint --cache ./src",
1414
"typecheck": "tsc -p ./tsconfig.build.json",
1515
"test": "jest --notify --watch",
1616
"test:ci": "jest",
@@ -30,28 +30,30 @@
3030
"tslib": "^2.8.0"
3131
},
3232
"devDependencies": {
33-
"@grafana/data": "11.3.0",
33+
"@eslint/eslintrc": "^3.2.0",
34+
"@eslint/js": "^9.18.0",
35+
"@grafana/data": "11.4.0",
3436
"@grafana/eslint-config": "^8.0.0",
35-
"@grafana/runtime": "11.3.0",
37+
"@grafana/runtime": "11.4.0",
3638
"@grafana/tsconfig": "^2.0.0",
37-
"@grafana/ui": "11.3.0",
38-
"@rollup/plugin-node-resolve": "^15.3.0",
39+
"@grafana/ui": "11.4.0",
40+
"@rollup/plugin-node-resolve": "^16.0.0",
3941
"@stylistic/eslint-plugin-ts": "^2.9.0",
4042
"@swc/core": "^1.7.40",
4143
"@swc/jest": "^0.2.36",
4244
"@testing-library/dom": "^10.4.0",
4345
"@testing-library/jest-dom": "^6.6.2",
44-
"@testing-library/react": "16.0.1",
46+
"@testing-library/react": "16.2.0",
4547
"@testing-library/react-hooks": "^8.0.1",
4648
"@types/jest": "29.5.14",
47-
"@types/react": "18.3.12",
48-
"@types/react-dom": "18.3.1",
49+
"@types/react": "19.0.7",
50+
"@types/react-dom": "19.0.3",
4951
"@types/semver": "^7.5.8",
5052
"@typescript-eslint/eslint-plugin": "^8.12.0",
5153
"@typescript-eslint/parser": "^8.12.0",
5254
"esbuild": "^0.24.0",
53-
"eslint": "^8.57.1",
54-
"eslint-config-prettier": "^9.1.0",
55+
"eslint": "^9.18.0",
56+
"eslint-config-prettier": "^10.0.1",
5557
"eslint-plugin-jsdoc": "^50.4.3",
5658
"eslint-plugin-react": "^7.37.2",
5759
"eslint-plugin-react-hooks": "^5.0.0",
@@ -61,12 +63,12 @@
6163
"node-notifier": "^10.0.1",
6264
"react": "18.3.1",
6365
"react-dom": "18.3.1",
64-
"react-router-dom": "^6.27.0",
66+
"react-router-dom": "^7.1.3",
6567
"rimraf": "^6.0.1",
6668
"rollup": "^4.24.2",
6769
"rollup-plugin-dts": "^6.1.1",
6870
"rollup-plugin-esbuild": "^6.1.1",
69-
"rollup-plugin-node-externals": "^7.1.3",
70-
"typescript": "5.6.3"
71+
"rollup-plugin-node-externals": "^8.0.0",
72+
"typescript": "5.7.3"
7173
}
7274
}

0 commit comments

Comments
 (0)