Skip to content

Commit 008051c

Browse files
authored
fix: change forbid enum markdown (tomalaforge#908)
1 parent 49a1148 commit 008051c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/content/docs/challenges/nx/27-forbid-enum-rule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ In this first example, we will create a rule that forbids the use of enums. The
1818

1919
You will also need to write tests to verify the rule's functionality.
2020

21-
The `tools/eslint-rules` folder contains the starter code for this challenge.
21+
The starter code for this challenge can be found (from the root folder) inside `tools/eslint-rules/rules`.
2222

23-
To test the rule inside your project, add `"@nrwl/nx/workspace/forbidden-enum": "error"` to the `eslintrc.json`. You can navigate to Challenge 47, `Enums vs. Union Types', and you should immediately see an error.
23+
To test the rule inside your project, add `"@nx/workspace/forbidden-enum": "error"` to the `eslintrc.json`. You can navigate to Challenge 47, `Enums vs. Union Types', and you should immediately see an error.
2424

2525
To assist you with AST (Abstract Syntax Tree) definitions, you can visit the [AST Explorer](https://astexplorer.net/) and use `JavaScript`, `@typescript-eslint/parser`, and `ESLint-v8` as the transformation methods. However, please note that you will only get the `type` information there. The transformation function may not work for TypeScript types since the editor is in JavaScript.
2626

0 commit comments

Comments
 (0)