Commit c3d0fbb5 authored by Mark Banner's avatar Mark Banner
Browse files

Bug 1702166 - Update ESLint, Babel and associated modules to the latest...

Bug 1702166 - Update ESLint, Babel and associated modules to the latest versions. r=mossop,nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D110606
parent db2ae874
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4,5 +4,7 @@

module.exports = {
  plugins: [
    "@babel/plugin-syntax-class-properties",
    "@babel/plugin-syntax-jsx",
  ],
};
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ const ignorePatterns = [
];

module.exports = {
  parser: "babel-eslint",
  parser: "@babel/eslint-parser",
  parserOptions: {
    sourceType: "script",
    babelOptions: {
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ module.exports = {
    "plugin:mozilla/mochitest-test",
    "plugin:mozilla/xpcshell-test",
    "plugin:prettier/recommended", // require("eslint-plugin-prettier")
    "prettier/react", // require("eslint-config-prettier")
    "prettier", // require("eslint-config-prettier")
  ],
  overrides: [
    {
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ export function convertLinks(
          data-do_not_autoblock={doNotAutoBlock}
          data-entrypoint_name={links[linkTag].entrypoint_name}
          data-entrypoint_value={links[linkTag].entrypoint_value}
          rel="noreferrer"
          onClick={sendClick}
        />
      );
+2 −0
Original line number Diff line number Diff line
@@ -242,6 +242,8 @@ export class _CollapsibleSection extends React.PureComponent {
      titleStyle = { visibility: "hidden" };
    }
    return (
      // TODO: Bug 1702140: re-enable this rule.
      // eslint-disable-next-line jsx-a11y/role-supports-aria-props
      <section
        className={`collapsible-section ${this.props.className}${
          enableAnimation ? " animation-enabled" : ""
Loading