@ncontiero/eslint-config 8.3.0 → 8.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -794,6 +794,10 @@ function perfectionist(options = {}) {
|
|
|
794
794
|
"perfectionist/sort-exports": ["warn", { type: "natural" }],
|
|
795
795
|
"perfectionist/sort-imports": ["warn", {
|
|
796
796
|
customGroups: [{
|
|
797
|
+
elementNamePattern: ["^react$", "^react-(?!.*.css$).+"],
|
|
798
|
+
groupName: "react-type",
|
|
799
|
+
selector: "type"
|
|
800
|
+
}, {
|
|
797
801
|
elementNamePattern: ["^react$", "^react-(?!.*.css$).+"],
|
|
798
802
|
groupName: "react"
|
|
799
803
|
}],
|
|
@@ -801,6 +805,7 @@ function perfectionist(options = {}) {
|
|
|
801
805
|
"side-effect-style",
|
|
802
806
|
"style",
|
|
803
807
|
"type-import",
|
|
808
|
+
"react-type",
|
|
804
809
|
"type-external",
|
|
805
810
|
"type-internal",
|
|
806
811
|
[
|