Skip to content

Commit 53a2386

Browse files
committed
Consider core/rendering/Styles to be a Constant in import ordering
1 parent af3ba57 commit 53a2386

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

linting/.imports.cjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ function getSubdirectories(prefix, topDir) {
3131
* @param {string} pattern the new pattern to add
3232
*/
3333
function addPath(pathGroupsIn, pattern) {
34+
if (pattern === "core/rendering/Styles")
35+
return;
3436
pathGroupsIn.push({"pattern": pattern, "group": "external", "position": "after"});
3537
pathGroupsIn.push({"pattern": pattern + "/*", "group": "external", "position": "after"});
3638
}
@@ -41,7 +43,7 @@ const siteDirectories = ["shared", "analog", "digital", "landing"];
4143
const siteSubDirectories = ["utils", "api", "state", "components", "containers", "tests"];
4244
const pathGroups = [
4345
{"pattern": "react", "group": "external"},
44-
{"pattern": "{**,**/,,./,../,*}{C,c}onstants{**,/**,,*}", "group": "external", "position": "after"},
46+
{"pattern": "{**,**/,,./,../,*}{Constants,constants,core/rendering/Styles}{**,/**,,*}", "group": "external", "position": "after"},
4547
{"pattern": "Vector", "group": "external", "position": "after"},
4648
{"pattern": "math/**", "group": "external", "position": "after"},
4749
{"pattern": "test/helpers/*", "group": "external", "position": "after"},

0 commit comments

Comments
 (0)