File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
25
25
- [ ` extensions ` ] /` importType ` : fix isScoped treating @/abc as scoped module ([ #2146 ] , thanks [ @rperello ] )
26
26
27
27
### Changed
28
+ - [ Docs] [ ` extensions ` ] : improved cases for using ` @/... ` ([ #2140 ] , thanks [ @wenfangdu ] )
28
29
- [ Docs] [ ` extensions ` ] : removed incorrect cases ([ #2138 ] , thanks [ @wenfangdu ] )
29
30
- [ Tests] [ ` order ` ] : add tests for ` pathGroupsExcludedImportTypes: ['type'] ` ([ #2158 ] , thanks [ @atav32 ] )
30
31
- [ Docs] [ ` order ` ] : improve the documentation for the ` pathGroupsExcludedImportTypes ` option ([ #2156 ] , thanks [ @liby ] )
@@ -892,6 +893,7 @@ for info on changes for earlier releases.
892
893
[ #2158 ] : https://github.com/import-js/eslint-plugin-import/pull/2158
893
894
[ #2156 ] : https://github.com/import-js/eslint-plugin-import/pull/2156
894
895
[ #2146 ] : https://github.com/import-js/eslint-plugin-import/pull/2146
896
+ [ #2140 ] : https://github.com/import-js/eslint-plugin-import/pull/2140
895
897
[ #2138 ] : https://github.com/import-js/eslint-plugin-import/pull/2138
896
898
[ #2121 ] : https://github.com/import-js/eslint-plugin-import/pull/2121
897
899
[ #2112 ] : https://github.com/import-js/eslint-plugin-import/pull/2112
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ import foo from './foo';
109
109
import bar from ' ./bar' ;
110
110
111
111
import Component from ' ./Component' ;
112
+
113
+ import foo from ' @/foo' ;
112
114
```
113
115
114
116
The following patterns are not considered problems when configuration set to "always":
@@ -121,6 +123,8 @@ import bar from './bar.json';
121
123
import Component from ' ./Component.jsx' ;
122
124
123
125
import * as path from ' path' ;
126
+
127
+ import foo from ' @/foo.js' ;
124
128
```
125
129
126
130
The following patterns are considered problems when configuration set to "ignorePackages":
@@ -145,6 +149,7 @@ import Component from './Component.jsx';
145
149
146
150
import express from ' express' ;
147
151
152
+ import foo from ' @/foo'
148
153
```
149
154
150
155
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';
156
161
157
162
import express from ' express' ;
158
163
164
+ import foo from ' @/foo' ;
159
165
```
160
166
161
167
## When Not To Use It
You can’t perform that action at this time.
0 commit comments