mirror of
https://github.com/grafana/grafana.git
synced 2025-09-11 21:33:19 +08:00
Chore: Remove @grafana/tsconfig (#109186)
* Chore: Remove @grafana/tsconfig * update codeowners * revert changes to grafana-plugin-configs
This commit is contained in:
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
@ -685,6 +685,7 @@
|
||||
/project.json @grafana/frontend-ops
|
||||
/.nxignore @grafana/frontend-ops
|
||||
/tsconfig.json @grafana/frontend-ops
|
||||
/scripts/tsconfig.base.json @grafana/frontend-ops
|
||||
/.editorconfig @grafana/frontend-ops
|
||||
/eslint.config.js @grafana/frontend-ops
|
||||
/.betterer.eslint.config.js @grafana/frontend-ops
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"extends": "../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"types": ["cypress"],
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"extends": "@grafana/tsconfig/base.json",
|
||||
"include": ["**/*.ts", "cypress/support/e2e.js", "cypress/support/index.d.ts"]
|
||||
}
|
||||
|
@ -92,7 +92,6 @@
|
||||
"@grafana/eslint-plugin": "link:./packages/grafana-eslint-rules",
|
||||
"@grafana/plugin-e2e": "2.1.7",
|
||||
"@grafana/test-utils": "workspace:*",
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@manypkg/get-packages": "^3.0.0",
|
||||
"@npmcli/package-json": "^6.0.0",
|
||||
"@playwright/test": "1.54.1",
|
||||
|
@ -62,7 +62,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/test-utils": "workspace:*",
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@rtk-query/codegen-openapi": "^2.0.0",
|
||||
"@testing-library/jest-dom": "^6.6.3",
|
||||
"@testing-library/react": "^16.3.0",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"declarationDir": "./dist/types",
|
||||
"emitDeclarationOnly": true,
|
||||
@ -8,7 +10,6 @@
|
||||
"moduleResolution": "bundler"
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": ["typings/jest", "../../public/app/types/*.d.ts", "../grafana-ui/src/types/*.d.ts", "src/**/*.ts*"],
|
||||
"ts-node": {
|
||||
"compilerOptions": {
|
||||
|
@ -84,7 +84,6 @@
|
||||
"xss": "^1.0.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@rollup/plugin-node-resolve": "16.0.1",
|
||||
"@types/history": "4.7.11",
|
||||
"@types/lodash": "4.17.20",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"declarationDir": "./dist/types",
|
||||
"emitDeclarationOnly": true,
|
||||
@ -7,7 +9,6 @@
|
||||
"rootDirs": ["."]
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": [
|
||||
"src/**/*.ts*",
|
||||
"typings/jest",
|
||||
|
@ -49,7 +49,6 @@
|
||||
"rollup-plugin-node-externals": "^8.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"semver": "^7.7.0",
|
||||
"tslib": "2.8.1",
|
||||
"typescript": "5.9.2"
|
||||
|
@ -1,11 +1,12 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"declarationDir": "./dist/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"isolatedModules": true,
|
||||
"rootDirs": ["."]
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"module": "Node16",
|
||||
"moduleResolution": "Node16",
|
||||
"declaration": false,
|
||||
"allowJs": true,
|
||||
"outDir": "./dist"
|
||||
},
|
||||
"extends": "@grafana/tsconfig"
|
||||
}
|
||||
}
|
||||
|
@ -59,7 +59,6 @@
|
||||
"@babel/core": "7.28.0",
|
||||
"@babel/preset-env": "7.28.0",
|
||||
"@babel/preset-react": "7.27.1",
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@rollup/plugin-node-resolve": "16.0.1",
|
||||
"@testing-library/dom": "10.4.1",
|
||||
"@testing-library/jest-dom": "^6.1.2",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"baseUrl": "./",
|
||||
"declarationDir": "./dist/types",
|
||||
@ -8,6 +10,5 @@
|
||||
"rootDirs": ["."]
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": ["src/**/*.ts*", "../../public/app/types/*.d.ts", "../grafana-ui/src/types/*.d.ts"]
|
||||
}
|
||||
|
@ -63,7 +63,6 @@
|
||||
"react-i18next": "^15.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@types/react": "18.3.18",
|
||||
"rollup": "^4.22.4",
|
||||
"rollup-plugin-copy": "3.5.0",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"declarationDir": "./dist/types",
|
||||
"emitDeclarationOnly": true,
|
||||
@ -7,6 +9,5 @@
|
||||
"rootDirs": ["."]
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": ["src/**/*.ts*"]
|
||||
}
|
||||
|
@ -30,7 +30,6 @@
|
||||
"tslib": "2.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@testing-library/dom": "10.4.1",
|
||||
"@testing-library/jest-dom": "^6.1.2",
|
||||
"@testing-library/react": "16.3.0",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"baseUrl": "./",
|
||||
"declarationDir": "./compiled",
|
||||
@ -9,7 +11,6 @@
|
||||
"rootDirs": ["."]
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": [
|
||||
"../../public/test/setupTests.ts",
|
||||
"../../public/app/types/*.d.ts",
|
||||
|
@ -78,7 +78,6 @@
|
||||
"uuid": "11.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@rollup/plugin-dynamic-import-vars": "2.1.5",
|
||||
"@rollup/plugin-image": "3.0.3",
|
||||
"@rollup/plugin-json": "6.1.0",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"alwaysStrict": true,
|
||||
"declarationDir": "./dist/types",
|
||||
@ -11,7 +13,6 @@
|
||||
"moduleResolution": "bundler"
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": [
|
||||
"../../public/test/setupTests.ts",
|
||||
"../../public/app/types/*.d.ts",
|
||||
|
@ -67,7 +67,6 @@
|
||||
"tslib": "2.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@rollup/plugin-node-resolve": "16.0.1",
|
||||
"@rollup/plugin-terser": "0.4.4",
|
||||
"@testing-library/dom": "10.4.1",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"baseUrl": "./",
|
||||
"declarationDir": "./dist/types",
|
||||
@ -9,7 +11,6 @@
|
||||
"rootDirs": ["."]
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": [
|
||||
"../../public/test/setupTests.ts",
|
||||
"../../public/app/types/jquery/*.ts",
|
||||
|
@ -36,7 +36,6 @@
|
||||
"postpack": "mv package.json.bak package.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@rollup/plugin-node-resolve": "16.0.1",
|
||||
"esbuild": "0.25.8",
|
||||
"glob": "^11.0.0",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"declarationDir": "./dist/types",
|
||||
"emitDeclarationOnly": true,
|
||||
@ -7,6 +9,5 @@
|
||||
"rootDirs": ["."]
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": ["src/**/*.ts*"]
|
||||
}
|
||||
|
@ -36,7 +36,6 @@
|
||||
"uuid": "11.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@testing-library/dom": "10.4.1",
|
||||
"@testing-library/jest-dom": "^6.1.2",
|
||||
"@testing-library/react": "16.3.0",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"baseUrl": "./",
|
||||
"declarationDir": "./compiled",
|
||||
@ -9,6 +11,5 @@
|
||||
"rootDirs": ["."]
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": ["src/**/*.ts*", "../../public/app/types/*.d.ts", "../grafana-ui/src/types/*.d.ts"]
|
||||
}
|
||||
|
@ -56,7 +56,6 @@
|
||||
"msw": "2.10.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@swc/core": "1.13.3",
|
||||
"@swc/jest": "^0.2.26",
|
||||
"@types/jest": "29.5.14",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"declarationDir": "./compiled",
|
||||
"emitDeclarationOnly": true,
|
||||
@ -14,6 +16,5 @@
|
||||
}
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": ["src/**/*.ts*"]
|
||||
}
|
||||
|
@ -136,7 +136,6 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.28.0",
|
||||
"@faker-js/faker": "^9.0.0",
|
||||
"@grafana/tsconfig": "^2.0.0",
|
||||
"@rollup/plugin-node-resolve": "16.0.1",
|
||||
"@storybook/addon-a11y": "^8.6.2",
|
||||
"@storybook/addon-actions": "^8.6.2",
|
||||
|
@ -1,5 +1,7 @@
|
||||
{
|
||||
"extends": "../../scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"jsx": "react-jsx",
|
||||
"baseUrl": "./",
|
||||
"declarationDir": "./dist/types",
|
||||
@ -9,7 +11,6 @@
|
||||
"rootDirs": ["."]
|
||||
},
|
||||
"exclude": ["dist/**/*"],
|
||||
"extends": "@grafana/tsconfig",
|
||||
"include": ["../../public/test/setupTests.ts", "../../public/app/types/*.d.ts", "src/**/*.ts*"],
|
||||
// override for storybook which uses ts-node to compile main.ts / preview.ts files.
|
||||
"ts-node": {
|
||||
|
26
scripts/tsconfig.base.json
Normal file
26
scripts/tsconfig.base.json
Normal file
@ -0,0 +1,26 @@
|
||||
// Base config file for all Typescript prjects in the Grafana monorepo
|
||||
{
|
||||
"compilerOptions": {
|
||||
"alwaysStrict": true,
|
||||
"strict": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"downlevelIteration": true,
|
||||
"esModuleInterop": true,
|
||||
"experimentalDecorators": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"importHelpers": true,
|
||||
"jsx": "react",
|
||||
"lib": ["dom", "dom.iterable", "es2022"],
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"noEmitHelpers": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitThis": true,
|
||||
"noUnusedLocals": true,
|
||||
"pretty": true,
|
||||
"skipLibCheck": true,
|
||||
"sourceMap": true,
|
||||
"target": "es2018"
|
||||
}
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"extends": "./scripts/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "react-jsx",
|
||||
"baseUrl": "public/",
|
||||
@ -22,7 +23,6 @@
|
||||
"moduleResolution": "Node"
|
||||
}
|
||||
},
|
||||
"extends": "@grafana/tsconfig/base.json",
|
||||
"include": [
|
||||
"public/app/**/*.ts*",
|
||||
"public/swagger/**/*.ts*",
|
||||
|
13
yarn.lock
13
yarn.lock
@ -3027,7 +3027,6 @@ __metadata:
|
||||
dependencies:
|
||||
"@faker-js/faker": "npm:^9.8.0"
|
||||
"@grafana/test-utils": "workspace:*"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@rtk-query/codegen-openapi": "npm:^2.0.0"
|
||||
"@testing-library/jest-dom": "npm:^6.6.3"
|
||||
"@testing-library/react": "npm:^16.3.0"
|
||||
@ -3107,7 +3106,6 @@ __metadata:
|
||||
"@braintree/sanitize-url": "npm:7.0.1"
|
||||
"@grafana/i18n": "npm:12.2.0-pre"
|
||||
"@grafana/schema": "npm:12.2.0-pre"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@leeoniya/ufuzzy": "npm:1.0.18"
|
||||
"@rollup/plugin-node-resolve": "npm:16.0.1"
|
||||
"@types/d3-interpolate": "npm:^3.0.0"
|
||||
@ -3158,7 +3156,6 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@grafana/e2e-selectors@workspace:packages/grafana-e2e-selectors"
|
||||
dependencies:
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@rollup/plugin-node-resolve": "npm:16.0.1"
|
||||
"@types/node": "npm:22.17.0"
|
||||
"@types/semver": "npm:7.7.0"
|
||||
@ -3256,7 +3253,6 @@ __metadata:
|
||||
"@babel/preset-react": "npm:7.27.1"
|
||||
"@emotion/css": "npm:11.13.5"
|
||||
"@grafana/data": "npm:12.2.0-pre"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@grafana/ui": "npm:12.2.0-pre"
|
||||
"@leeoniya/ufuzzy": "npm:1.0.18"
|
||||
"@rollup/plugin-node-resolve": "npm:16.0.1"
|
||||
@ -3311,7 +3307,6 @@ __metadata:
|
||||
resolution: "@grafana/i18n@workspace:packages/grafana-i18n"
|
||||
dependencies:
|
||||
"@formatjs/intl-durationformat": "npm:^0.7.0"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@types/react": "npm:18.3.18"
|
||||
"@typescript-eslint/utils": "npm:^8.33.1"
|
||||
fast-deep-equal: "npm:^3.1.3"
|
||||
@ -3382,7 +3377,6 @@ __metadata:
|
||||
"@grafana/plugin-ui": "npm:0.10.8"
|
||||
"@grafana/runtime": "npm:12.2.0-pre"
|
||||
"@grafana/schema": "npm:12.2.0-pre"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@grafana/ui": "npm:12.2.0-pre"
|
||||
"@testing-library/dom": "npm:10.4.1"
|
||||
"@testing-library/jest-dom": "npm:^6.1.2"
|
||||
@ -3490,7 +3484,6 @@ __metadata:
|
||||
"@grafana/plugin-ui": "npm:0.10.8"
|
||||
"@grafana/runtime": "npm:12.2.0-pre"
|
||||
"@grafana/schema": "npm:12.2.0-pre"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@grafana/ui": "npm:12.2.0-pre"
|
||||
"@hello-pangea/dnd": "npm:18.0.1"
|
||||
"@leeoniya/ufuzzy": "npm:1.0.18"
|
||||
@ -3558,7 +3551,6 @@ __metadata:
|
||||
"@grafana/e2e-selectors": "npm:12.2.0-pre"
|
||||
"@grafana/faro-web-sdk": "npm:^1.13.2"
|
||||
"@grafana/schema": "npm:12.2.0-pre"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@grafana/ui": "npm:12.2.0-pre"
|
||||
"@rollup/plugin-node-resolve": "npm:16.0.1"
|
||||
"@rollup/plugin-terser": "npm:0.4.4"
|
||||
@ -3642,7 +3634,6 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@grafana/schema@workspace:packages/grafana-schema"
|
||||
dependencies:
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@rollup/plugin-node-resolve": "npm:16.0.1"
|
||||
esbuild: "npm:0.25.8"
|
||||
glob: "npm:^11.0.0"
|
||||
@ -3665,7 +3656,6 @@ __metadata:
|
||||
"@grafana/i18n": "npm:12.2.0-pre"
|
||||
"@grafana/plugin-ui": "npm:0.10.8"
|
||||
"@grafana/runtime": "npm:12.2.0-pre"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@grafana/ui": "npm:12.2.0-pre"
|
||||
"@react-awesome-query-builder/ui": "npm:6.6.15"
|
||||
"@testing-library/dom": "npm:10.4.1"
|
||||
@ -3705,7 +3695,6 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@grafana/test-utils@workspace:packages/grafana-test-utils"
|
||||
dependencies:
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@swc/core": "npm:1.13.3"
|
||||
"@swc/jest": "npm:^0.2.26"
|
||||
"@types/jest": "npm:29.5.14"
|
||||
@ -3738,7 +3727,6 @@ __metadata:
|
||||
"@grafana/faro-web-sdk": "npm:^1.13.2"
|
||||
"@grafana/i18n": "npm:12.2.0-pre"
|
||||
"@grafana/schema": "npm:12.2.0-pre"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@hello-pangea/dnd": "npm:18.0.1"
|
||||
"@monaco-editor/react": "npm:4.7.0"
|
||||
"@popperjs/core": "npm:2.11.8"
|
||||
@ -18235,7 +18223,6 @@ __metadata:
|
||||
"@grafana/schema": "workspace:*"
|
||||
"@grafana/sql": "workspace:*"
|
||||
"@grafana/test-utils": "workspace:*"
|
||||
"@grafana/tsconfig": "npm:^2.0.0"
|
||||
"@grafana/ui": "workspace:*"
|
||||
"@hello-pangea/dnd": "npm:18.0.1"
|
||||
"@kusto/monaco-kusto": "npm:^10.0.0"
|
||||
|
Reference in New Issue
Block a user