You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/typegpu-docs/src/content/docs/tooling/eslint-plugin-typegpu.mdx
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,6 @@ The plugin needs to be imported and included in `defineConfig`.
39
39
```diff lang=ts
40
40
import js from "@eslint/js";
41
41
import globals from "globals";
42
-
import tseslint from "typescript-eslint";
43
42
import { defineConfig } from "eslint/config";
44
43
+import typegpu from "eslint-plugin-typegpu";
45
44
@@ -50,7 +49,6 @@ export default defineConfig([
50
49
extends: ["js/recommended"],
51
50
languageOptions: { globals: globals.browser },
52
51
},
53
-
tseslint.configs.recommended,
54
52
+ {
55
53
+ plugins: { typegpu },
56
54
+ rules: {
@@ -66,7 +64,6 @@ The plugin also exports `recommended` and `all` configs, which may be used inste
66
64
```diff lang=ts
67
65
import js from "@eslint/js";
68
66
import globals from "globals";
69
-
import tseslint from "typescript-eslint";
70
67
import { defineConfig } from "eslint/config";
71
68
+import typegpu from "eslint-plugin-typegpu";
72
69
@@ -77,7 +74,6 @@ export default defineConfig([
77
74
extends: ["js/recommended"],
78
75
languageOptions: { globals: globals.browser },
79
76
},
80
-
tseslint.configs.recommended,
81
77
+ typegpu.configs.recommended,
82
78
]);
83
79
```
@@ -120,4 +116,4 @@ The plugin needs to be listed in `jsPlugins`, and the rules have to be listed on
120
116
121
117
## Rules
122
118
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