mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-16 23:45:50 +00:00
update oxfmt to use anti-slop
This commit is contained in:
+9
-1
@@ -2,5 +2,13 @@
|
|||||||
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||||
"printWidth": 80,
|
"printWidth": 80,
|
||||||
"sortPackageJson": false,
|
"sortPackageJson": false,
|
||||||
"ignorePatterns": ["pnpm-lock.yaml", "node_modules", "dist"]
|
"ignorePatterns": [
|
||||||
|
"pnpm-lock.yaml",
|
||||||
|
"node_modules",
|
||||||
|
"dist",
|
||||||
|
".agents",
|
||||||
|
".claude",
|
||||||
|
"agent-workspace",
|
||||||
|
"tools/oxlint/anti-slop"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+37
-1
@@ -1,6 +1,22 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||||
|
"ignorePatterns": [
|
||||||
|
".agent/**",
|
||||||
|
".agents/**",
|
||||||
|
".claude/**",
|
||||||
|
".codex/**",
|
||||||
|
".continue/**",
|
||||||
|
".cursor/**",
|
||||||
|
".gemini/**",
|
||||||
|
".opencode/**",
|
||||||
|
".pi/**",
|
||||||
|
".roo/**",
|
||||||
|
".windsurf/**",
|
||||||
|
"agent-workspace/**",
|
||||||
|
"tools/oxlint/anti-slop/**"
|
||||||
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
"oxc",
|
||||||
"eslint",
|
"eslint",
|
||||||
"import",
|
"import",
|
||||||
"jsdoc",
|
"jsdoc",
|
||||||
@@ -13,7 +29,8 @@
|
|||||||
],
|
],
|
||||||
"jsPlugins": [
|
"jsPlugins": [
|
||||||
"eslint-plugin-storybook",
|
"eslint-plugin-storybook",
|
||||||
"eslint-plugin-element-call"
|
"eslint-plugin-element-call",
|
||||||
|
{ "name": "anti-slop", "specifier": "./tools/oxlint/anti-slop/index.ts" }
|
||||||
// TODO: Re-enable once oxlint supports lint rules that rely on TypeScript type-awareness.
|
// TODO: Re-enable once oxlint supports lint rules that rely on TypeScript type-awareness.
|
||||||
// "eslint-plugin-rxjs"
|
// "eslint-plugin-rxjs"
|
||||||
],
|
],
|
||||||
@@ -36,6 +53,25 @@
|
|||||||
"element-call/no-observablescope-leak": "error",
|
"element-call/no-observablescope-leak": "error",
|
||||||
"element-call/no-top-level-logger-get-child": "error",
|
"element-call/no-top-level-logger-get-child": "error",
|
||||||
"element-call/sdk-import-boundary": "error",
|
"element-call/sdk-import-boundary": "error",
|
||||||
|
"oxc/no-accumulating-spread": "error",
|
||||||
|
"anti-slop/no-array-filter-map": "error",
|
||||||
|
"anti-slop/no-reduce-accumulator-copy": "error",
|
||||||
|
"anti-slop/no-chained-type-assertions": "error",
|
||||||
|
"anti-slop/no-conditional-empty-object-spread": "error",
|
||||||
|
"anti-slop/no-known-value-widening": "error",
|
||||||
|
"anti-slop/no-module-mocking": "error",
|
||||||
|
"anti-slop/no-object-parameters": "error",
|
||||||
|
"anti-slop/no-reflect-apply": "error",
|
||||||
|
"anti-slop/no-reflect-get": "error",
|
||||||
|
"anti-slop/no-runtime-typeof": "error",
|
||||||
|
"anti-slop/no-shape-in-symbol-names": "error",
|
||||||
|
"anti-slop/no-unknown-parameters": "error",
|
||||||
|
"anti-slop/no-unknown-returns": "error",
|
||||||
|
"anti-slop/no-unknown-type-aliases": "error",
|
||||||
|
"anti-slop/no-unsafe-dictionary-type": "error",
|
||||||
|
"anti-slop/no-widen-then-assert": "error",
|
||||||
|
"anti-slop/require-readable-spacing": "error",
|
||||||
|
"anti-slop/require-safety-comment-for-type-assertion": "error",
|
||||||
"jsdoc/empty-tags": "error",
|
"jsdoc/empty-tags": "error",
|
||||||
"jsdoc/check-property-names": "error",
|
"jsdoc/check-property-names": "error",
|
||||||
"jsdoc/require-param-description": "warn",
|
"jsdoc/require-param-description": "warn",
|
||||||
|
|||||||
@@ -19,7 +19,12 @@ export default {
|
|||||||
"vite-component-dev.config.ts",
|
"vite-component-dev.config.ts",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
entry: ["src/main.tsx", "eslint/index.js", "i18next.config.ts"],
|
entry: [
|
||||||
|
"src/main.tsx",
|
||||||
|
"eslint/index.js",
|
||||||
|
"tools/oxlint/anti-slop/index.ts",
|
||||||
|
"i18next.config.ts",
|
||||||
|
],
|
||||||
ignoreBinaries: [
|
ignoreBinaries: [
|
||||||
// This is deprecated, so Knip doesn't actually recognize it as a globally
|
// This is deprecated, so Knip doesn't actually recognize it as a globally
|
||||||
// installed binary. TODO We should switch to Compose v2:
|
// installed binary. TODO We should switch to Compose v2:
|
||||||
@@ -33,7 +38,14 @@ export default {
|
|||||||
// Deliberately added prior to any component or business logic
|
// Deliberately added prior to any component or business logic
|
||||||
// implementation
|
// implementation
|
||||||
"src/state/ServiceInterruptionsViewModel.ts",
|
"src/state/ServiceInterruptionsViewModel.ts",
|
||||||
|
// Agent skills installed by the skills CLI, not project source
|
||||||
|
".agents/**",
|
||||||
],
|
],
|
||||||
|
ignoreIssues: {
|
||||||
|
// Vendored anti-slop plugin: upstream owns its exports, and effect/ stays
|
||||||
|
// unregistered until this repo depends on effect
|
||||||
|
"tools/oxlint/anti-slop/**": ["files", "exports", "types"],
|
||||||
|
},
|
||||||
ignoreDependencies: [
|
ignoreDependencies: [
|
||||||
// Used in CSS
|
// Used in CSS
|
||||||
"normalize.css",
|
"normalize.css",
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
"@livekit/components-react": "^2.0.0",
|
"@livekit/components-react": "^2.0.0",
|
||||||
"@livekit/track-processors": "^0.7.1",
|
"@livekit/track-processors": "^0.7.1",
|
||||||
"@mediapipe/tasks-vision": "^0.10.18",
|
"@mediapipe/tasks-vision": "^0.10.18",
|
||||||
|
"@oxlint/plugins": "1.81.0",
|
||||||
"@playwright/test": "^1.60.0",
|
"@playwright/test": "^1.60.0",
|
||||||
"@radix-ui/react-dialog": "^1.0.4",
|
"@radix-ui/react-dialog": "^1.0.4",
|
||||||
"@radix-ui/react-slider": "^1.1.2",
|
"@radix-ui/react-slider": "^1.1.2",
|
||||||
|
|||||||
Generated
+9
@@ -49,6 +49,9 @@ importers:
|
|||||||
'@mediapipe/tasks-vision':
|
'@mediapipe/tasks-vision':
|
||||||
specifier: ^0.10.18
|
specifier: ^0.10.18
|
||||||
version: 0.10.35
|
version: 0.10.35
|
||||||
|
'@oxlint/plugins':
|
||||||
|
specifier: 1.81.0
|
||||||
|
version: 1.81.0
|
||||||
'@playwright/test':
|
'@playwright/test':
|
||||||
specifier: ^1.60.0
|
specifier: ^1.60.0
|
||||||
version: 1.62.1
|
version: 1.62.1
|
||||||
@@ -1899,6 +1902,10 @@ packages:
|
|||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
|
'@oxlint/plugins@1.81.0':
|
||||||
|
resolution: {integrity: sha512-HhD8kd3r6XpelZkhxhRty/po8V6yK1VV63Eq4kSsOS2IoHUywG3DV2EX+z/ZHw46aLI74Y6aA604NRiAqLKW9w==}
|
||||||
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
|
|
||||||
'@parcel/watcher-android-arm64@2.6.0':
|
'@parcel/watcher-android-arm64@2.6.0':
|
||||||
resolution: {integrity: sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==}
|
resolution: {integrity: sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==}
|
||||||
engines: {node: '>= 10.0.0'}
|
engines: {node: '>= 10.0.0'}
|
||||||
@@ -7513,6 +7520,8 @@ snapshots:
|
|||||||
'@oxlint/binding-win32-x64-msvc@1.81.0':
|
'@oxlint/binding-win32-x64-msvc@1.81.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
'@oxlint/plugins@1.81.0': {}
|
||||||
|
|
||||||
'@parcel/watcher-android-arm64@2.6.0':
|
'@parcel/watcher-android-arm64@2.6.0':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user