Skip to content
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"packages/plugin-meta-extractor",
"packages/plugin-types-bundler",
"packages/eslint-plugin-plugins",
"packages/tsconfig",
"libs/*"
],
"lint-staged": {
Expand Down
45 changes: 45 additions & 0 deletions packages/tsconfig/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# grafana-tsconfig

> Grafana's [TypeScript](https://typescriptlang.org) config.

## Installation

```shell
yarn add @grafana/tsconfig --dev
```

or:

```shell
npm install @grafana/tsconfig --save-dev
```

## Usage

```json
{
"extends": "@grafana/tsconfig"
}
```

or:

```json
{
"extends": "@grafana/tsconfig/base.json"
}
```

## Publishing

Publishing is handled by github actions which is triggered by a merge to master that contains a change to the version property in the `package.json` file. You can either do that manually or use the command below to version bump, commit and tag.

```shell
npm version [<newversion> | major | minor | patch ]
```

Also be sure to update any official packages that depend on this with fixes and version increases.

## Versioning

It's probable that _any_ change will be a breaking one, so it's best to stick to major version releases.
23 changes: 23 additions & 0 deletions packages/tsconfig/base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"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"
}
}
20 changes: 20 additions & 0 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"author": "Grafana Labs",
"license": "Apache-2.0",
"name": "@grafana/tsconfig",
"version": "2.0.0",
"description": "Grafana's TypeScript config",
"keywords": [
"grafana",
"typescript"
],
"repository": {
"type": "git",
"url": "http://github.com/grafana/tsconfig-grafana.git"
},
"main": "tsconfig.json",
"files": [
"base.json",
"tsconfig.json"
]
}
8 changes: 8 additions & 0 deletions packages/tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"alwaysStrict": true,
"declaration": true,
"strict": true
},
"extends": "./base.json"
}
Loading