You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using **yarn**, you can also use the shortcut described above if you have npm 5+ installed on your machine, as the command will detect that you are using yarn and will act accordingly.
32
32
Otherwise, run `npm info "@grafana/eslint-config@latest" peerDependencies` to list the peer dependencies and versions, then run `yarn add --dev <dependency>@<version>` for each listed peer dependency.
33
33
34
-
## Usage
34
+
## Configuration (legacy: .eslintrc\*)
35
+
36
+
Extend our configuration to get reasonable defaults:
35
37
36
38
```json
37
39
{
@@ -41,6 +43,58 @@ Otherwise, run `npm info "@grafana/eslint-config@latest" peerDependencies` to li
41
43
42
44
It will automatically handle `*.(js|ts|tsx)` files.
43
45
46
+
## Configuration (new: eslint.config.js)
47
+
48
+
From v8.21.0, Eslint supported a new flat config system where `eslint.config.js` replaces `.eslintrc*` as the default config file name. [email protected] supports both systems, while [email protected] only supports the new flat config.
49
+
50
+
A guide on how to migrate to a flat config can be found [here](https://eslint.org/docs/latest/extend/plugin-migration-flat-config).
51
+
52
+
The following official blog posts are available for interested parties:
Note: Our shareable configs does not preconfigure `files`, `ignore`, or `languageOptions.globals`. For most of the cases, you probably want to configure some properties for your project.
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.
0 commit comments