add prettier

This commit is contained in:
HaveAGitGat 2020-05-15 01:20:36 +01:00
parent e1ff493d7b
commit d28272f6d4
23 changed files with 154650 additions and 0 deletions

15
node_modules/.bin/prettier generated vendored Normal file
View file

@ -0,0 +1,15 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../prettier/bin-prettier.js" "$@"
ret=$?
else
node "$basedir/../prettier/bin-prettier.js" "$@"
ret=$?
fi
exit $ret

17
node_modules/.bin/prettier.cmd generated vendored Normal file
View file

@ -0,0 +1,17 @@
@ECHO off
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
"%_prog%" "%dp0%\..\prettier\bin-prettier.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b

18
node_modules/.bin/prettier.ps1 generated vendored Normal file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
& "$basedir/node$exe" "$basedir/../prettier/bin-prettier.js" $args
$ret=$LASTEXITCODE
} else {
& "node$exe" "$basedir/../prettier/bin-prettier.js" $args
$ret=$LASTEXITCODE
}
exit $ret

7
node_modules/prettier/LICENSE generated vendored Normal file
View file

@ -0,0 +1,7 @@
Copyright © James Long and contributors
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.

111
node_modules/prettier/README.md generated vendored Normal file
View file

@ -0,0 +1,111 @@
![Prettier Banner](https://raw.githubusercontent.com/prettier/prettier-logo/master/images/prettier-banner-light.png)
<h2 align="center">Opinionated Code Formatter</h2>
<p align="center">
<em>
JavaScript
· TypeScript
· Flow
· JSX
· JSON
</em>
<br />
<em>
CSS
· SCSS
· Less
</em>
<br />
<em>
HTML
· Vue
· Angular
</em>
<br />
<em>
GraphQL
· Markdown
· YAML
</em>
<br />
<em>
<a href="https://prettier.io/docs/en/plugins.html">
Your favorite language?
</a>
</em>
</p>
<p align="center">
<a href="https://github.com/prettier/prettier/actions?query=workflow%3AProd+branch%3Amaster">
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Prod?label=Prod&style=flat-square"></a>
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ADev+branch%3Amaster">
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Dev?label=Dev&style=flat-square"></a>
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ALint+branch%3Amaster">
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Lint?label=Lint&style=flat-square"></a>
<a href="https://codecov.io/gh/prettier/prettier">
<img alt="Codecov Coverage Status" src="https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square"></a>
<a href="https://twitter.com/acdlite/status/974390255393505280">
<img alt="Blazing Fast" src="https://img.shields.io/badge/speed-blazing%20%F0%9F%94%A5-brightgreen.svg?style=flat-square"></a>
<br/>
<a href="https://www.npmjs.com/package/prettier">
<img alt="npm version" src="https://img.shields.io/npm/v/prettier.svg?style=flat-square"></a>
<a href="https://www.npmjs.com/package/prettier">
<img alt="weekly downloads from npm" src="https://img.shields.io/npm/dw/prettier.svg?style=flat-square"></a>
<a href="#badge">
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a>
<a href="https://gitter.im/jlongster/prettier">
<img alt="Chat on Gitter" src="https://img.shields.io/gitter/room/jlongster/prettier.svg?style=flat-square"></a>
<a href="https://twitter.com/PrettierCode">
<img alt="Follow Prettier on Twitter" src="https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier&style=flat-square"></a>
</p>
## Intro
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
### Input
<!-- prettier-ignore -->
```js
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
```
### Output
```js
foo(
reallyLongArg(),
omgSoManyParameters(),
IShouldRefactorThis(),
isThereSeriouslyAnotherOne()
);
```
Prettier can be run [in your editor](http://prettier.io/docs/en/editors.html) on-save, in a [pre-commit hook](https://prettier.io/docs/en/precommit.html), or in [CI environments](https://prettier.io/docs/en/cli.html#list-different) to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!
---
**[Documentation](https://prettier.io/docs/en/)**
<!-- prettier-ignore -->
[Install](https://prettier.io/docs/en/install.html) ·
[Options](https://prettier.io/docs/en/options.html) ·
[CLI](https://prettier.io/docs/en/cli.html) ·
[API](https://prettier.io/docs/en/api.html)
**[Playground](https://prettier.io/playground/)**
---
## Badge
Show the world you're using _Prettier_ → [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
```md
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
```
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md).

54351
node_modules/prettier/bin-prettier.js generated vendored Normal file

File diff suppressed because one or more lines are too long

2137
node_modules/prettier/doc.js generated vendored Normal file

File diff suppressed because one or more lines are too long

51680
node_modules/prettier/index.js generated vendored Normal file

File diff suppressed because one or more lines are too long

56
node_modules/prettier/package.json generated vendored Normal file
View file

@ -0,0 +1,56 @@
{
"_from": "prettier",
"_id": "prettier@2.0.5",
"_inBundle": false,
"_integrity": "sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==",
"_location": "/prettier",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "prettier",
"name": "prettier",
"escapedName": "prettier",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#DEV:/",
"#USER"
],
"_resolved": "https://registry.npmjs.org/prettier/-/prettier-2.0.5.tgz",
"_shasum": "d6d56282455243f2f92cc1716692c08aa31522d4",
"_spec": "prettier",
"_where": "C:\\Users\\H\\Documents\\GitHub\\Tdarr_Plugins",
"author": {
"name": "James Long"
},
"bin": {
"prettier": "bin-prettier.js"
},
"bugs": {
"url": "https://github.com/prettier/prettier/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Prettier is an opinionated code formatter",
"engines": {
"node": ">=10.13.0"
},
"files": [
"*.js"
],
"homepage": "https://prettier.io",
"license": "MIT",
"main": "./index.js",
"name": "prettier",
"repository": {
"type": "git",
"url": "git+https://github.com/prettier/prettier.git"
},
"scripts": {
"prepublishOnly": "node -e \"assert.equal(require('.').version, require('..').version)\""
},
"version": "2.0.5"
}

650
node_modules/prettier/parser-angular.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/prettier/parser-babel.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/prettier/parser-flow.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/prettier/parser-glimmer.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/prettier/parser-graphql.js generated vendored Normal file

File diff suppressed because one or more lines are too long

113
node_modules/prettier/parser-html.js generated vendored Normal file

File diff suppressed because one or more lines are too long

19
node_modules/prettier/parser-markdown.js generated vendored Normal file

File diff suppressed because one or more lines are too long

8
node_modules/prettier/parser-postcss.js generated vendored Normal file

File diff suppressed because one or more lines are too long

14
node_modules/prettier/parser-typescript.js generated vendored Normal file

File diff suppressed because one or more lines are too long

16
node_modules/prettier/parser-yaml.js generated vendored Normal file

File diff suppressed because one or more lines are too long

32923
node_modules/prettier/standalone.js generated vendored Normal file

File diff suppressed because one or more lines are too long

12474
node_modules/prettier/third-party.js generated vendored Normal file

File diff suppressed because one or more lines are too long

14
package-lock.json generated Normal file
View file

@ -0,0 +1,14 @@
{
"name": "tdarr_plugins",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"prettier": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.0.5.tgz",
"integrity": "sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==",
"dev": true
}
}
}

23
package.json Normal file
View file

@ -0,0 +1,23 @@
{
"name": "tdarr_plugins",
"version": "1.0.0",
"description": "There are two types of plugin:",
"main": "Tdarr_Plugin_aaaa_Pre_Proc_Example.js",
"dependencies": {},
"devDependencies": {
"prettier": "2.0.5"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/HaveAGitGat/Tdarr_Plugins.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/HaveAGitGat/Tdarr_Plugins/issues"
},
"homepage": "https://github.com/HaveAGitGat/Tdarr_Plugins#readme"
}