mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
- This PR upgrades `biome` from `2.0.5` -> `2.1.2` and adds two new rules - [noUnusedImports](https://biomejs.dev/linter/rules/no-unused-private-class-members) ( we already had suppressions for this rule in code, but the rule itself was never enabled in the config ) - [noUnusedPrivateClassMembers](https://biomejs.dev/linter/rules/no-unused-private-class-members/) - remove stale suppressions. - remove stale code. --------- Co-authored-by: Mikael Finstad <finstaden@gmail.com>
108 lines
2.3 KiB
JSON
108 lines
2.3 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": true,
|
|
"includes": [
|
|
"packages/**",
|
|
"examples/**",
|
|
"scripts/**",
|
|
"bin/**",
|
|
"e2e/**",
|
|
"private/**",
|
|
"!packages/**/{dist,lib}",
|
|
"!node_modules",
|
|
"!.svelte-kit",
|
|
"!packages/@uppy/components/src/input.css",
|
|
"!examples/angular/**/*.html"
|
|
]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"formatWithErrors": true
|
|
},
|
|
"html": {
|
|
"experimentalFullSupportEnabled": true
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"suspicious": {
|
|
"noExplicitAny": "off"
|
|
},
|
|
"correctness": {
|
|
"useExhaustiveDependencies": "error",
|
|
"useHookAtTopLevel": "error",
|
|
"noUnusedFunctionParameters": "off",
|
|
"noUnusedImports": "error",
|
|
"noUnusedPrivateClassMembers": "error",
|
|
"noUnusedVariables": {
|
|
"level": "error",
|
|
"options": {
|
|
"ignoreRestSiblings": true
|
|
}
|
|
},
|
|
"noNestedComponentDefinitions": "error",
|
|
"noReactPropAssignments": "error"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "off"
|
|
},
|
|
"a11y": {
|
|
"noSvgWithoutTitle": "off",
|
|
"useSemanticElements": "off"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"semicolons": "asNeeded"
|
|
}
|
|
},
|
|
"assist": {
|
|
"enabled": true,
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["packages/@uppy/companion/**"],
|
|
"linter": {
|
|
"rules": {
|
|
"complexity": {
|
|
"useLiteralKeys": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["**/*.vue", "**/*.svelte", "packages/@uppy/vue/**/*.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"correctness": {
|
|
"useHookAtTopLevel": "off",
|
|
"useExhaustiveDependencies": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["examples/nextjs/**/*.css"],
|
|
"css": {
|
|
"parser": {
|
|
"tailwindDirectives": true
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|