Skip to content

Commit b142105

Browse files
authored
fix: document alias adjustment
1 parent 5a57208 commit b142105

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,19 @@ In this case lucky you, you don't have to do anything else. The plugin should wo
111111

112112
If you have a special project setup that does not have a babel config in the project path, you can still use the plugin by passing the aliases directly to the rule. In this case you define the rule additionally in the `rules` section:
113113

114-
114+
```json
115+
"rules": {
116+
"@dword-design/import-alias/prefer-alias": [
117+
"error",
118+
{
119+
"alias": {
120+
"@": "./src",
121+
"@components: "./src/components"
122+
}
123+
}
124+
]
125+
}
126+
```
115127

116128
<!-- LICENSE/ -->
117129
## Contribute

0 commit comments

Comments
 (0)