Skip to content

Commit 99f3158

Browse files
committed
docs(extensions): improved cases for using @/...
1 parent 202e5e0 commit 99f3158

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/rules/extensions.md

+6
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ import foo from './foo';
109109
import bar from './bar';
110110

111111
import Component from './Component';
112+
113+
import foo from '@/foo';
112114
```
113115

114116
The following patterns are not considered problems when configuration set to "always":
@@ -121,6 +123,8 @@ import bar from './bar.json';
121123
import Component from './Component.jsx';
122124

123125
import * as path from 'path';
126+
127+
import foo from '@/foo.js';
124128
```
125129

126130
The following patterns are considered problems when configuration set to "ignorePackages":
@@ -145,6 +149,7 @@ import Component from './Component.jsx';
145149

146150
import express from 'express';
147151

152+
import foo from '@/foo'
148153
```
149154

150155
The following patterns are not considered problems when configuration set to `['error', 'always', {ignorePackages: true} ]`:
@@ -156,6 +161,7 @@ import baz from 'foo/baz.js';
156161

157162
import express from 'express';
158163

164+
import foo from '@/foo';
159165
```
160166

161167
## When Not To Use It

0 commit comments

Comments
 (0)