Spaces:
Sleeping
Sleeping
Download gui/frontend/node_modules/eslint/lib/api.js from BrianLov/guiBackend: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/gui/frontend/node_modules/eslint/lib/api.js
- Command line
-
hf download hf://spaces/BrianLov/guiBackend/gui/frontend/node_modules/eslint/lib/api.js
-
curl -L -o api.js https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/gui/frontend/node_modules/eslint/lib/api.js
1.07 kB
| /** | |
| * @fileoverview Expose out ESLint and CLI to require. | |
| * @author Ian Christian Myers | |
| */ | |
| ; | |
| //----------------------------------------------------------------------------- | |
| // Requirements | |
| //----------------------------------------------------------------------------- | |
| const { ESLint } = require("./eslint/eslint"); | |
| const { Linter } = require("./linter"); | |
| const { RuleTester } = require("./rule-tester"); | |
| const { SourceCode } = require("./languages/js/source-code"); | |
| //----------------------------------------------------------------------------- | |
| // Functions | |
| //----------------------------------------------------------------------------- | |
| /** | |
| * Loads the correct `ESLint` constructor. | |
| * @returns {Promise<ESLint>} The ESLint constructor. | |
| */ | |
| async function loadESLint() { | |
| return ESLint; | |
| } | |
| //----------------------------------------------------------------------------- | |
| // Exports | |
| //----------------------------------------------------------------------------- | |
| module.exports = { | |
| Linter, | |
| loadESLint, | |
| ESLint, | |
| RuleTester, | |
| SourceCode, | |
| }; | |