@@ -84,7 +84,7 @@ const ELV2_LICENSE_HEADER = `
8484const SAFER_LODASH_SET_HEADER = `
8585/*
8686 * Elasticsearch B.V licenses this file to you under the MIT License.
87- * See \`packages/kbn-safer-lodash-set/LICENSE\` for more information.
87+ * See \`src/platform/ packages/shared /kbn-safer-lodash-set/LICENSE\` for more information.
8888 */
8989` ;
9090
@@ -93,7 +93,7 @@ const SAFER_LODASH_SET_LODASH_HEADER = `
9393 * This file is forked from the lodash project (https://lodash.com/),
9494 * and may include modifications made by Elasticsearch B.V.
9595 * Elasticsearch B.V. licenses this file to you under the MIT License.
96- * See \`packages/kbn-safer-lodash-set/LICENSE\` for more information.
96+ * See \`src/platform/ packages/shared /kbn-safer-lodash-set/LICENSE\` for more information.
9797 */
9898` ;
9999
@@ -102,14 +102,14 @@ const SAFER_LODASH_SET_DEFINITELYTYPED_HEADER = `
102102 * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped),
103103 * and may include modifications made by Elasticsearch B.V.
104104 * Elasticsearch B.V. licenses this file to you under the MIT License.
105- * See \`packages/kbn-safer-lodash-set/LICENSE\` for more information.
105+ * See \`src/platform/ packages/shared /kbn-safer-lodash-set/LICENSE\` for more information.
106106 */
107107` ;
108108
109109const KBN_HANDLEBARS_HEADER = `
110110/*
111111 * Elasticsearch B.V licenses this file to you under the MIT License.
112- * See \`packages/kbn-handlebars/LICENSE\` for more information.
112+ * See \`src/platform/ packages/private /kbn-handlebars/LICENSE\` for more information.
113113 */
114114` ;
115115
@@ -118,7 +118,7 @@ const KBN_HANDLEBARS_HANDLEBARS_HEADER = `
118118 * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js),
119119 * and may include modifications made by Elasticsearch B.V.
120120 * Elasticsearch B.V. licenses this file to you under the MIT License.
121- * See \`packages/kbn-handlebars/LICENSE\` for more information.
121+ * See \`src/platform/ packages/private /kbn-handlebars/LICENSE\` for more information.
122122 */
123123` ;
124124
@@ -283,14 +283,14 @@ module.exports = {
283283 * Temporarily disable some react rules for specific plugins, remove in separate PRs
284284 */
285285 {
286- files : [ 'src/plugins/kibana_react/**/*.{js,mjs,ts,tsx}' ] ,
286+ files : [ 'src/platform/ plugins/shared /kibana_react/**/*.{js,mjs,ts,tsx}' ] ,
287287 rules : {
288288 'react-hooks/rules-of-hooks' : 'off' ,
289289 'react-hooks/exhaustive-deps' : 'off' ,
290290 } ,
291291 } ,
292292 {
293- files : [ 'src/plugins/kibana_utils/**/*.{js,mjs,ts,tsx}' ] ,
293+ files : [ 'src/platform/ plugins/shared /kibana_utils/**/*.{js,mjs,ts,tsx}' ] ,
294294 rules : {
295295 'react-hooks/exhaustive-deps' : 'off' ,
296296 } ,
@@ -441,7 +441,7 @@ module.exports = {
441441 * safer-lodash-set package requires special license headers
442442 */
443443 {
444- files : [ 'packages/kbn-safer-lodash-set/**/*.{js,mjs,ts,tsx}' ] ,
444+ files : [ 'src/platform/ packages/shared /kbn-safer-lodash-set/**/*.{js,mjs,ts,tsx}' ] ,
445445 rules : {
446446 '@kbn/eslint/require-license-header' : [
447447 'error' ,
@@ -471,7 +471,7 @@ module.exports = {
471471 } ,
472472
473473 {
474- files : [ 'packages/kbn-safer-lodash-set/test/*.{js,mjs,ts,tsx}' ] ,
474+ files : [ 'src/platform/ packages/shared /kbn-safer-lodash-set/test/*.{js,mjs,ts,tsx}' ] ,
475475 rules : {
476476 '@kbn/eslint/require-license-header' : [
477477 'error' ,
@@ -500,7 +500,7 @@ module.exports = {
500500 } ,
501501 } ,
502502 {
503- files : [ 'packages/kbn-safer-lodash-set/**/*.d.ts' ] ,
503+ files : [ 'src/platform/ packages/shared /kbn-safer-lodash-set/**/*.d.ts' ] ,
504504 rules : {
505505 '@kbn/eslint/require-license-header' : [
506506 'error' ,
@@ -533,7 +533,7 @@ module.exports = {
533533 * @kbn /handlebars package requires special license headers
534534 */
535535 {
536- files : [ 'packages/kbn-handlebars/**/*.{js,mjs,ts,tsx}' ] ,
536+ files : [ 'src/platform/ packages/private /kbn-handlebars/**/*.{js,mjs,ts,tsx}' ] ,
537537 rules : {
538538 '@kbn/eslint/require-license-header' : [
539539 'error' ,
@@ -562,7 +562,7 @@ module.exports = {
562562 } ,
563563 } ,
564564 {
565- files : [ 'packages/kbn-handlebars/src/spec/**/*.{js,mjs,ts,tsx}' ] ,
565+ files : [ 'src/platform/ packages/private /kbn-handlebars/src/spec/**/*.{js,mjs,ts,tsx}' ] ,
566566 rules : {
567567 '@kbn/eslint/require-license-header' : [
568568 'error' ,
@@ -778,7 +778,7 @@ module.exports = {
778778 * Harden specific rules
779779 */
780780 {
781- files : [ 'test/harden/*.js' , 'packages/kbn-safer-lodash-set/test/*.js' ] ,
781+ files : [ 'test/harden/*.js' , 'src/platform/ packages/shared /kbn-safer-lodash-set/test/*.js' ] ,
782782 rules : {
783783 'mocha/handle-done-callback' : 'off' ,
784784 } ,
@@ -1840,24 +1840,24 @@ module.exports = {
18401840 */
18411841 {
18421842 files : [
1843- 'src/plugins/interactive_setup/**/*.{js,mjs,ts,tsx}' ,
1843+ 'src/platform/ plugins/private /interactive_setup/**/*.{js,mjs,ts,tsx}' ,
18441844 'test/interactive_setup_api_integration/**/*.{js,mjs,ts,tsx}' ,
18451845 'test/interactive_setup_functional/**/*.{js,mjs,ts,tsx}' ,
18461846
18471847 'packages/kbn-mock-idp-plugin/**/*.{js,mjs,ts,tsx}' ,
18481848 'packages/kbn-mock-idp-utils/**/*.{js,mjs,ts,tsx}' ,
1849- 'packages/kbn-security-hardening/**/*.{js,mjs,ts,tsx}' ,
1850- 'packages/kbn-user-profile-components/**/*.{js,mjs,ts,tsx}' ,
1849+ 'src/platform/ packages/shared /kbn-security-hardening/**/*.{js,mjs,ts,tsx}' ,
1850+ 'src/platform/ packages/shared /kbn-user-profile-components/**/*.{js,mjs,ts,tsx}' ,
18511851
1852- 'x-pack/plugins/encrypted_saved_objects/**/*.{js,mjs,ts,tsx}' ,
1852+ 'x-pack/platform/ plugins/shared /encrypted_saved_objects/**/*.{js,mjs,ts,tsx}' ,
18531853 'x-pack/test/encrypted_saved_objects_api_integration/**/*.{js,mjs,ts,tsx}' ,
18541854
1855- 'x-pack/plugins/security/**/*.{js,mjs,ts,tsx}' ,
1855+ 'x-pack/platform/ plugins/shared /security/**/*.{js,mjs,ts,tsx}' ,
18561856 'x-pack/packages/security/**/*.{js,mjs,ts,tsx}' ,
18571857 'x-pack/test/security_api_integration/**/*.{js,mjs,ts,tsx}' ,
18581858 'x-pack/test/security_functional/**/*.{js,mjs,ts,tsx}' ,
18591859
1860- 'x-pack/plugins/spaces/**/*.{js,mjs,ts,tsx}' ,
1860+ 'x-pack/platform/ plugins/shared /spaces/**/*.{js,mjs,ts,tsx}' ,
18611861 'x-pack/test/spaces_api_integration/**/*.{js,mjs,ts,tsx}' ,
18621862 ] ,
18631863 rules : {
@@ -1907,14 +1907,14 @@ module.exports = {
19071907 */
19081908 {
19091909 files : [
1910- 'packages/kbn-analytics/**' ,
1910+ 'src/platform/ packages/shared /kbn-analytics/**' ,
19111911 // 'packages/kbn-telemetry-tools/**',
1912- 'src/plugins/kibana_usage_collection/**' ,
1913- 'src/plugins/usage_collection/**' ,
1914- 'src/plugins/telemetry/**' ,
1915- 'src/plugins/telemetry_collection_manager/**' ,
1916- 'src/plugins/telemetry_management_section/**' ,
1917- 'x-pack/plugins/telemetry_collection_xpack/**' ,
1912+ 'src/platform/ plugins/private /kibana_usage_collection/**' ,
1913+ 'src/platform/ plugins/shared /usage_collection/**' ,
1914+ 'src/platform/ plugins/shared /telemetry/**' ,
1915+ 'src/platform/ plugins/shared /telemetry_collection_manager/**' ,
1916+ 'src/platform/ plugins/shared /telemetry_management_section/**' ,
1917+ 'x-pack/platform/ plugins/private /telemetry_collection_xpack/**' ,
19181918 ] ,
19191919 rules : {
19201920 '@typescript-eslint/no-explicit-any' : 'error' ,
@@ -1924,21 +1924,21 @@ module.exports = {
19241924 files : [
19251925 // core-team owned code
19261926 'src/core/**' ,
1927- 'x-pack/plugins/features/**' ,
1928- 'x-pack/plugins/licensing/**' ,
1929- 'x-pack/plugins/global_search/**' ,
1930- 'x-pack/plugins/cloud/**' ,
1931- 'packages/kbn-config-schema' ,
1927+ 'x-pack/platform/ plugins/shared /features/**' ,
1928+ 'x-pack/platform/ plugins/shared /licensing/**' ,
1929+ 'x-pack/platform/ plugins/shared /global_search/**' ,
1930+ 'x-pack/platform/ plugins/shared /cloud/**' ,
1931+ 'src/platform/ packages/shared /kbn-config-schema' ,
19321932 'src/plugins/status_page/**' ,
1933- 'src/plugins/saved_objects_management/**' ,
1934- 'packages/kbn-analytics/**' ,
1933+ 'src/platform/ plugins/shared /saved_objects_management/**' ,
1934+ 'src/platform/ packages/shared /kbn-analytics/**' ,
19351935 'packages/kbn-telemetry-tools/**' ,
1936- 'src/plugins/kibana_usage_collection/**' ,
1937- 'src/plugins/usage_collection/**' ,
1938- 'src/plugins/telemetry/**' ,
1939- 'src/plugins/telemetry_collection_manager/**' ,
1940- 'src/plugins/telemetry_management_section/**' ,
1941- 'x-pack/plugins/telemetry_collection_xpack/**' ,
1936+ 'src/platform/ plugins/private /kibana_usage_collection/**' ,
1937+ 'src/platform/ plugins/shared /usage_collection/**' ,
1938+ 'src/platform/ plugins/shared /telemetry/**' ,
1939+ 'src/platform/ plugins/shared /telemetry_collection_manager/**' ,
1940+ 'src/platform/ plugins/shared /telemetry_management_section/**' ,
1941+ 'x-pack/platform/ plugins/private /telemetry_collection_xpack/**' ,
19421942 ] ,
19431943 rules : {
19441944 '@typescript-eslint/prefer-ts-expect-error' : 'error' ,
0 commit comments