feat: adding linter for commits

This commit is contained in:
Carlos Gutierrez
2021-11-22 09:39:27 -06:00
commit 2c7c117aa1
3093 changed files with 1215197 additions and 0 deletions

28
node_modules/resolve-global/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,28 @@
declare const resolveGlobal: {
/**
Resolve the path of a globally installed module.
@param moduleId - What you would use in `require()`.
@returns The resolved path. Throws if the module can't be found.
@example
```
// $ npm install --global cat-names
import resolveGlobal = require('resolve-global');
console.log(resolveGlobal('cat-names'));
//=> '/usr/local/lib/node_modules/cat-names'
```
*/
(moduleId: string): string;
/**
Resolve the path of a globally installed module.
@param moduleId - What you would use in `require()`.
@returns The resolved path. Returns `undefined` instead of throwing if the module can't be found.
*/
silent(moduleId: string): string | undefined;
};
export = resolveGlobal;

21
node_modules/resolve-global/index.js generated vendored Normal file
View File

@ -0,0 +1,21 @@
'use strict';
const path = require('path');
const globalDirs = require('global-dirs');
const resolveGlobal = moduleId => {
try {
return require.resolve(path.join(globalDirs.yarn.packages, moduleId));
} catch (_) {
return require.resolve(path.join(globalDirs.npm.packages, moduleId));
}
};
module.exports = resolveGlobal;
module.exports.silent = moduleId => {
try {
return resolveGlobal(moduleId);
} catch (_) {
return undefined;
}
};

9
node_modules/resolve-global/license generated vendored Normal file
View File

@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

43
node_modules/resolve-global/package.json generated vendored Normal file
View File

@ -0,0 +1,43 @@
{
"name": "resolve-global",
"version": "1.0.0",
"description": "Resolve the path of a globally installed module",
"license": "MIT",
"repository": "sindresorhus/resolve-global",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"resolve",
"global",
"package",
"module",
"globally",
"path",
"npm",
"yarn",
"packages",
"require"
],
"dependencies": {
"global-dirs": "^0.1.1"
},
"devDependencies": {
"ava": "^1.4.1",
"execa": "^1.0.0",
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}

55
node_modules/resolve-global/readme.md generated vendored Normal file
View File

@ -0,0 +1,55 @@
# resolve-global [![Build Status](https://travis-ci.org/sindresorhus/resolve-global.svg?branch=master)](https://travis-ci.org/sindresorhus/resolve-global)
> Resolve the path of a globally installed module
## Install
```
$ npm install resolve-global
```
## Usage
```
$ npm install --global cat-names
```
```js
const resolveGlobal = require('resolve-global');
console.log(resolveGlobal('cat-names'));
//=> '/usr/local/lib/node_modules/cat-names'
```
## API
### resolveGlobal(moduleId)
Throws if the module can't be found.
### resolveGlobal.silent(moduleId)
Returns `undefined` instead of throwing if the module can't be found.
#### moduleId
Type: `string`
What you would use in `require()`.
## Related
- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module
- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module from a given path
- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path
- [is-installed-globally](https://github.com/sindresorhus/is-installed-globally) - Check if your package was installed globally
- [global-dirs](https://github.com/sindresorhus/global-dirs) - Get the directory of globally installed packages and binaries
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)