{"_id":"@connorrose/eslint-plugin-prettier","_rev":"1-23445e8ec37338303406fb0b045e63b9","name":"@connorrose/eslint-plugin-prettier","dist-tags":{"latest":"3.1.4"},"versions":{"3.1.4":{"name":"@connorrose/eslint-plugin-prettier","version":"3.1.4","description":"Runs @btmills/prettier as an eslint rule","keywords":["eslint","eslintplugin","eslint-plugin","prettier","@btmills"],"author":{"name":"Teddy Katz as forked by Connor Rose Delisle"},"main":"eslint-plugin-prettier.js","scripts":{"lint":"eslint .","test":"npm run lint && mocha","format":"yarn run prettier '**/*.{js,json,md,yml}' --write && yarn run lint --fix","generate-release":"node-release-script"},"repository":{"type":"git","url":"git+https://github.com/connorrose/eslint-plugin-prettier.git"},"bugs":{"url":"https://github.com/connorrose/eslint-plugin-prettier/issues"},"homepage":"https://github.com/connorrose/eslint-plugin-prettier#readme","dependencies":{"prettier-linter-helpers":"^1.0.0"},"peerDependencies":{"eslint":">=5.0.0","prettier":">=1.13.0"},"devDependencies":{"@not-an-aardvark/node-release-script":"^0.1.0","eslint":"^7.0.0","eslint-config-not-an-aardvark":"^2.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-eslint-plugin":"^2.0.0","eslint-plugin-node":"^8.0.0","eslint-plugin-self":"^1.1.0","mocha":"^6.0.0","prettier":"^1.15.3","vue-eslint-parser":"^6.0.0"},"engines":{"node":">=6.0.0"},"license":"MIT","gitHead":"f3aada0b6bdd1d817a00b937c099484f235e8a59","_id":"@connorrose/eslint-plugin-prettier@3.1.4","_nodeVersion":"12.18.3","_npmVersion":"6.14.7","dist":{"integrity":"sha512-LNTxWy/4zc/5lmG3g7k01V/dzykfb2mjEnjd7UrresNlWbTzpAVMqaYc4LPkICbD2QSGOxPBvXjEkQoj5n30WQ==","shasum":"ea6a5b93e1eebe07d29338664ea7f684ae2276c5","tarball":"https://registry.npmjs.org/@connorrose/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.4.tgz","fileCount":4,"unpackedSize":18905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNG+OCRA9TVsSAnZWagAAAZ4P/0S5eqsxV9h65U9HfgJA\ns56FcbKkzlgX4nQrOCKu9dy9uiASFqFXtwnDG96UtrrQP35ewDJznDl8/dw7\nrGV6CXUnCrKp+LkC34Xb4wLsky/zIonF+ZyIR4C2WZi0H5Cxij8bNQI+KIjn\nK6rb2qV7l2SLbk+wZT4R9FU2IVPWSJW4sLs4sBcMZERqsJVnJtilC2VneLaG\nCrwC9f8Ld5etII2VDvRqLN50hL2ih4e2H9hq8CXCwIlsA08jW6LN1FzvbPc8\nMgFOpDqLyGM0s5u3V/EvOxqcGJnvmnk7h9+GXjonI9t1Bs8o8h6jmdnNpIB0\n2M20AxsZzZa0qxbK2ldJtPiHtMtzgx+W12InOaS8oTLDjft+Bqe1bgZLqUNg\nK3GXV1CGEelQLgei7qBe3ooP5oYlLo0SfBxhIP3xElbFnp9vOAfACzCtFOBy\n39ObYsBns8zJUv0rHZqwH4OQQlh3a4pw52j2ARI7Zs9bhfIYW+kT3RDn6TTk\nksf5oFGcZKbg4cfy0xncVRmGTKuGPaQfcCDtM8Kws+JUZ8CsK32X7oD3PKwQ\nXI1pvPNx5n1LMU9SrzE1PKfvx/3aOCHsvKNglvTIaUU+DSkwbn6HAXixqKbg\n5lZrqSwPEqwvCT/i2Fp+c1qqWy8avQlaCvPUXp1YeXyXi9YOYnA3WHuG48ld\n1pm5\r\n=aW3f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5e0rGj7IM367F8O/Ewjs9Us3OeGOM2vKpddohYnbZ4gIhAOmaDmlqsq69xMlxlPjOLnCf1kM/8xVR8MUZALtEKsvm"}]},"maintainers":[{"name":"connorrose","email":"connorrose.git@gmail.com"}],"_npmUser":{"name":"connorrose","email":"connorrose.git@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-prettier_3.1.4_1597271950085_0.46826511924653413"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-12T22:39:10.049Z","3.1.4":"2020-08-12T22:39:10.177Z","modified":"2022-04-05T00:57:37.538Z"},"maintainers":[{"name":"connorrose","email":"connorrose.git@gmail.com"}],"description":"Runs @btmills/prettier as an eslint rule","homepage":"https://github.com/connorrose/eslint-plugin-prettier#readme","keywords":["eslint","eslintplugin","eslint-plugin","prettier","@btmills"],"repository":{"type":"git","url":"git+https://github.com/connorrose/eslint-plugin-prettier.git"},"author":{"name":"Teddy Katz as forked by Connor Rose Delisle"},"bugs":{"url":"https://github.com/connorrose/eslint-plugin-prettier/issues"},"license":"MIT","readme":"# eslint-plugin-prettier [![Build Status](https://github.com/prettier/eslint-plugin-prettier/workflows/CI/badge.svg?branch=master)](https://github.com/prettier/eslint-plugin-prettier/actions?query=workflow%3ACI+branch%3Amaster)\n\nThis fork is an exact duplicate of `eslint-plugin-prettier` (v3.1.4), except that it requires in the [@btmills/prettier](https://github.com/btmills/prettier) fork instead of normal Prettier, for the sole purpose of moving operators to the _start_ of a newline.\n\nRuns [Prettier](https://github.com/prettier/prettier) as an [ESLint](http://eslint.org) rule and reports differences as individual ESLint issues.\n\n## Sample\n\n```js\nerror: Insert `,` (prettier/prettier) at pkg/commons-atom/ActiveEditorRegistry.js:22:25:\n  20 | import {\n  21 |   observeActiveEditorsDebounced,\n> 22 |   editorChangesDebounced\n     |                         ^\n  23 | } from './debounced';;\n  24 |\n  25 | import {observableFromSubscribeFunction} from '../commons-node/event';\n\n\nerror: Delete `;` (prettier/prettier) at pkg/commons-atom/ActiveEditorRegistry.js:23:21:\n  21 |   observeActiveEditorsDebounced,\n  22 |   editorChangesDebounced\n> 23 | } from './debounced';;\n     |                     ^\n  24 |\n  25 | import {observableFromSubscribeFunction} from '../commons-node/event';\n  26 | import {cacheWhileSubscribed} from '../commons-node/observable';\n\n\n2 errors found.\n```\n\n> `./node_modules/.bin/eslint --format codeframe pkg/commons-atom/ActiveEditorRegistry.js` (code from [nuclide](https://github.com/facebook/nuclide)).\n\n## Installation\n\n```sh\nnpm install --save-dev eslint-plugin-prettier\nnpm install --save-dev --save-exact prettier\n```\n\n**_`eslint-plugin-prettier` does not install Prettier or ESLint for you._** _You must install these yourself._\n\nThen, in your `.eslintrc.json`:\n\n```json\n{\n  \"plugins\": [\"prettier\"],\n  \"rules\": {\n    \"prettier/prettier\": \"error\"\n  }\n}\n```\n\n## Recommended Configuration\n\nThis plugin works best if you disable all other ESLint rules relating to code formatting, and only enable rules that detect patterns in the AST. (If another active ESLint rule disagrees with `prettier` about how code should be formatted, it will be impossible to avoid lint errors.) You can use [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) to disable all formatting-related ESLint rules.\n\nIf your desired formatting does not match the `prettier` output, you should use a different tool such as [prettier-eslint](https://github.com/prettier/prettier-eslint) instead.\n\nTo integrate this plugin with `eslint-config-prettier`, you can use the `\"recommended\"` configuration:\n\n1. In addition to the above installation instructions, install `eslint-config-prettier`:\n\n   ```sh\n   npm install --save-dev eslint-config-prettier\n   ```\n\n2. Then you need to add `plugin:prettier/recommended` as the last extension in your `.eslintrc.json`:\n\n   ```json\n   {\n     \"extends\": [\"plugin:prettier/recommended\"]\n   }\n   ```\n\nThis does three things:\n\n- Enables `eslint-plugin-prettier`.\n- Sets the `prettier/prettier` rule to `\"error\"`.\n- Extends the `eslint-config-prettier` configuration.\n\nYou can then set Prettier's own options inside a `.prettierrc` file.\n\n3. In order to support special ESLint plugins (e.g. [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react)), add extra exclusions for the plugins you use like so:\n\n```json\n{\n  \"extends\": [\n    \"plugin:prettier/recommended\",\n    \"prettier/flowtype\",\n    \"prettier/react\",\n    \"prettier/standard\"\n  ]\n}\n```\n\nFor the list of every available exclusion rule set, please see the [readme of eslint-config-prettier](https://github.com/prettier/eslint-config-prettier/blob/master/README.md).\n\n## Options\n\n> Note: While it is possible to pass options to Prettier via your ESLint configuration file, it is not recommended because editor extensions such as `prettier-atom` and `prettier-vscode` **will** read [`.prettierrc`](https://prettier.io/docs/en/configuration.html), but **won't** read settings from ESLint, which can lead to an inconsistent experience.\n\n- The first option:\n\n  - An object representing [options](https://prettier.io/docs/en/options.html) that will be passed into prettier. Example:\n\n    ```json\n    \"prettier/prettier\": [\"error\", {\"singleQuote\": true, \"parser\": \"flow\"}]\n    ```\n\n    NB: This option will merge and override any config set with `.prettierrc` files\n\n- The second option:\n\n  - An object with the following options\n\n    - `usePrettierrc`: Enables loading of the Prettier configuration file, (default: `true`). May be useful if you are using multiple tools that conflict with each other, or do not wish to mix your ESLint settings with your Prettier configuration.\n\n      ```json\n      \"prettier/prettier\": [\"error\", {}, {\n        \"usePrettierrc\": false\n      }]\n      ```\n\n    - `fileInfoOptions`: Options that are passed to [prettier.getFileInfo](https://prettier.io/docs/en/api.html#prettiergetfileinfofilepath-options) to decide whether a file needs to be formatted. Can be used for example to opt-out from ignoring files located in `node_modules` directories.\n\n      ```json\n      \"prettier/prettier\": [\"error\", {}, {\n        \"fileInfoOptions\": {\n          \"withNodeModules\": true\n        }\n      }]\n      ```\n\n- The rule is autofixable -- if you run `eslint` with the `--fix` flag, your code will be formatted according to `prettier` style.\n\n---\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/prettier/eslint-plugin-prettier/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md"}