mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fa8d82d82a
* fix: Restore uuid package on frontend * Remove legacy moduleNameMapper * Add lint rule * lint - getRandomValues can be used without SSL * Update Comment.ts
35 lines
750 B
JSON
35 lines
750 B
JSON
{
|
|
"extends": ["../.oxlintrc.json"],
|
|
"plugins": ["oxc", "eslint", "typescript", "react"],
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.{jsx,tsx}"],
|
|
"rules": {
|
|
"no-restricted-globals": [
|
|
"error",
|
|
{
|
|
"name": "crypto",
|
|
"message": "Do not use, does not work in environments without SSL."
|
|
}
|
|
],
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": ["mime-types"],
|
|
"message": "Do not use the mime-types package in the browser."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"plugins": ["import"]
|
|
}
|
|
],
|
|
"env": {
|
|
"jest": true,
|
|
"browser": true
|
|
}
|
|
}
|