@elastic/eslint-plugin-eui 2.4.0 → 2.5.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.
Files changed (92) hide show
  1. package/README.md +11 -4
  2. package/lib/cjs/index.js +14 -19
  3. package/lib/cjs/rules/a11y/accessible_interactive_element.d.ts +3 -0
  4. package/lib/cjs/rules/a11y/accessible_interactive_element.d.ts.map +1 -0
  5. package/lib/cjs/rules/a11y/accessible_interactive_element.js +51 -0
  6. package/lib/cjs/rules/a11y/callout_announce_on_mount.d.ts.map +1 -1
  7. package/lib/cjs/rules/a11y/callout_announce_on_mount.js +6 -17
  8. package/lib/cjs/rules/a11y/consistent_is_invalid_props.d.ts.map +1 -1
  9. package/lib/cjs/rules/a11y/consistent_is_invalid_props.js +7 -18
  10. package/lib/cjs/rules/a11y/no_unnamed_interactive_element.d.ts.map +1 -1
  11. package/lib/cjs/rules/a11y/no_unnamed_interactive_element.js +6 -17
  12. package/lib/cjs/rules/a11y/no_unnamed_radio_group.d.ts.map +1 -1
  13. package/lib/cjs/rules/a11y/no_unnamed_radio_group.js +5 -16
  14. package/lib/cjs/rules/a11y/prefer_eui_icon_tip.d.ts.map +1 -1
  15. package/lib/cjs/rules/a11y/prefer_eui_icon_tip.js +8 -0
  16. package/lib/cjs/rules/a11y/require_aria_label_for_modals.d.ts.map +1 -1
  17. package/lib/cjs/rules/a11y/require_aria_label_for_modals.js +5 -16
  18. package/lib/cjs/rules/a11y/sr_output_disabled_tooltip.js +2 -2
  19. package/lib/cjs/rules/a11y/tooltip_focusable_anchor.d.ts +3 -0
  20. package/lib/cjs/rules/a11y/tooltip_focusable_anchor.d.ts.map +1 -0
  21. package/lib/cjs/rules/a11y/tooltip_focusable_anchor.js +68 -0
  22. package/lib/cjs/rules/href_or_on_click.d.ts.map +1 -1
  23. package/lib/cjs/rules/href_or_on_click.js +5 -16
  24. package/lib/cjs/rules/no_css_color.d.ts.map +1 -1
  25. package/lib/cjs/rules/no_css_color.js +14 -7
  26. package/lib/cjs/rules/no_restricted_eui_imports.d.ts.map +1 -1
  27. package/lib/cjs/rules/no_restricted_eui_imports.js +5 -16
  28. package/lib/cjs/utils/are_attrs_equal.d.ts.map +1 -1
  29. package/lib/cjs/utils/are_attrs_equal.js +5 -16
  30. package/lib/cjs/utils/constants.d.ts +27 -0
  31. package/lib/cjs/utils/constants.d.ts.map +1 -0
  32. package/lib/cjs/utils/constants.js +41 -0
  33. package/lib/cjs/utils/get_allowed_a11y_prop_names_for_component.d.ts.map +1 -1
  34. package/lib/cjs/utils/get_allowed_a11y_prop_names_for_component.js +5 -16
  35. package/lib/cjs/utils/get_attr_value.d.ts +2 -1
  36. package/lib/cjs/utils/get_attr_value.d.ts.map +1 -1
  37. package/lib/cjs/utils/get_attr_value.js +11 -18
  38. package/lib/cjs/utils/has_a11y_prop_for_component.d.ts.map +1 -1
  39. package/lib/cjs/utils/has_a11y_prop_for_component.js +5 -16
  40. package/lib/cjs/utils/has_spread.d.ts.map +1 -1
  41. package/lib/cjs/utils/has_spread.js +5 -16
  42. package/lib/cjs/utils/is_in_conditional_rendering.d.ts.map +1 -1
  43. package/lib/cjs/utils/is_in_conditional_rendering.js +5 -16
  44. package/lib/cjs/utils/resolve_member_expression_root.d.ts.map +1 -1
  45. package/lib/cjs/utils/resolve_member_expression_root.js +8 -0
  46. package/lib/esm/index.js +12 -17
  47. package/lib/esm/index.js.map +1 -1
  48. package/lib/esm/rules/a11y/accessible_interactive_element.d.ts +2 -0
  49. package/lib/esm/rules/a11y/accessible_interactive_element.js +50 -0
  50. package/lib/esm/rules/a11y/accessible_interactive_element.js.map +1 -0
  51. package/lib/esm/rules/a11y/callout_announce_on_mount.js +6 -16
  52. package/lib/esm/rules/a11y/callout_announce_on_mount.js.map +1 -1
  53. package/lib/esm/rules/a11y/consistent_is_invalid_props.js +7 -18
  54. package/lib/esm/rules/a11y/consistent_is_invalid_props.js.map +1 -1
  55. package/lib/esm/rules/a11y/no_unnamed_interactive_element.js +5 -17
  56. package/lib/esm/rules/a11y/no_unnamed_interactive_element.js.map +1 -1
  57. package/lib/esm/rules/a11y/no_unnamed_radio_group.js +5 -16
  58. package/lib/esm/rules/a11y/no_unnamed_radio_group.js.map +1 -1
  59. package/lib/esm/rules/a11y/prefer_eui_icon_tip.js +7 -0
  60. package/lib/esm/rules/a11y/prefer_eui_icon_tip.js.map +1 -1
  61. package/lib/esm/rules/a11y/require_aria_label_for_modals.js +5 -16
  62. package/lib/esm/rules/a11y/require_aria_label_for_modals.js.map +1 -1
  63. package/lib/esm/rules/a11y/sr_output_disabled_tooltip.js +2 -2
  64. package/lib/esm/rules/a11y/sr_output_disabled_tooltip.js.map +1 -1
  65. package/lib/esm/rules/a11y/tooltip_focusable_anchor.d.ts +2 -0
  66. package/lib/esm/rules/a11y/tooltip_focusable_anchor.js +84 -0
  67. package/lib/esm/rules/a11y/tooltip_focusable_anchor.js.map +1 -0
  68. package/lib/esm/rules/href_or_on_click.js +5 -16
  69. package/lib/esm/rules/href_or_on_click.js.map +1 -1
  70. package/lib/esm/rules/no_css_color.js +22 -7
  71. package/lib/esm/rules/no_css_color.js.map +1 -1
  72. package/lib/esm/rules/no_restricted_eui_imports.js +5 -16
  73. package/lib/esm/rules/no_restricted_eui_imports.js.map +1 -1
  74. package/lib/esm/utils/are_attrs_equal.js +5 -16
  75. package/lib/esm/utils/are_attrs_equal.js.map +1 -1
  76. package/lib/esm/utils/constants.d.ts +26 -0
  77. package/lib/esm/utils/constants.js +119 -0
  78. package/lib/esm/utils/constants.js.map +1 -0
  79. package/lib/esm/utils/get_allowed_a11y_prop_names_for_component.js +5 -16
  80. package/lib/esm/utils/get_allowed_a11y_prop_names_for_component.js.map +1 -1
  81. package/lib/esm/utils/get_attr_value.d.ts +2 -1
  82. package/lib/esm/utils/get_attr_value.js +11 -18
  83. package/lib/esm/utils/get_attr_value.js.map +1 -1
  84. package/lib/esm/utils/has_a11y_prop_for_component.js +5 -16
  85. package/lib/esm/utils/has_a11y_prop_for_component.js.map +1 -1
  86. package/lib/esm/utils/has_spread.js +5 -16
  87. package/lib/esm/utils/has_spread.js.map +1 -1
  88. package/lib/esm/utils/is_in_conditional_rendering.js +5 -16
  89. package/lib/esm/utils/is_in_conditional_rendering.js.map +1 -1
  90. package/lib/esm/utils/resolve_member_expression_root.js +7 -0
  91. package/lib/esm/utils/resolve_member_expression_root.js.map +1 -1
  92. package/package.json +1 -1
@@ -1,2 +1,3 @@
1
1
  import { type TSESTree, type TSESLint } from '@typescript-eslint/utils';
2
- export declare function getAttrValue<TContext extends TSESLint.RuleContext<string, unknown[]>>(context: TContext, attributes: TSESTree.JSXOpeningElement['attributes'], attrName: string): string | undefined;
2
+ export declare function findAttrValue<TContext extends TSESLint.RuleContext<string, unknown[]>>(context: TContext, attributes: TSESTree.JSXOpeningElement['attributes'], attrName: string): string | undefined;
3
+ export declare function extractAttrValue<TContext extends TSESLint.RuleContext<string, unknown[]>>(context: TContext, attr: TSESTree.JSXAttribute | undefined): string | undefined;
@@ -1,28 +1,21 @@
1
1
  "use strict";
2
2
  /*
3
- * Licensed to Elasticsearch B.V. under one or more contributor
4
- * license agreements. See the NOTICE file distributed with
5
- * this work for additional information regarding copyright
6
- * ownership. Elasticsearch B.V. licenses this file to you under
7
- * the Apache License, Version 2.0 (the "License"); you may
8
- * not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing,
14
- * software distributed under the License is distributed on an
15
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- * KIND, either express or implied. See the License for the
17
- * specific language governing permissions and limitations
18
- * under the License.
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. Licensed under the Elastic License
5
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
6
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
7
+ * Side Public License, v 1.
19
8
  */
20
9
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.getAttrValue = getAttrValue;
22
- function getAttrValue(context, attributes, attrName) {
10
+ exports.findAttrValue = findAttrValue;
11
+ exports.extractAttrValue = extractAttrValue;
12
+ function findAttrValue(context, attributes, attrName) {
23
13
  const attr = attributes.find((attr) => attr.type === 'JSXAttribute' &&
24
14
  attr.name.type === 'JSXIdentifier' &&
25
15
  attr.name.name === attrName);
16
+ return extractAttrValue(context, attr);
17
+ }
18
+ function extractAttrValue(context, attr) {
26
19
  if (!attr?.value) {
27
20
  return undefined;
28
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get_attr_value.js","sourceRoot":"","sources":["../../../src/utils/get_attr_value.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAIH,oCAiCC;AAjCD,SAAgB,YAAY,CAG1B,OAAiB,EACjB,UAAoD,EACpD,QAAgB;IAEhB,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAC1B,CAAC,IAAI,EAAiC,EAAE,CACtC,IAAI,CAAC,IAAI,KAAK,cAAc;QAC5B,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,eAAe;QAClC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAC9B,CAAC;IAEF,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,wBAAwB,EAAE,CAAC;QACjD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;QAEzC,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAClC,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;QAED,OAAO,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"get_attr_value.js","sourceRoot":"","sources":["../../../src/utils/get_attr_value.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAIH,sCAeC;AAED,4CA0BC;AA3CD,SAAgB,aAAa,CAG3B,OAAiB,EACjB,UAAoD,EACpD,QAAgB;IAEhB,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAC1B,CAAC,IAAI,EAAiC,EAAE,CACtC,IAAI,CAAC,IAAI,KAAK,cAAc;QAC5B,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,eAAe;QAClC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAC9B,CAAC;IAEF,OAAO,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC;AAED,SAAgB,gBAAgB,CAG9B,OAAiB,EACjB,IAAuC;IAGvC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,wBAAwB,EAAE,CAAC;QACjD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;QAEzC,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAClC,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;QAED,OAAO,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,21 +1,10 @@
1
1
  "use strict";
2
2
  /*
3
- * Licensed to Elasticsearch B.V. under one or more contributor
4
- * license agreements. See the NOTICE file distributed with
5
- * this work for additional information regarding copyright
6
- * ownership. Elasticsearch B.V. licenses this file to you under
7
- * the Apache License, Version 2.0 (the "License"); you may
8
- * not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing,
14
- * software distributed under the License is distributed on an
15
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- * KIND, either express or implied. See the License for the
17
- * specific language governing permissions and limitations
18
- * under the License.
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. Licensed under the Elastic License
5
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
6
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
7
+ * Side Public License, v 1.
19
8
  */
20
9
  Object.defineProperty(exports, "__esModule", { value: true });
21
10
  exports.hasA11yPropForComponent = hasA11yPropForComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"has_a11y_prop_for_component.js","sourceRoot":"","sources":["../../../src/utils/has_a11y_prop_for_component.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAyBH,0DAcC;AApCD,2GAGqD;AAErD;;;;;;;;;;;;;;;GAeG;AAEH,SAAgB,uBAAuB,CACrC,aAAqB,EACrB,KAA+C,EAC/C,GAAe;IAEf,MAAM,OAAO,GAAG,IAAI,GAAG,CACrB,IAAA,+EAAmC,EAAC,aAAa,EAAE,GAAG,CAAC,CACxD,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CACf,CAAC,IAAI,EAAiC,EAAE,CACtC,IAAI,CAAC,IAAI,KAAK,cAAc;QAC5B,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,eAAe;QAClC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"has_a11y_prop_for_component.js","sourceRoot":"","sources":["../../../src/utils/has_a11y_prop_for_component.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAyBH,0DAcC;AApCD,2GAGqD;AAErD;;;;;;;;;;;;;;;GAeG;AAEH,SAAgB,uBAAuB,CACrC,aAAqB,EACrB,KAA+C,EAC/C,GAAe;IAEf,MAAM,OAAO,GAAG,IAAI,GAAG,CACrB,IAAA,+EAAmC,EAAC,aAAa,EAAE,GAAG,CAAC,CACxD,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CACf,CAAC,IAAI,EAAiC,EAAE,CACtC,IAAI,CAAC,IAAI,KAAK,cAAc;QAC5B,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,eAAe;QAClC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B,CAAC;AACJ,CAAC"}
@@ -1,21 +1,10 @@
1
1
  "use strict";
2
2
  /*
3
- * Licensed to Elasticsearch B.V. under one or more contributor
4
- * license agreements. See the NOTICE file distributed with
5
- * this work for additional information regarding copyright
6
- * ownership. Elasticsearch B.V. licenses this file to you under
7
- * the Apache License, Version 2.0 (the "License"); you may
8
- * not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing,
14
- * software distributed under the License is distributed on an
15
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- * KIND, either express or implied. See the License for the
17
- * specific language governing permissions and limitations
18
- * under the License.
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. Licensed under the Elastic License
5
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
6
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
7
+ * Side Public License, v 1.
19
8
  */
20
9
  Object.defineProperty(exports, "__esModule", { value: true });
21
10
  exports.hasSpread = hasSpread;
@@ -1 +1 @@
1
- {"version":3,"file":"has_spread.js","sourceRoot":"","sources":["../../../src/utils/has_spread.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAcH,8BAIC;AAdD;;;;;;;;GAQG;AAEH,SAAgB,SAAS,CACvB,KAA+C;IAE/C,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,oBAAoB,CAAC,CAAC;AAC5D,CAAC"}
1
+ {"version":3,"file":"has_spread.js","sourceRoot":"","sources":["../../../src/utils/has_spread.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAcH,8BAIC;AAdD;;;;;;;;GAQG;AAEH,SAAgB,SAAS,CACvB,KAA+C;IAE/C,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,oBAAoB,CAAC,CAAC;AAC5D,CAAC"}
@@ -1,21 +1,10 @@
1
1
  "use strict";
2
2
  /*
3
- * Licensed to Elasticsearch B.V. under one or more contributor
4
- * license agreements. See the NOTICE file distributed with
5
- * this work for additional information regarding copyright
6
- * ownership. Elasticsearch B.V. licenses this file to you under
7
- * the Apache License, Version 2.0 (the "License"); you may
8
- * not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing,
14
- * software distributed under the License is distributed on an
15
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- * KIND, either express or implied. See the License for the
17
- * specific language governing permissions and limitations
18
- * under the License.
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. Licensed under the Elastic License
5
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
6
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
7
+ * Side Public License, v 1.
19
8
  */
20
9
  Object.defineProperty(exports, "__esModule", { value: true });
21
10
  exports.isInConditionalRendering = isInConditionalRendering;
@@ -1 +1 @@
1
- {"version":3,"file":"is_in_conditional_rendering.js","sourceRoot":"","sources":["../../../src/utils/is_in_conditional_rendering.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAIH,4DAWC;AAXD,SAAgB,wBAAwB,CAAC,IAAyB;IAChE,IAAI,MAAM,GAA8B,IAAI,CAAC,MAAM,CAAC;IACpD,OAAO,MAAM,EAAE,CAAC;QACd,IAAI,MAAM,CAAC,IAAI,KAAK,uBAAuB;YACzC,MAAM,CAAC,IAAI,KAAK,aAAa;YAC7B,CAAC,MAAM,CAAC,IAAI,KAAK,mBAAmB,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC;YACpE,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"is_in_conditional_rendering.js","sourceRoot":"","sources":["../../../src/utils/is_in_conditional_rendering.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAIH,4DAWC;AAXD,SAAgB,wBAAwB,CAAC,IAAyB;IAChE,IAAI,MAAM,GAA8B,IAAI,CAAC,MAAM,CAAC;IACpD,OAAO,MAAM,EAAE,CAAC;QACd,IAAI,MAAM,CAAC,IAAI,KAAK,uBAAuB;YACzC,MAAM,CAAC,IAAI,KAAK,aAAa;YAC7B,CAAC,MAAM,CAAC,IAAI,KAAK,mBAAmB,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC;YACpE,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /*
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. Licensed under the Elastic License
5
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
6
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
7
+ * Side Public License, v 1.
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.resolveMemberExpressionRoot = void 0;
4
11
  const resolveMemberExpressionRoot = (node) => {
@@ -1 +1 @@
1
- {"version":3,"file":"resolve_member_expression_root.js","sourceRoot":"","sources":["../../../src/utils/resolve_member_expression_root.ts"],"names":[],"mappings":";;;AAEO,MAAM,2BAA2B,GAAG,CACzC,IAA+B,EACV,EAAE;IACvB,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,kBAAkB,EAAE,CAAC;QAC5C,OAAO,IAAA,mCAA2B,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,IAAI,CAAC,MAA6B,CAAC;AAC5C,CAAC,CAAC;AARW,QAAA,2BAA2B,+BAQtC"}
1
+ {"version":3,"file":"resolve_member_expression_root.js","sourceRoot":"","sources":["../../../src/utils/resolve_member_expression_root.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAII,MAAM,2BAA2B,GAAG,CACzC,IAA+B,EACV,EAAE;IACvB,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,kBAAkB,EAAE,CAAC;QAC5C,OAAO,IAAA,mCAA2B,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,IAAI,CAAC,MAA6B,CAAC;AAC5C,CAAC,CAAC;AARW,QAAA,2BAA2B,+BAQtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/eslint-plugin-eui",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",