Skip to content

Commit e71f32e

Browse files
author
Aleksander Katan
committed
Simplify code
1 parent 579de79 commit e71f32e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

apps/typegpu-docs/src/content/docs/tooling/eslint-plugin-typegpu.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ The plugin needs to be imported and included in `defineConfig`.
3939
```diff lang=ts
4040
import js from "@eslint/js";
4141
import globals from "globals";
42-
import tseslint from "typescript-eslint";
4342
import { defineConfig } from "eslint/config";
4443
+import typegpu from "eslint-plugin-typegpu";
4544

@@ -50,7 +49,6 @@ export default defineConfig([
5049
extends: ["js/recommended"],
5150
languageOptions: { globals: globals.browser },
5251
},
53-
tseslint.configs.recommended,
5452
+ {
5553
+ plugins: { typegpu },
5654
+ rules: {
@@ -66,7 +64,6 @@ The plugin also exports `recommended` and `all` configs, which may be used inste
6664
```diff lang=ts
6765
import js from "@eslint/js";
6866
import globals from "globals";
69-
import tseslint from "typescript-eslint";
7067
import { defineConfig } from "eslint/config";
7168
+import typegpu from "eslint-plugin-typegpu";
7269

@@ -77,7 +74,6 @@ export default defineConfig([
7774
extends: ["js/recommended"],
7875
languageOptions: { globals: globals.browser },
7976
},
80-
tseslint.configs.recommended,
8177
+ typegpu.configs.recommended,
8278
]);
8379
```
@@ -120,4 +116,4 @@ The plugin needs to be listed in `jsPlugins`, and the rules have to be listed on
120116

121117
## Rules
122118

123-
For the list of supported rules, as well as their specifics, see the [README.md](https://www.npmjs.com/package/eslint-plugin-typegpu) of the plugin.
119+
For the full list of supported rules, as well as their specifics, see the [README.md](https://www.npmjs.com/package/eslint-plugin-typegpu) of the plugin.

0 commit comments

Comments
 (0)