File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
15
15
### Changed
16
16
- [ Docs] ` extensions ` : removed incorrect cases ([ #2138 ] , thanks [ @wenfangdu ] )
17
17
- [ Tests] ` order ` : add tests for ` pathGroupsExcludedImportTypes: ['type'] ` ([ #2158 ] , thanks [ @atav32 ] )
18
+ - [ Docs] ` order ` : improve the documentation for the ` pathGroupsExcludedImportTypes ` option ([ #2156 ] , thanks [ @liby ] )
18
19
19
20
## [ 2.23.4] - 2021-05-29
20
21
@@ -812,6 +813,7 @@ for info on changes for earlier releases.
812
813
813
814
[ #2160 ] : https://github.com/benmosher/eslint-plugin-import/pull/2160
814
815
[ #2158 ] : https://github.com/benmosher/eslint-plugin-import/pull/2158
816
+ [ #2156 ] : https://github.com/benmosher/eslint-plugin-import/pull/2156
815
817
[ #2138 ] : https://github.com/benmosher/eslint-plugin-import/pull/2138
816
818
[ #2121 ] : https://github.com/benmosher/eslint-plugin-import/pull/2121
817
819
[ #2099 ] : https://github.com/benmosher/eslint-plugin-import/pull/2099
@@ -1347,6 +1349,7 @@ for info on changes for earlier releases.
1347
1349
[ @lencioni ] : https://github.com/lencioni
1348
1350
[ @leonardodino ] : https://github.com/leonardodino
1349
1351
[ @Librazy ] : https://github.com/Librazy
1352
+ [ @liby ] : https://github.com/liby
1350
1353
[ @lilling ] : https://github.com/lilling
1351
1354
[ @ljharb ] : https://github.com/ljharb
1352
1355
[ @ljqx ] : https://github.com/ljqx
Original file line number Diff line number Diff line change @@ -148,6 +148,27 @@ Example:
148
148
}]
149
149
}
150
150
```
151
+
152
+ You can also use ` patterns ` (e.g., ` react ` , ` react-router-dom ` , etc).
153
+
154
+ Example:
155
+ ``` json
156
+ {
157
+ "import/order" : [
158
+ " error" ,
159
+ {
160
+ "pathGroups" : [
161
+ {
162
+ "pattern" : " react" ,
163
+ "group" : " builtin" ,
164
+ "position" : " before"
165
+ }
166
+ ],
167
+ "pathGroupsExcludedImportTypes" : [" react" ]
168
+ }
169
+ ]
170
+ }
171
+ ```
151
172
The default value is ` ["builtin", "external"] ` .
152
173
153
174
### ` newlines-between: [ignore|always|always-and-inside-groups|never] ` :
You can’t perform that action at this time.
0 commit comments