lint-check

Jalankan lint pada paket yang terpengaruh, parse error, dan perbaiki otomatis masalah umum (design tokens, React.FC, keamanan SSR, pembatasan impor)

npx skills add https://github.com/microsoft/fluentui --skill lint-check

Lint Check and Auto-Fix

Run linting and fix common issues for Fluent UI packages.

Steps

  1. Determine scope. If $ARGUMENTS is provided, lint that specific package. Otherwise, lint affected packages:

    # Specific package
    yarn nx run @fluentui/$ARGUMENTS:lint
    
    # Or affected packages
    yarn nx affected -t lint
    
  2. Parse the output and categorize errors by the custom Fluent UI ESLint rules:

    RuleWhat it catchesHow to fix
    @fluentui/ban-context-exportContext exported from wrong layerMove to react-shared-contexts package
    @fluentui/ban-instanceof-html-elementinstanceof HTMLElement (breaks iframes)Use element.tagName or feature detection
    @fluentui/no-global-reactReact.FC, React.useState etc.Use named imports: import { useState } from 'react'
    @fluentui/no-restricted-importsBanned import pathsUse the allowed import path from the error message
    @fluentui/no-context-default-valueContext created without undefined defaultUse createContext(undefined) and add a guard hook
  3. Auto-fix any issues found by editing the source files directly. For each fix:

    • Read the file
    • Apply the fix
    • Verify the fix by re-running lint on that specific file
  4. Report a summary of what was found and fixed.

References

Lebih banyak skill dari microsoft

oss-growth
microsoft
Persona peretas pertumbuhan OSS
agent-framework-azure-ai-py
microsoft
Bangun agen Azure AI Foundry menggunakan Microsoft Agent Framework Python SDK (agent-framework-azure-ai). Gunakan saat membuat agen persisten dengan AzureAIAgentsProvider, menggunakan alat yang dihosting (code interpreter, file search, web search), mengintegrasikan server MCP, mengelola utas percakapan, atau mengimplementasikan respons streaming. Mencakup alat fungsi, keluaran terstruktur, dan agen multi-alat.
development
airunway-aks-setup
microsoft
Siapkan AI Runway di AKS — dari klaster kosong hingga model berjalan. Mencakup verifikasi klaster, instalasi controller, penilaian GPU, penyiapan penyedia, dan deployment pertama. KAPAN: "setup AI Runway", "onboard AKS cluster", "install AI Runway", "airunway setup", "deploy model to AKS", "GPU inference on AKS", "KAITO setup on AKS", "run LLM on AKS", "vLLM on AKS", "set up model serving on AKS", "AI Runway controller".
devops
appinsights-instrumentation
microsoft
Panduan untuk instrumentasi aplikasi web dengan Azure Application Insights. Menyediakan pola telemetri, pengaturan SDK, dan referensi konfigurasi. KAPAN: cara menginstrumentasi aplikasi, SDK App Insights, pola telemetri, apa itu App Insights, panduan Application Insights, contoh instrumentasi, praktik terbaik APM.
devops
applicationinsights-web-ts
microsoft
Instrumentasi aplikasi browser/web dengan Application Insights JavaScript SDK (@microsoft/applicationinsights-web). Digunakan untuk Real User Monitoring (RUM) — tampilan halaman, klik, dependensi AJAX/fetch, pengecualian, peristiwa kustom, dan jejak agen GenAI sisi browser yang dikorelasikan dengan jejak OpenTelemetry backend. Mencakup pengaturan SDK Loader Script dan npm, ekstensi kerangka kerja (React, React Native, Angular), Click Analytics, inisialisasi telemetri, dan konvensi semantik OTel GenAI untuk span agen/alat/model yang dipancarkan dari browser.
devops
azure-ai-anomalydetector-java
microsoft
Bangun aplikasi deteksi anomali dengan Azure AI Anomaly Detector SDK untuk Java. Gunakan saat mengimplementasikan deteksi anomali univariat/multivariat, analisis deret waktu, atau pemantauan bertenaga AI.
development
azure-ai-language-conversations-py
microsoft
Implementasikan Pemahaman Bahasa Percakapan (CLU) menggunakan SDK Python azure-ai-language-conversations. Gunakan saat bekerja dengan ConversationAnalysisClient untuk menganalisis maksud dan entitas percakapan, membangun fitur NLP, atau mengintegrasikan pemahaman bahasa ke dalam aplikasi.
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 untuk Python. Gunakan untuk ruang kerja ML, pekerjaan, model, kumpulan data, komputasi, dan pipeline. Pemicu: "azure-ai-ml", "MLClient", "ruang kerja", "registri model", "pekerjaan pelatihan", "kumpulan data".
development