@grafana/create-plugin 6.4.5-canary.2348.20275461487.0 → 6.4.5-canary.2350.20292287699.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -258,11 +258,11 @@ function getPluginVarName(pluginName) {
|
|
|
258
258
|
}
|
|
259
259
|
function getPluginShortName(pluginName) {
|
|
260
260
|
if (pluginName.startsWith("@")) {
|
|
261
|
-
let match =
|
|
261
|
+
let match = pluginName.match(/^@([^/]+)\/eslint-plugin$/);
|
|
262
262
|
if (match) {
|
|
263
263
|
return match[1];
|
|
264
264
|
}
|
|
265
|
-
match =
|
|
265
|
+
match = pluginName.match(/^@([^/]+)\/eslint-plugin-(.+)$/);
|
|
266
266
|
if (match) {
|
|
267
267
|
return `${match[1]}/${match[2]}`;
|
|
268
268
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "6.4.5-canary.
|
|
3
|
+
"version": "6.4.5-canary.2350.20292287699.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=20"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "f6e2eff60123827f33edfe0c9b3deac60a704444"
|
|
60
60
|
}
|
|
@@ -139,10 +139,9 @@ describe('004-eslint9-flat-config', () => {
|
|
|
139
139
|
'plugin:react/recommended',
|
|
140
140
|
'prettier',
|
|
141
141
|
],
|
|
142
|
-
plugins: ['simple-import-sort'
|
|
142
|
+
plugins: ['simple-import-sort'],
|
|
143
143
|
rules: {
|
|
144
144
|
'simple-import-sort/imports': 'error',
|
|
145
|
-
'@grafana/plugins/import-is-compatible': 'warn',
|
|
146
145
|
},
|
|
147
146
|
overrides: [
|
|
148
147
|
{
|
|
@@ -164,7 +163,6 @@ describe('004-eslint9-flat-config', () => {
|
|
|
164
163
|
import react from "eslint-plugin-react";
|
|
165
164
|
import prettier from "eslint-config-prettier/flat";
|
|
166
165
|
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
167
|
-
import grafanaEslintPluginPlugins from "@grafana/eslint-plugin-plugins";
|
|
168
166
|
|
|
169
167
|
export default defineConfig([
|
|
170
168
|
js.configs.recommended,
|
|
@@ -175,12 +173,10 @@ describe('004-eslint9-flat-config', () => {
|
|
|
175
173
|
{
|
|
176
174
|
plugins: {
|
|
177
175
|
"simple-import-sort": simpleImportSort,
|
|
178
|
-
"@grafana/plugins": grafanaEslintPluginPlugins,
|
|
179
176
|
},
|
|
180
177
|
|
|
181
178
|
rules: {
|
|
182
179
|
"simple-import-sort/imports": "error",
|
|
183
|
-
"@grafana/plugins/import-is-compatible": "warn",
|
|
184
180
|
},
|
|
185
181
|
},
|
|
186
182
|
{
|
|
@@ -340,12 +340,12 @@ function getPluginVarName(pluginName: string) {
|
|
|
340
340
|
|
|
341
341
|
function getPluginShortName(pluginName: string) {
|
|
342
342
|
if (pluginName.startsWith('@')) {
|
|
343
|
-
let match =
|
|
343
|
+
let match = pluginName.match(/^@([^/]+)\/eslint-plugin$/);
|
|
344
344
|
|
|
345
345
|
if (match) {
|
|
346
346
|
return match[1];
|
|
347
347
|
}
|
|
348
|
-
match =
|
|
348
|
+
match = pluginName.match(/^@([^/]+)\/eslint-plugin-(.+)$/);
|
|
349
349
|
|
|
350
350
|
if (match) {
|
|
351
351
|
return `${match[1]}/${match[2]}`;
|