Skip to content

Commit

Permalink
chore(docs): fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Gaudin committed Jul 4, 2024
1 parent 6505baf commit 03fb003
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 17 deletions.
43 changes: 27 additions & 16 deletions apps/docs/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"PackageInstallation": true,
"PropTable": true,
"CodeOnlyExample": true,
"Example": true
"Example": true,
"FeatureFlag": true
},
"overrides": [
{
Expand Down Expand Up @@ -57,21 +58,31 @@
],
"react/destructuring-assignment": "off",
"no-param-reassign": "off",
"no-restricted-imports": ["error", {
"patterns": [
{
"group": ["../../index.ts", "../index.ts", "../../../index.ts", "./index.ts"],
"message": "Avoid importing from index.ts files directly next or above the current file"
}
],
"paths": [
{
"name": "react",
"importNames": ["default"],
"message": "import React from \"react\" is no longer necessary and should be avoided. "
}
]
}]
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": [
"../../index.ts",
"../index.ts",
"../../../index.ts",
"./index.ts"
],
"message": "Avoid importing from index.ts files directly next or above the current file"
}
],
"paths": [
{
"name": "react",
"importNames": [
"default"
],
"message": "import React from \"react\" is no longer necessary and should be avoided. "
}
]
}
]
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/components/buttons/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ links:
<FeatureFlag flag="next">
## Guidelines

TODO: If we have some guidelines about this component's usage
TODO: If we have some guidelines about this component&apos;s usage

### Accessibility ?

Expand Down

0 comments on commit 03fb003

Please sign in to comment.