You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-solid-standalone

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-solid-standalone

A bundle with eslint and eslint-plugin-solid that can be used in the browser.

0.14.5
latest
Source
npmnpm
Version published
Weekly downloads
2
-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-solid-standalone

This package bundles ESLint, eslint-plugin-solid, and necessary tooling together into one package that can be used on the web or in a web worker.

It mainly exists to power ESLint support in the Solid playground.

Heavily inspired/lifted from @typescript-eslint's equivalent setup.

API

export function verify(
  code: string,
  ruleSeverityOverrides?: Record<string, Linter.Severity>
): Linter.LintMessage[];

export function verifyAndFix(
  code: string,
  ruleSeverityOverrides?: Record<string, Linter.Severity>
): Linter.FixReport;

export { plugin }; // eslint-plugin-solid
export { pluginVersion, eslintVersion };

code: a string of source code, supports TS and JSX

ruleSeverityOverrides: an optional record of rule id (i.e. "solid/reactivity") to severity (i.e. 0, 1, or 2)

FAQs

Package last updated on 11 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts