Skip to content

Commit d884e0a

Browse files
committed
docs: update documentation for TypeScript with TS Blank ESLint Parser setup
1 parent d1579e2 commit d884e0a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

website/content/docs/getting-started/typescript-with-alternative-parser.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
title: TypeScript with alternative parser
3-
description: Getting started with TypeScript + TS Blank Space ESLint Parser setup
3+
description: Getting started with TypeScript + TS Blank ESLint Parser setup
44
---
55

6-
<Callout type="warn">The `ts-blank-space-eslint-parser` is a work in progress and not support rules that require type information or TypeScript syntax that need transformation like enums, namespaces, decorators. Use it with caution.</Callout>
6+
<Callout type="warn">The `ts-blank-eslint-parser` is a work in progress and not support rules that require type information or TypeScript syntax that need transformation like enums, namespaces, decorators. Use it with caution.</Callout>
77

88
<Callout type="warn">When using this approach, the auto-fix may not work properly, it is recommended to use https://github.com/chiefmikey/eslint-plugin-disable-autofix to disable any problematic auto-fix without turning off the rule.</Callout>
99

1010
## Install
1111

1212
```sh copy title="Terminal"
1313
# npm
14-
npm install --save-dev eslint ts-blank-space-eslint-parser @eslint-react/eslint-plugin
14+
npm install --save-dev eslint ts-blank-eslint-parser @eslint-react/eslint-plugin
1515

1616
# pnpm
17-
pnpm add --save-dev eslint ts-blank-space-eslint-parser @eslint-react/eslint-plugin
17+
pnpm add --save-dev eslint ts-blank-eslint-parser @eslint-react/eslint-plugin
1818

1919
# yarn
20-
yarn add --dev eslint ts-blank-space-eslint-parser @eslint-react/eslint-plugin
20+
yarn add --dev eslint ts-blank-eslint-parser @eslint-react/eslint-plugin
2121
```
2222

2323
## Setup
@@ -27,7 +27,7 @@ yarn add --dev eslint ts-blank-space-eslint-parser @eslint-react/eslint-plugin
2727
// @ts-check
2828
import eslintJs from "@eslint/js";
2929
import eslintReact from "@eslint-react/eslint-plugin";
30-
import tsBlankSpaceEslintParser from "ts-blank-space-eslint-parser";
30+
import tsBlankEslintParser from "ts-blank-eslint-parser";
3131

3232
export default tseslint.config({
3333
files: ["**/*.ts", "**/*.tsx"],
@@ -36,7 +36,7 @@ export default tseslint.config({
3636
eslintReact.configs.recommended,
3737
],
3838
languageOptions: {
39-
parser: tsBlankSpaceEslintParser,
39+
parser: tsBlankEslintParser,
4040
},
4141
});
4242
```
@@ -63,7 +63,7 @@ yarn add --dev typescript-eslint
6363
// @ts-check
6464
import eslintJs from "@eslint/js";
6565
import eslintReact from "@eslint-react/eslint-plugin";
66-
import tsBlankSpaceEslintParser from "ts-blank-space-eslint-parser";
66+
import tsBlankEslintParser from "ts-blank-eslint-parser";
6767
import tseslint from "typescript-eslint";
6868

6969
export default tseslint.config({
@@ -73,9 +73,9 @@ export default tseslint.config({
7373
eslintReact.configs.recommended,
7474
],
7575
languageOptions: {
76-
parser: tsBlankSpaceEslintParser,
76+
parser: tsBlankEslintParser,
7777
parserOptions: {
78-
// Fallback to `@typescript-eslint/parser` when `ts-blank-space-eslint-parser` fails
78+
// Fallback to `@typescript-eslint/parser` when `ts-blank-eslint-parser` fails
7979
fallbackParsers: [
8080
{
8181
parser: tseslint.parser,

0 commit comments

Comments
 (0)