/
githubmirror
/
eslint-plugin
Обзор
Документация
Войти
/
githubmirror
/
eslint-plugin
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/shim.d.ts
41 строка
1 KB
Emile Bangma
fix: properly scope rules to file types (#165)
30 июн 2026, 19:19
Не верифицирован
30 июн 2026, 19:19
2969989
Код
Авторство
О чём код?
declare module "@microsoft/eslint-plugin-sdl" { import type { ESLint, Rule } from "eslint"; interface SdlPlugin extends ESLint.Plugin { rules: { "no-document-write": Rule.RuleModule; "no-inner-html": Rule.RuleModule; }; } const plugin: SdlPlugin; export default plugin; } declare module "eslint-plugin-import" { import type { Rule } from "eslint"; export const rules: { "no-extraneous-dependencies": Rule.RuleModule; "no-nodejs-modules": Rule.RuleModule; [key: string]: Rule.RuleModule; }; export const configs: Record<string, unknown>; export const flatConfigs: Record<string, unknown>; } declare module "eslint-plugin-no-unsanitized" { import type { ESLint, Linter, Rule } from "eslint"; interface NoUnsanitizedPlugin extends ESLint.Plugin { rules: { property: Rule.RuleModule; method: Rule.RuleModule; }; configs: { recommended: Linter.Config; }; } const plugin: NoUnsanitizedPlugin; export default plugin; }