mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
c60bca777f
As #4475 says, MD5 is not available in secure places anymore. This PR swaps out gravatar-url with an inline function using crypto:sha256 which is FIPS-140-2 compliant. Since we only used this method for generating avatar URLs the extra customization wasn't needed and we could hard code the URL parameters. fixes: Linear https://linear.app/unleash/issue/SR-112/gh-support-swap-out-gravatar-url-lib closes: #4475
96 lines
2.0 KiB
JSON
96 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/1.2.2/schema.json",
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"performance": {
|
|
"noDelete": "off"
|
|
},
|
|
"correctness": {
|
|
"noUnsafeOptionalChaining": "off"
|
|
},
|
|
"complexity": {
|
|
"noBannedTypes": "off",
|
|
"noUselessConstructor": "off",
|
|
"useOptionalChain": "warn",
|
|
"noStaticOnlyClass": "off"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "off",
|
|
"noInferrableTypes": "off",
|
|
"noUnusedTemplateLiteral": "off",
|
|
"useSingleVarDeclarator": "off"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "off",
|
|
"noExtraNonNullAssertion": "off",
|
|
"noRedeclare": "off",
|
|
"noPrototypeBuiltins": "off"
|
|
}
|
|
},
|
|
"ignore": [
|
|
"node_modules",
|
|
"docker",
|
|
"bundle.js",
|
|
"website/blog",
|
|
"website/build",
|
|
"website/core",
|
|
"website/docs",
|
|
"website/i18n/*.js",
|
|
"website/pages",
|
|
"website/translated_docs",
|
|
"website",
|
|
"setupJest.js",
|
|
"dist",
|
|
"build",
|
|
"src/migrations/*.js",
|
|
"src/test/examples/*.json",
|
|
"website/**/*.js",
|
|
"coverage",
|
|
"CHANGELOG.md"
|
|
]
|
|
},
|
|
"organizeImports": {
|
|
"enabled": false
|
|
},
|
|
"formatter": {
|
|
"indentStyle": "space",
|
|
"ignore": [
|
|
"node_modules",
|
|
"docker",
|
|
"bundle.js",
|
|
"website/blog",
|
|
"website/build",
|
|
"website/core",
|
|
"website/docs",
|
|
"website/i18n/*.js",
|
|
"website/pages",
|
|
"website/translated_docs",
|
|
"website",
|
|
"setupJest.js",
|
|
"dist",
|
|
"build",
|
|
"src/migrations/*.js",
|
|
"src/migrations/*.json",
|
|
"src/test/examples/*.json",
|
|
"website/**/*.js",
|
|
"coverage"
|
|
],
|
|
"indentSize": 4
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"semicolons": "always",
|
|
"quoteStyle": "single",
|
|
"jsxQuoteStyle": "single",
|
|
"indentSize": 4
|
|
}
|
|
},
|
|
"json": {
|
|
"formatter": {
|
|
"indentSize": 2
|
|
}
|
|
}
|
|
}
|