Skip to content

Commit

Permalink
Merge pull request #1538 from nikhilverma360/ESlint-auto-imoprts
Browse files Browse the repository at this point in the history
fix(web): configured ESLint "import/order"
  • Loading branch information
alcercu authored Mar 8, 2024
2 parents 6b3deb5 + a668d08 commit 004c04f
Showing 1 changed file with 64 additions and 1 deletion.
65 changes: 64 additions & 1 deletion web/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,69 @@
"tsx": "never"
}
],
"import/no-unresolved": "off"
"import/no-unresolved": "off",
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"pathGroups": [
{
"pattern": "{react,styled-components}",
"group": "external",
"position": "before"
},
{
"pattern": "@kleros/**",
"group": "external",
"position": "after"
},
{
"pattern": "{svgs/**,assets/**}",
"group": "internal",
"position": "after"
},
{
"pattern": "{hooks/**,utils/**,consts/**,types/**,context/**,connectors/**,}",
"group": "internal",
"position": "after"
},
{
"pattern": "{queries/**,}",
"group": "internal",
"position": "after"
},
{
"pattern": "{src/**,}",
"group": "internal",
"position": "after"
},
{
"pattern": "{styles/**,}",
"group": "internal",
"position": "after"
},
{
"pattern": "{layout/**,pages/**,components/**,}",
"group": "internal",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": [
"builtin"
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
}

0 comments on commit 004c04f

Please sign in to comment.