mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
chore(NA): rename @elastic/eslint-config-kibana as @kbn/eslint-config (#132278)
This commit is contained in:
parent
4cfa1c8ac2
commit
dea9159c5d
20 changed files with 23 additions and 26 deletions
|
@ -30,7 +30,7 @@ snapshots.js
|
||||||
/x-pack/plugins/reporting/server/export_types/printable_pdf_v2/server/lib/pdf/assets/**
|
/x-pack/plugins/reporting/server/export_types/printable_pdf_v2/server/lib/pdf/assets/**
|
||||||
|
|
||||||
# package overrides
|
# package overrides
|
||||||
/packages/elastic-eslint-config-kibana
|
/packages/kbn-eslint-config
|
||||||
/packages/kbn-plugin-generator/template
|
/packages/kbn-plugin-generator/template
|
||||||
/packages/kbn-generate/templates
|
/packages/kbn-generate/templates
|
||||||
/packages/kbn-pm/dist
|
/packages/kbn-pm/dist
|
||||||
|
|
|
@ -230,7 +230,7 @@ const RESTRICTED_IMPORTS = [
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
|
|
||||||
extends: ['@elastic/eslint-config-kibana', 'plugin:@elastic/eui/recommended'],
|
extends: ['plugin:@elastic/eui/recommended', '@kbn/eslint-config'],
|
||||||
|
|
||||||
overrides: [
|
overrides: [
|
||||||
/**
|
/**
|
||||||
|
@ -304,7 +304,7 @@ module.exports = {
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
'packages/elastic-eslint-config-kibana/**/*.{js,mjs,ts,tsx}',
|
'packages/kbn-eslint-config/**/*.{js,mjs,ts,tsx}',
|
||||||
'packages/kbn-datemath/**/*.{js,mjs,ts,tsx}',
|
'packages/kbn-datemath/**/*.{js,mjs,ts,tsx}',
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
|
|
|
@ -30,7 +30,7 @@ If you’re installing dependencies and seeing an error that looks
|
||||||
something like
|
something like
|
||||||
|
|
||||||
....
|
....
|
||||||
Unsupported URL Type: link:packages/elastic-eslint-config-kibana
|
Unsupported URL Type: link:packages/kbn-eslint-config
|
||||||
....
|
....
|
||||||
|
|
||||||
you’re likely running `npm`. To install dependencies in {kib} you
|
you’re likely running `npm`. To install dependencies in {kib} you
|
||||||
|
|
|
@ -470,7 +470,6 @@
|
||||||
"@cypress/code-coverage": "^3.9.12",
|
"@cypress/code-coverage": "^3.9.12",
|
||||||
"@cypress/snapshot": "^2.1.7",
|
"@cypress/snapshot": "^2.1.7",
|
||||||
"@cypress/webpack-preprocessor": "^5.6.0",
|
"@cypress/webpack-preprocessor": "^5.6.0",
|
||||||
"@elastic/eslint-config-kibana": "link:bazel-bin/packages/elastic-eslint-config-kibana",
|
|
||||||
"@elastic/eslint-plugin-eui": "0.0.2",
|
"@elastic/eslint-plugin-eui": "0.0.2",
|
||||||
"@elastic/github-checks-reporter": "0.0.20b3",
|
"@elastic/github-checks-reporter": "0.0.20b3",
|
||||||
"@elastic/makelogs": "^6.0.0",
|
"@elastic/makelogs": "^6.0.0",
|
||||||
|
@ -493,6 +492,7 @@
|
||||||
"@kbn/docs-utils": "link:bazel-bin/packages/kbn-docs-utils",
|
"@kbn/docs-utils": "link:bazel-bin/packages/kbn-docs-utils",
|
||||||
"@kbn/es": "link:bazel-bin/packages/kbn-es",
|
"@kbn/es": "link:bazel-bin/packages/kbn-es",
|
||||||
"@kbn/es-archiver": "link:bazel-bin/packages/kbn-es-archiver",
|
"@kbn/es-archiver": "link:bazel-bin/packages/kbn-es-archiver",
|
||||||
|
"@kbn/eslint-config": "link:bazel-bin/packages/kbn-eslint-config",
|
||||||
"@kbn/eslint-plugin-eslint": "link:bazel-bin/packages/kbn-eslint-plugin-eslint",
|
"@kbn/eslint-plugin-eslint": "link:bazel-bin/packages/kbn-eslint-plugin-eslint",
|
||||||
"@kbn/expect": "link:bazel-bin/packages/kbn-expect",
|
"@kbn/expect": "link:bazel-bin/packages/kbn-expect",
|
||||||
"@kbn/find-used-node-modules": "link:bazel-bin/packages/kbn-find-used-node-modules",
|
"@kbn/find-used-node-modules": "link:bazel-bin/packages/kbn-find-used-node-modules",
|
||||||
|
|
|
@ -15,7 +15,6 @@ filegroup(
|
||||||
"//packages/analytics/shippers/elastic_v3/server:build",
|
"//packages/analytics/shippers/elastic_v3/server:build",
|
||||||
"//packages/analytics/shippers/fullstory:build",
|
"//packages/analytics/shippers/fullstory:build",
|
||||||
"//packages/elastic-apm-synthtrace:build",
|
"//packages/elastic-apm-synthtrace:build",
|
||||||
"//packages/elastic-eslint-config-kibana:build",
|
|
||||||
"//packages/elastic-safer-lodash-set:build",
|
"//packages/elastic-safer-lodash-set:build",
|
||||||
"//packages/kbn-ace:build",
|
"//packages/kbn-ace:build",
|
||||||
"//packages/kbn-alerts:build",
|
"//packages/kbn-alerts:build",
|
||||||
|
@ -43,6 +42,7 @@ filegroup(
|
||||||
"//packages/kbn-es-archiver:build",
|
"//packages/kbn-es-archiver:build",
|
||||||
"//packages/kbn-es-query:build",
|
"//packages/kbn-es-query:build",
|
||||||
"//packages/kbn-es:build",
|
"//packages/kbn-es:build",
|
||||||
|
"//packages/kbn-eslint-config:build",
|
||||||
"//packages/kbn-eslint-plugin-eslint:build",
|
"//packages/kbn-eslint-plugin-eslint:build",
|
||||||
"//packages/kbn-eslint-plugin-imports:build",
|
"//packages/kbn-eslint-plugin-imports:build",
|
||||||
"//packages/kbn-expect:build",
|
"//packages/kbn-expect:build",
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
.eslintrc.yaml
|
|
||||||
tasks
|
|
|
@ -9,7 +9,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
/**
|
/**
|
||||||
* Synchronized regex list of files that use `styled-components`.
|
* Synchronized regex list of files that use `styled-components`.
|
||||||
* Used by `kbn-babel-preset` and `elastic-eslint-config-kibana`.
|
* Used by `kbn-babel-preset` and `kbn-eslint-config`.
|
||||||
*/
|
*/
|
||||||
USES_STYLED_COMPONENTS: [
|
USES_STYLED_COMPONENTS: [
|
||||||
/packages[\/\\]kbn-ui-shared-deps-(npm|src)[\/\\]/,
|
/packages[\/\\]kbn-ui-shared-deps-(npm|src)[\/\\]/,
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
||||||
load("//src/dev/bazel:index.bzl", "pkg_npm")
|
load("//src/dev/bazel:index.bzl", "pkg_npm")
|
||||||
|
|
||||||
PKG_BASE_NAME = "elastic-eslint-config-kibana"
|
PKG_BASE_NAME = "kbn-eslint-config"
|
||||||
PKG_REQUIRE_NAME = "@elastic/eslint-config-kibana"
|
PKG_REQUIRE_NAME = "@kbn/eslint-config"
|
||||||
|
|
||||||
SOURCE_FILES = glob([
|
SOURCE_FILES = glob([
|
||||||
".eslintrc.js",
|
".eslintrc.js",
|
||||||
|
@ -22,7 +22,6 @@ filegroup(
|
||||||
|
|
||||||
NPM_MODULE_EXTRA_FILES = [
|
NPM_MODULE_EXTRA_FILES = [
|
||||||
"package.json",
|
"package.json",
|
||||||
"README.md",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
RUNTIME_DEPS = [
|
RUNTIME_DEPS = [
|
|
@ -10,7 +10,7 @@ in your `.eslintrc`:
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
extends: [
|
extends: [
|
||||||
'@elastic/eslint-config-kibana'
|
'@kbn/eslint-config'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -18,14 +18,14 @@ in your `.eslintrc`:
|
||||||
## Optional jest config
|
## Optional jest config
|
||||||
|
|
||||||
If the project uses the [jest test runner](https://facebook.github.io/jest/),
|
If the project uses the [jest test runner](https://facebook.github.io/jest/),
|
||||||
the `@elastic/eslint-config-kibana/jest` config can be extended as well to use
|
the `@kbn/eslint-config/jest` config can be extended as well to use
|
||||||
`eslint-plugin-jest` and add settings specific to it:
|
`eslint-plugin-jest` and add settings specific to it:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
extends: [
|
extends: [
|
||||||
'@elastic/eslint-config-kibana',
|
'@kbn/eslint-config',
|
||||||
'@elastic/eslint-config-kibana/jest'
|
'@kbn/eslint-config/jest'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@elastic/eslint-config-kibana",
|
"name": "@kbn/eslint-config",
|
||||||
"version": "0.15.0",
|
"version": "1.0.0",
|
||||||
"description": "The eslint config used by the kibana team",
|
"description": "The eslint config used by the kibana team",
|
||||||
"main": ".eslintrc.js",
|
"main": ".eslintrc.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
"author": "Spencer Alger <email@spalger.com>",
|
"author": "Spencer Alger <email@spalger.com>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/elastic/kibana/tree/main/packages/elastic-eslint-config-kibana"
|
"url": "https://github.com/elastic/kibana/tree/main/packages/kbn-eslint-config"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/elastic/kibana/tree/main/packages/elastic-eslint-config-kibana"
|
"homepage": "https://github.com/elastic/kibana/tree/main/packages/kbn-eslint-config"
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
extends: [
|
extends: [
|
||||||
'@elastic/eslint-config-kibana',
|
'@kbn/eslint-config',
|
||||||
'plugin:@elastic/eui/recommended'
|
'plugin:@elastic/eui/recommended'
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
|
|
|
@ -19,7 +19,7 @@ From a plugin perspective there are two different types of Kibana dependencies:
|
||||||
runtime and static dependencies. Runtime dependencies are things that are
|
runtime and static dependencies. Runtime dependencies are things that are
|
||||||
instantiated at runtime and that are injected into the plugin, for example
|
instantiated at runtime and that are injected into the plugin, for example
|
||||||
config and elasticsearch clients. Static dependencies are those dependencies
|
config and elasticsearch clients. Static dependencies are those dependencies
|
||||||
that we want to `import`. `elastic-eslint-config-kibana` is one example of this, and
|
that we want to `import`. `kbn-eslint-config` is one example of this, and
|
||||||
it's actually needed because eslint requires it to be a separate package. But we
|
it's actually needed because eslint requires it to be a separate package. But we
|
||||||
also have dependencies like `datemath`, `flot`, `eui` and others that we
|
also have dependencies like `datemath`, `flot`, `eui` and others that we
|
||||||
control, but where we want to `import` them in plugins instead of injecting them
|
control, but where we want to `import` them in plugins instead of injecting them
|
||||||
|
|
|
@ -1499,10 +1499,6 @@
|
||||||
semver "^7.3.2"
|
semver "^7.3.2"
|
||||||
topojson-client "^3.1.0"
|
topojson-client "^3.1.0"
|
||||||
|
|
||||||
"@elastic/eslint-config-kibana@link:bazel-bin/packages/elastic-eslint-config-kibana":
|
|
||||||
version "0.0.0"
|
|
||||||
uid ""
|
|
||||||
|
|
||||||
"@elastic/eslint-plugin-eui@0.0.2":
|
"@elastic/eslint-plugin-eui@0.0.2":
|
||||||
version "0.0.2"
|
version "0.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314"
|
resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314"
|
||||||
|
@ -3017,6 +3013,10 @@
|
||||||
version "0.0.0"
|
version "0.0.0"
|
||||||
uid ""
|
uid ""
|
||||||
|
|
||||||
|
"@kbn/eslint-config@link:bazel-bin/packages/kbn-eslint-config":
|
||||||
|
version "0.0.0"
|
||||||
|
uid ""
|
||||||
|
|
||||||
"@kbn/eslint-plugin-eslint@link:bazel-bin/packages/kbn-eslint-plugin-eslint":
|
"@kbn/eslint-plugin-eslint@link:bazel-bin/packages/kbn-eslint-plugin-eslint":
|
||||||
version "0.0.0"
|
version "0.0.0"
|
||||||
uid ""
|
uid ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue