@types/jshint
- Version 2.12.4
- Published
- 4.91 kB
- No dependencies
- MIT license
Install
npm i @types/jshint
yarn add @types/jshint
pnpm add @types/jshint
Overview
TypeScript definitions for jshint
Index
Functions
Interfaces
Type Aliases
Namespaces
Functions
function JSHINT
JSHINT: typeof JSHINT;
Parameter source
The input JavaScript source code. Type: string or an array of strings (each element is interpreted as a newline)
Parameter options
The linting options to use when analyzing the source code. Type: an object whose property names are the desired options to use and whose property values are the configuration values for those properties.
Parameter predef
variables defined outside of the current file; the behavior of this argument is identical to the globals linting option. Type: an object whose property names are the global variable identifiers and whose property values control whether each variable should be considered read-only
Example 1
JSHINT(["'use strict';", "console.log('hello, world!');"]);
Example 2
JSHINT(mySource, { undef: true });
Example 3
JSHINT(mySource, myOptions, { jQuery: false });
Interfaces
interface ExtensionAPI
interface ExtensionAPI {}
interface LintData
interface LintData {}
property errors
errors?: LintError[] | undefined;
property functions
functions?: LintFunction[] | undefined;
property globals
globals?: string[] | undefined;
property implieds
implieds?: any;
property json
json?: any;
property member
member?: any;
property options
options?: LintOptions | undefined;
property unused
unused?: LintUnused[] | undefined;
interface LintError
interface LintError {}
interface LintFunction
interface LintFunction {}
interface LintUnused
interface LintUnused {}
Type Aliases
type LintOptions
type LintOptions = Record<string, any>;
type ModuleFunction
type ModuleFunction = (api: ExtensionAPI) => void;
Namespaces
namespace JSHINT
namespace JSHINT {}
variable errors
const errors: LintError[];
An array of warnings and errors generated by the most recent invocation of JSHINT.
variable jshint
const jshint: typeof JSHINT;
function addModule
addModule: (func: ModuleFunction) => void;
function data
data: () => LintData | null | undefined;
Generate a report containing details about the most recent invocation of JSHINT.
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/jshint
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/jshint)
- HTML<a href="https://www.jsdocs.io/package/@types/jshint"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2379 ms. - Missing or incorrect documentation? Open an issue for this package.