Skip to content

Commit

Permalink
update docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosir committed Jan 4, 2025
1 parent 57a25b0 commit e8ea9f5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions website/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -823,19 +823,21 @@ Strive to keep naming conventions consistent and readable, with important contex
### Named Export
<!-- prettier-ignore-start -->
<Rule
prefix="Named exports must be used to ensure that all imports follow a uniform pattern"
href="https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-default-export.md"
>{`'import/no-default-export': 'error'

// In case of exceptions disable the rule
overrides: [
{
files: ["src/pages/**/*"],
rules: { "import/no-default-export": "off" },
}
{
files: ["src/pages/**/*"],
rules: { "import/no-default-export": "off" },
}
]
`}</Rule>
<!-- prettier-ignore-end -->
This keeps variables, functions etc. names consistent across the entire codebase. Named exports have the benefit of
erroring when import statements try to import something that hasn't been declared.
Expand Down

0 comments on commit e8ea9f5

Please sign in to comment.