Chore: Add 'import/no-extraneous-dependencies' rule for packages (#111931)
This commit is contained in:
@@ -84,7 +84,9 @@
|
||||
"xss": "^1.0.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/scenes": "6.38.0",
|
||||
"@rollup/plugin-node-resolve": "16.0.1",
|
||||
"@testing-library/react": "16.3.0",
|
||||
"@types/history": "4.7.11",
|
||||
"@types/lodash": "4.17.20",
|
||||
"@types/node": "22.17.0",
|
||||
|
||||
@@ -1,18 +1,11 @@
|
||||
import {
|
||||
ConfigOverrideRule,
|
||||
FieldColorModeId,
|
||||
FieldConfig,
|
||||
FieldConfigProperty,
|
||||
FieldConfigSource,
|
||||
PanelPlugin,
|
||||
standardEditorsRegistry,
|
||||
standardFieldConfigEditorRegistry,
|
||||
StandardOptionConfig,
|
||||
ThresholdsMode,
|
||||
} from '@grafana/data';
|
||||
|
||||
import { getPanelPlugin, mockStandardFieldConfigOptions } from '../../test';
|
||||
import { standardEditorsRegistry, standardFieldConfigEditorRegistry } from '../field/standardFieldConfigEditorRegistry';
|
||||
import { FieldConfig } from '../types/dataFrame';
|
||||
import { FieldColorModeId } from '../types/fieldColor';
|
||||
import { ConfigOverrideRule, FieldConfigProperty, FieldConfigSource } from '../types/fieldOverrides';
|
||||
import { ThresholdsMode } from '../types/thresholds';
|
||||
|
||||
import { PanelPlugin, StandardOptionConfig } from './PanelPlugin';
|
||||
import { getPanelOptionsWithDefaults, restoreCustomOverrideRules } from './getPanelOptionsWithDefaults';
|
||||
|
||||
standardFieldConfigEditorRegistry.setInit(() => mockStandardFieldConfigOptions());
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { PanelPlugin, PluginMeta, PluginType } from '@grafana/data';
|
||||
import { PanelPlugin } from '../panel/PanelPlugin';
|
||||
import { PluginMeta, PluginType } from '../types/plugin';
|
||||
|
||||
import { throwIfAngular } from './throwIfAngular';
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
"private": true,
|
||||
"version": "12.3.0-pre",
|
||||
"dependencies": {
|
||||
"react": "18.3.1",
|
||||
"terser-webpack-plugin": "5.3.14",
|
||||
"tslib": "2.8.1"
|
||||
},
|
||||
"type": "module",
|
||||
@@ -13,6 +15,7 @@
|
||||
"@swc/helpers": "^0.5.0",
|
||||
"@swc/jest": "^0.2.26",
|
||||
"@types/eslint": "9.6.1",
|
||||
"@types/react": "18.3.18",
|
||||
"@types/webpack-bundle-analyzer": "^4.7.0",
|
||||
"copy-webpack-plugin": "13.0.0",
|
||||
"eslint": "9.32.0",
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
"lodash": "4.17.21",
|
||||
"moment": "2.30.1",
|
||||
"moment-timezone": "0.5.47",
|
||||
"monaco-editor": "0.34.1",
|
||||
"monaco-promql": "1.8.0",
|
||||
"pluralize": "8.0.0",
|
||||
"prismjs": "1.30.0",
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
"glob": "^11.0.0",
|
||||
"rimraf": "6.0.1",
|
||||
"rollup": "^4.22.4",
|
||||
"rollup-plugin-copy": "3.5.0",
|
||||
"rollup-plugin-esbuild": "6.2.1",
|
||||
"rollup-plugin-node-externals": "^8.0.0",
|
||||
"typescript": "5.9.2"
|
||||
|
||||
@@ -53,12 +53,18 @@
|
||||
"test:ci": "jest --maxWorkers 4"
|
||||
},
|
||||
"dependencies": {
|
||||
"msw": "2.10.4"
|
||||
"chance": "^1.1.13",
|
||||
"jest-matcher-utils": "29.7.0",
|
||||
"lodash": "4.17.21",
|
||||
"msw": "2.10.4",
|
||||
"rxjs": "7.8.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@swc/core": "1.13.3",
|
||||
"@swc/jest": "^0.2.26",
|
||||
"@types/chance": "^1.1.7",
|
||||
"@types/jest": "29.5.14",
|
||||
"@types/lodash": "4.17.20",
|
||||
"@types/node": "22.17.0",
|
||||
"jest": "29.7.0",
|
||||
"typescript": "5.9.2"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
// This file contains the common parts of the rollup configuration that are shared across multiple packages.
|
||||
import nodeResolve from '@rollup/plugin-node-resolve';
|
||||
import { dirname, resolve } from 'node:path';
|
||||
|
||||
Reference in New Issue
Block a user