diff --git a/packages/babel-generator/src/index.ts b/packages/babel-generator/src/index.ts
--- a/packages/babel-generator/src/index.ts
+++ b/packages/babel-generator/src/index.ts
@@ -71,7 +71,7 @@ function normalizeOptions(
       minimal: process.env.BABEL_8_BREAKING ? true : false,
       ...opts.jsescOption,
     },
-    recordAndTupleSyntaxType: opts.recordAndTupleSyntaxType,
+    recordAndTupleSyntaxType: opts.recordAndTupleSyntaxType ?? "hash",
     topicToken: opts.topicToken,
     importAttributesKeyword: opts.importAttributesKeyword,
   };

diff --git a/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/input.js b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/input.js
new file mode 100644
--- /dev/null
+++ b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/input.js
@@ -0,0 +1 @@
+#[ 1 ]
diff --git a/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/options.json b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/options.json
new file mode 100644
--- /dev/null
+++ b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/options.json
@@ -0,0 +1,3 @@
+{
+  "plugins": [["recordAndTuple", { "syntaxType": "hash" }]]
+}
diff --git a/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/output.js b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/output.js
new file mode 100644
--- /dev/null
+++ b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/output.js
@@ -0,0 +1 @@
+#[1];
\ No newline at end of file

[Bug]: Error: undefined is not a valid recordAndTuple syntax type
### 💻

- [x] Would you like to work on a fix?

### How are you using Babel?

Programmatic API (`babel.transform`, `babel.parse`)

### Input code

```js
const parser = require('@babel/parser');
const traverse = require('@babel/traverse').default;

const ast = parser.parse('const a = #[1]', {
    sourceType: 'module',
    plugins: [
        'recordAndTuple'
    ],
});

traverse(ast, {
    TupleExpression(path) {
        console.log(path.toString());
    }
});
```

### Configuration file name

_No response_

### Configuration

_No response_

### Current and expected behavior

Current beheviour is crash:

```js
/Users/coderaiser/printer/node_modules/@babel/generator/lib/generators/types.js:136
    throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);
    ^

Error: undefined is not a valid recordAndTuple syntax type
    at Generator.TupleExpression (/Users/coderaiser/printer/node_modules/@babel/generator/lib/generators/types.js:136:11)
    at Buffer.exactSource (/Users/coderaiser/printer/node_modules/@babel/generator/lib/buffer.js:239:7)
    at Generator.exactSource (/Users/coderaiser/printer/node_modules/@babel/generator/lib/printer.js:163:15)
    at Generator.print (/Users/coderaiser/printer/node_modules/@babel/generator/lib/printer.js:333:10)
    at Generator.generate (/Users/coderaiser/printer/node_modules/@babel/generator/lib/printer.js:51:10)
    at Generator.generate (/Users/coderaiser/printer/node_modules/@babel/generator/lib/index.js:19:18)
    at generate (/Users/coderaiser/printer/node_modules/@babel/generator/lib/index.js:90:14)
    at NodePath.toString (/Users/coderaiser/printer/node_modules/@babel/traverse/lib/path/index.js:129:35)
    at TupleExpression (/Users/coderaiser/printer/1.js:13:26)
    at NodePath._call (/Users/coderaiser/printer/node_modules/@babel/traverse/lib/path/context.js:46:20)
```

Would be great to receive string representation of `path`.

### Environment

Latest versions.

### Possible solution

Set default to `hash` in `@babel/generator`:

https://github.com/babel/babel/blob/61147b748a4ad9cb5342c501881a225980938a6f/packages/babel-generator/src/index.ts#L74

### Additional context

_No response_

Hey @coderaiser! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant [Slack community](https://babeljs.slack.com) that typically always has someone willing to help. You can sign-up [here](https://slack.babeljs.io/) for an invite.
packages/babel-generator/test/printer.skip-bundled.js packages/babel-generator/test/arrow-functions.js
packages/babel-generator/test/index.js