Skip to content

Commit 3f5d9b4

Browse files
Bump the all-node-dependencies group across 1 directory with 4 updates (#482)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kevin Yu <kevinwcyu@users.noreply.github.com>
1 parent 1098317 commit 3f5d9b4

File tree

6 files changed

+229
-285
lines changed

6 files changed

+229
-285
lines changed

.eslintignore

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

.eslintrc

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

.prettierrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
// Prettier configuration provided by Grafana scaffolding
3-
...require("./.config/.prettierrc.js")
4-
};
3+
...require('./.config/.prettierrc.js'),
4+
};

eslint.config.mjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
{
16+
ignores: ['**/node_modules', '**/build', '**/dist'],
17+
},
18+
...compat.extends('./.config/.eslintrc'),
19+
{
20+
rules: {
21+
'deprecation/deprecation': 'off',
22+
},
23+
},
24+
{
25+
files: ['src/**/*.{ts,tsx,js,jsx}'],
26+
rules: {
27+
'@typescript-eslint/no-deprecated': 'warn',
28+
},
29+
},
30+
];

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
77
"dev": "webpack -w -c ./.config/webpack/webpack.config.ts --env development",
88
"generate-release-notes": "PREV_TAG=$(git tag | tail -n 1) && gh api --method POST /repos/grafana/opensearch-datasource/releases/generate-notes -f tag_name=v${npm_package_version} -f target_commitish=main -f previous_tag_name=${PREV_TAG} | jq -r .body",
9-
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .",
9+
"lint": "eslint --cache .",
1010
"lint:fix": "yarn run lint --fix",
1111
"server": "docker compose up --build",
1212
"sign": "npx --yes @grafana/sign-plugin@latest",
@@ -37,11 +37,13 @@
3737
},
3838
"devDependencies": {
3939
"@babel/core": "^7.26.0",
40+
"@eslint/eslintrc": "^3.1.0",
41+
"@eslint/js": "^9.13.0",
4042
"@grafana/eslint-config": "^8.0.0",
4143
"@grafana/tsconfig": "^2.0.0",
4244
"@reduxjs/toolkit": "^2.3.0",
4345
"@stylistic/eslint-plugin-ts": "^2.9.0",
44-
"@swc/core": "^1.7.39",
46+
"@swc/core": "^1.7.40",
4547
"@swc/helpers": "^0.5.13",
4648
"@swc/jest": "^0.2.36",
4749
"@testing-library/dom": "^10.4.0",
@@ -52,7 +54,7 @@
5254
"@types/jest": "^29.5.14",
5355
"@types/lodash": "^4.17.12",
5456
"@types/lucene": "^2.1.7",
55-
"@types/node": "^22.8.0",
57+
"@types/node": "^22.8.1",
5658
"@types/prismjs": "1.26.5",
5759
"@types/react": "^18.3.12",
5860
"@types/react-router-dom": "^5.2.0",
@@ -63,7 +65,7 @@
6365
"copy-webpack-plugin": "^12.0.2",
6466
"cspell": "8.15.4",
6567
"css-loader": "^7.1.2",
66-
"eslint": "^8.57.1",
68+
"eslint": "^9.13.0",
6769
"eslint-config-prettier": "^9.1.0",
6870
"eslint-plugin-deprecation": "^3.0.0",
6971
"eslint-plugin-jsdoc": "^50.4.3",
@@ -81,7 +83,7 @@
8183
"lefthook": "^1.8.1",
8284
"prettier": "^3.3.3",
8385
"prismjs": "1.29.0",
84-
"react-router-dom": "^5.3.4",
86+
"react-router-dom": "^6.27.0",
8587
"react-select-event": "^5.5.1",
8688
"replace-in-file-webpack-plugin": "^1.0.6",
8789
"sass": "1.80.4",

0 commit comments

Comments
 (0)