-
-
Notifications
You must be signed in to change notification settings - Fork 203
Add option to skip loading prettierrc #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the PR. I'm fine with adding something like this, but I think it could be confusing to include it in the same object as the other prettier options, since this isn't an option that gets passed to prettier. Can you make this a second argument instead? For example, it could get configured as |
@not-an-aardvark absolutely, I like that route waaay better! Will revise. |
897508d
to
90f3750
Compare
@not-an-aardvark updated! |
For posterity, this option was inspired by ESLint CLIEngine's https://eslint.org/docs/developer-guide/nodejs-api#cliengine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I just have a few minor comments.
README.md
Outdated
}] | ||
``` | ||
|
||
- `usePrettierRc`: Enables loading of the Prettier configuration file, set to `false` to disable. 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick: Can we rename the option to usePrettierrc
(lowercase r
)? That would also be consistent with the useEslintrc
option that this is based on.
README.md
Outdated
}] | ||
``` | ||
|
||
- `usePrettierRc`: Enables loading of the Prettier configuration file, set to `false` to disable. 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set to
false
to disable
Nitpick: Can you replace this text with "(default: true
)"? The double negative in "set to false
to disable" makes it a bit confusing to read.
eslint-plugin-prettier.js
Outdated
type: 'object', | ||
properties: { | ||
pragma: { type: 'string', pattern: '^@\\w+$' }, | ||
usePrettierRc: { type: 'boolean' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test for the new option? (It would probably be similar to the existing prettierrc
tests, except that the test would be asserting that the options in the file do not get applied.)
@not-an-aardvark ok, I think all your requests have been made! I also added a test to ensure you could still use |
If this is a breaking change (moving Perhaps a more ergonomic API would be to do: "prettier/prettier": ["error"], // use config file
"prettier/prettier": ["error", {}], // do not use config file
"prettier/prettier": ["error", { "singleQuote": true }], // do not use config file |
I think this is backwards-compatible -- |
This is not a breaking change, it's a minor bump. Using a string pragma is still supported in the second slot. |
Yeah I misinterpreted the change, ignore the first part of my comment. |
If I'm understanding correctly, the second part of the comment would be a breaking change, right? Maybe we should merge this as-is and then implement the second part of the comment in a major release (at some indefinite point in the future if a major release is necessary). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. I do think #83 (comment) is worth doing in a future release.
Thanks for contributing! |
My pleasure, thank you for accepting! |
| datasource | package | from | to | | ---------- | ---------------------- | ----- | ----- | | npm | eslint-plugin-prettier | 5.4.0 | 5.5.3 | ## [v5.5.3](https://github.com/prettier/eslint-plugin-prettier/releases/tag/v5.5.3) republish the latest version **Full Changelog**: prettier/eslint-plugin-prettier@v5.5.2...v5.5.3 ## [v5.5.2](https://github.com/prettier/eslint-plugin-prettier/releases/tag/v5.5.2) ### Changelog #### 5.5.1 ##### Patch Changes - [#748](prettier/eslint-plugin-prettier#748) [`bfd1e95`](prettier/eslint-plugin-prettier@bfd1e95) Thanks [@JounQin](https://github.com/JounQin)! - fix: use `prettierRcOptions` directly for prettier 3.6+ #### 5.5.0 ##### Minor Changes - [#743](prettier/eslint-plugin-prettier#743) [`92f2c9c`](prettier/eslint-plugin-prettier@92f2c9c) Thanks [@dotcarmen](https://github.com/dotcarmen)! - feat: support non-js languages like `css` for `@eslint/css` and `json` for `@eslint/json` #### 5.4.1 ##### Patch Changes - [#740](prettier/eslint-plugin-prettier#740) [`c21521f`](prettier/eslint-plugin-prettier@c21521f) Thanks [@JounQin](https://github.com/JounQin)! - fix(deps): bump `synckit` to v0.11.7 to fix potential `TypeError: Cannot read properties of undefined (reading 'message')` error #### 5.4.0 ##### Minor Changes - [#736](prettier/eslint-plugin-prettier#736) [`59a0cae`](prettier/eslint-plugin-prettier@59a0cae) Thanks [@yashtech00](https://github.com/yashtech00)! - refactor: migrate `worker.js` to `worker.mjs` #### 5.3.1 ##### Patch Changes - [#734](prettier/eslint-plugin-prettier#734) [`dcf2c80`](prettier/eslint-plugin-prettier@dcf2c80) Thanks [@JounQin](https://github.com/JounQin)! - ci: enable `NPM_CONFIG_PROVENANCE` env #### 5.3.0 ##### Minor Changes - [#674](prettier/eslint-plugin-prettier#674) [`6fe0c90`](prettier/eslint-plugin-prettier@6fe0c90) Thanks [@irsooti](https://github.com/irsooti)! - feat(types): prefer `Config` over `FlatConfig` when they're equal #### 5.2.6 ##### Patch Changes - [#723](prettier/eslint-plugin-prettier#723) [`1451176`](prettier/eslint-plugin-prettier@1451176) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): bump `synckit` to `v0.11.0` #### 5.2.5 ##### Patch Changes - [#721](prettier/eslint-plugin-prettier#721) [`4f5513d`](prettier/eslint-plugin-prettier@4f5513d) Thanks [@JounQin](https://github.com/JounQin)! - fix: clarify correct `eslint-config-prettier` peer range #### 5.2.4 ##### Patch Changes - [#715](prettier/eslint-plugin-prettier#715) [`b8cfe56`](prettier/eslint-plugin-prettier@b8cfe56) Thanks [@JounQin](https://github.com/JounQin)! - chore: hourcekeeping, bump all (dev) deps #### 5.2.3 ##### Patch Changes - [#703](prettier/eslint-plugin-prettier#703) [`9c6141f`](prettier/eslint-plugin-prettier@9c6141f) Thanks [@BPScott](https://github.com/BPScott)! - Add name field to recommended flat config #### 5.2.2 ##### Patch Changes - [#700](prettier/eslint-plugin-prettier#700) [`aa5b59f`](prettier/eslint-plugin-prettier@aa5b59f) Thanks [@ntnyq](https://github.com/ntnyq)! - fix: report node when loc not found #### 5.2.1 ##### Patch Changes - [#668](prettier/eslint-plugin-prettier#668) [`ac036cc`](prettier/eslint-plugin-prettier@ac036cc) Thanks [@OrlovAlexei](https://github.com/OrlovAlexei)! - build(deps): Bump synckit from 0.8.6 to 0.9.1 #### 5.2.0 ##### Minor Changes - [#652](prettier/eslint-plugin-prettier#652) [`f170011`](prettier/eslint-plugin-prettier@f170011) Thanks [@Logicer16](https://github.com/Logicer16)! - feat: support parsing `html` via `@html-eslint/parser` natively #### 5.1.3 ##### Patch Changes - [#629](prettier/eslint-plugin-prettier#629) [`985b33c`](prettier/eslint-plugin-prettier@985b33c) Thanks [@JounQin](https://github.com/JounQin)! - chore: add `package.json` into `exports` map #### 5.1.2 ##### Patch Changes - [#623](prettier/eslint-plugin-prettier#623) [`8210e44`](prettier/eslint-plugin-prettier@8210e44) Thanks [@BPScott](https://github.com/BPScott)! - Add exports mapping to package.json, to allow `import eslintPluginRecommended from 'eslint-plugin-prettier/recommended'` to work as expected. Strictly speaking this is a breaking change as it removes the ability for people to import from "eslint-plugin-prettier/eslint-plugin-prettier.js" and "eslint-plugin-prettier/recommended.js" but the former was never recommended in the first place and the latter has only been available for a few days. - [#621](prettier/eslint-plugin-prettier#621) [`2b09e7f`](prettier/eslint-plugin-prettier@2b09e7f) Thanks [@JounQin](https://github.com/JounQin)! - feat: support parsing `markdown` via `eslint-mdx` natively What means the following is unnecessary anymore when using with `eslint-mdx`/`eslint-plugin-mdx`! ```json5 [ { files: ["**/*.md"], rules: { "prettier/prettier": ["error", { parser: "markdown" }] }, }, { files: ["**/*.mdx"], rules: { "prettier/prettier": ["error", { parser: "mdx" }] }, }, ] ``` #### 5.1.1 ##### Patch Changes - [#619](prettier/eslint-plugin-prettier#619) [`b5c0dc5`](prettier/eslint-plugin-prettier@b5c0dc5) Thanks [@JounQin](https://github.com/JounQin)! - chore: skip formatting inline scripts in pug files #### 5.1.0 ##### Minor Changes - [#616](prettier/eslint-plugin-prettier#616) [`3856413`](prettier/eslint-plugin-prettier@3856413) Thanks [@BPScott](https://github.com/BPScott)! - Add recommended config for the flat config format. If you are using flat config, import the recommended config from `eslint-plugin-prettier/recommended`. Like the legacy format recommended config, this automatically includes the contents of `eslint-config-prettier`. ```js // eslint.config.js const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended"); module.exports = [ // Any other config imports go at the top eslintPluginPrettierRecommended, ]; ``` ##### Patch Changes - [#614](prettier/eslint-plugin-prettier#614) [`5270877`](prettier/eslint-plugin-prettier@5270877) Thanks [@BPScott](https://github.com/BPScott)! - Add meta block to plugin. This improves debugging and cachebusting when using the new flat config - [#603](prettier/eslint-plugin-prettier#603) [`a63a570`](prettier/eslint-plugin-prettier@a63a570) Thanks [@filiptammergard](https://github.com/filiptammergard)! - fix: specify `eslint-config-prettier` as peer dependency It's already added to `peerDependenciesMeta` as optional, which means it should also be specified in `peerDependencies`. #### 5.0.1 ##### Patch Changes - [#588](prettier/eslint-plugin-prettier#588) [`21a7146`](prettier/eslint-plugin-prettier@21a7146) Thanks [@krist7599555](https://github.com/krist7599555)! - fix: `parserPath` type might be `undefined` on Eslint Falt Config #### 5.0.0 ##### Major Changes - [#508](prettier/eslint-plugin-prettier#508) [`910aeb6`](prettier/eslint-plugin-prettier@910aeb6) Thanks [@JounQin](https://github.com/JounQin)! - feat!: bump peer eslint to ">=8.0.0" and node to "^14.18.0 || >=16.0.0" - [#508](prettier/eslint-plugin-prettier#508) [`910aeb6`](prettier/eslint-plugin-prettier@910aeb6) Thanks [@JounQin](https://github.com/JounQin)! - feat!: upgrade to prettier v3 ##### Minor Changes - [#508](prettier/eslint-plugin-prettier#508) [`910aeb6`](prettier/eslint-plugin-prettier@910aeb6) Thanks [@JounQin](https://github.com/JounQin)! - feat: add typings support ##### Patch Changes - [#548](prettier/eslint-plugin-prettier#548) [`82a3db8`](prettier/eslint-plugin-prettier@82a3db8) Thanks [@fisker](https://github.com/fisker)! - fix: add missing dependency `synckit` - [#564](prettier/eslint-plugin-prettier#564) [`ae7a73c`](prettier/eslint-plugin-prettier@ae7a73c) Thanks [@auvred](https://github.com/auvred)! - fix: compatibility with prettier@3 without plugins #### 4.2.2 ##### Patch Changes - [`2373d0c`](prettier/eslint-plugin-prettier@2373d0c) Thanks [@JounQin](https://github.com/JounQin)! - docs: add Sponsors and Backers sections #### 4.2.1 ##### Patch Changes - [#485](prettier/eslint-plugin-prettier#485) [`5736ed5`](prettier/eslint-plugin-prettier@5736ed5) Thanks [@JounQin](https://github.com/JounQin)! - chore: reuse prettierRcOptions instead of resolveConfig again #### 4.2.0 ##### Minor Changes - [#483](prettier/eslint-plugin-prettier#483) [`7bd70b6`](prettier/eslint-plugin-prettier@7bd70b6) Thanks [@JounQin](https://github.com/JounQin)! - feat: support svelte out of box close [#472](prettier/eslint-plugin-prettier#472), close [#482](prettier/eslint-plugin-prettier#482) We recommend to use [`eslint-plugin-svelte`](https://github.com/ota-meshi/eslint-plugin-svelte) instead of [`eslint-plugin-svelte3`](https://github.com/sveltejs/eslint-plugin-svelte3). #### v4.1.0 (2022-06-27) - feat: skip processing code blocks on specific languages like `stylelint-prettier` ([#415](prettier/eslint-plugin-prettier#415)) ([52eec48](prettier/eslint-plugin-prettier@52eec48)) - build(deps): Bump minimist from 1.2.5 to 1.2.6 ([#464](prettier/eslint-plugin-prettier#464)) ([42bfe88](prettier/eslint-plugin-prettier@42bfe88)) - build(deps-dev): Bump graphql from 15.5.1 to 15.7.2 ([#442](prettier/eslint-plugin-prettier#442)) ([0158640](prettier/eslint-plugin-prettier@0158640)) - build(deps-dev): Bump [@graphql-eslint/eslint-plugin](https://github.com/graphql-eslint/eslint-plugin) from 2.3.0 to 2.4.0 ([#444](prettier/eslint-plugin-prettier#444)) ([4bcaca2](prettier/eslint-plugin-prettier@4bcaca2)) - chore(CI): add tests for ESLint 8 ([#428](prettier/eslint-plugin-prettier#428)) ([f3713be](prettier/eslint-plugin-prettier@f3713be)) - README.md: HTTP => HTTPS ([#443](prettier/eslint-plugin-prettier#443)) ([44e1478](prettier/eslint-plugin-prettier@44e1478)) #### v4.0.0 (2021-08-30) This breaking change drops support for old versions of ESLint, Prettier and Node. You must use at least ESLint v7.28.0, Prettier v2.0.0 and Node v12.0.0. Aside from that, usage of this plugin remains identical. - v4 - Drop support for eslint 5/6, prettier 1, node 6/8 ([#429](prettier/eslint-plugin-prettier#429)) ([acb56f3](prettier/eslint-plugin-prettier@acb56f3)) #### v3.4.1 (2021-08-20) - build(deps): Bump glob-parent from 5.0.0 to 5.1.2 ([#420](prettier/eslint-plugin-prettier#420)) ([b6d075c](prettier/eslint-plugin-prettier@b6d075c)) - build(deps): Bump path-parse from 1.0.6 to 1.0.7 ([#425](prettier/eslint-plugin-prettier#425)) ([24f957e](prettier/eslint-plugin-prettier@24f957e)) - feat: support `@graphql-eslint/eslint-plugin` out of box ([#413](prettier/eslint-plugin-prettier#413)) ([ec6fbb1](prettier/eslint-plugin-prettier@ec6fbb1)) - chore: add tests for Node 16 ([#410](prettier/eslint-plugin-prettier#410)) ([76bd45e](prettier/eslint-plugin-prettier@76bd45e)) #### v3.4.0 (2021-04-15) - feat: support processor virtual filename ([#401](prettier/eslint-plugin-prettier#401)) ([ee0ccc6](prettier/eslint-plugin-prettier@ee0ccc6)) - Simplify report logic ([#380](prettier/eslint-plugin-prettier#380)) ([d993f24](prettier/eslint-plugin-prettier@d993f24)) - Update: README.md ([#375](prettier/eslint-plugin-prettier#375)) ([3ea4242](prettier/eslint-plugin-prettier@3ea4242)) #### v3.3.1 (2021-01-04) - fix: add eslint-config-prettier as an optional peer dependency ([#374](prettier/eslint-plugin-prettier#374)) ([d59df27](prettier/eslint-plugin-prettier@d59df27)) - build(deps-dev): bump eslint from 7.16.0 to 7.17.0 ([b87985d](prettier/eslint-plugin-prettier@b87985d)) - build(deps-dev): bump eslint from 7.15.0 to 7.16.0 ([11e427e](prettier/eslint-plugin-prettier@11e427e)) #### v3.3.0 (2020-12-13) - Minor: Perf improvement: Do not clear the config cache on each run ([#368](prettier/eslint-plugin-prettier#368)) ([1b90ea7](prettier/eslint-plugin-prettier@1b90ea7)) - Add peerDependenciesMeta block ([#367](prettier/eslint-plugin-prettier#367)) ([86608d5](prettier/eslint-plugin-prettier@86608d5)) - build(deps-dev): bump eslint from 7.14.0 to 7.15.0 ([885f484](prettier/eslint-plugin-prettier@885f484)) - build(deps-dev): bump eslint from 7.3.1 to 7.14.0 ([cebc80b](prettier/eslint-plugin-prettier@cebc80b)) #### v3.2.0 (2020-12-03) - Skip CI for eslint 6 + node 8 ([#364](prettier/eslint-plugin-prettier#364)) ([f8f08e4](prettier/eslint-plugin-prettier@f8f08e4)) - Turn off problematic rules in recommended config (prepare for next eslint-config-prettier version) ([#360](prettier/eslint-plugin-prettier#360)) ([a1e5591](prettier/eslint-plugin-prettier@a1e5591)) - Create dependabot.yml ([f58b6c7](prettier/eslint-plugin-prettier@f58b6c7)) - docs(README): fix prettier getFileInfo link ([#335](prettier/eslint-plugin-prettier#335)) ([5a690f1](prettier/eslint-plugin-prettier@5a690f1)) - build(deps-dev): bump eslint-plugin-eslint-plugin from 2.2.2 to 2.3.0 ([8614c45](prettier/eslint-plugin-prettier@8614c45)) - build(deps-dev): bump eslint from 7.3.0 to 7.3.1 ([12d9ed8](prettier/eslint-plugin-prettier@12d9ed8)) - build(deps-dev): bump eslint from 7.2.0 to 7.3.0 ([5a6f42e](prettier/eslint-plugin-prettier@5a6f42e)) - chore: update CI badge in readme ([5012b66](prettier/eslint-plugin-prettier@5012b66)) - Use Github Actions for CI ([#305](prettier/eslint-plugin-prettier#305)) ([41eb64f](prettier/eslint-plugin-prettier@41eb64f)) #### v3.1.4 (2020-06-14) - Avoid clearing Prettier cache when not using prettierrc ([#303](prettier/eslint-plugin-prettier#303)) ([3c8e2d9](prettier/eslint-plugin-prettier@3c8e2d9)) - build(deps-dev): bump eslint-plugin-eslint-plugin from 2.2.1 to 2.2.2 ([93f7c8b](prettier/eslint-plugin-prettier@93f7c8b)) - build(deps-dev): bump eslint from 7.1.0 to 7.2.0 ([650ac7a](prettier/eslint-plugin-prettier@650ac7a)) - build(deps-dev): bump eslint-plugin-self from 1.2.0 to 1.2.1 ([6449ec1](prettier/eslint-plugin-prettier@6449ec1)) - build(deps-dev): bump eslint from 7.0.0 to 7.1.0 ([fd30022](prettier/eslint-plugin-prettier@fd30022)) - Chore: Add CI tests for ESLint 7 ([#291](prettier/eslint-plugin-prettier#291)) ([cc2979b](prettier/eslint-plugin-prettier@cc2979b)) - build(deps-dev): bump eslint-config-prettier from 6.10.1 to 6.11.0 ([35a7ee6](prettier/eslint-plugin-prettier@35a7ee6)) #### v3.1.3 (2020-04-13) - Fix: Set `meta.type` to "layout" ([#283](prettier/eslint-plugin-prettier#283)) ([97152e2](prettier/eslint-plugin-prettier@97152e2)) - build(deps-dev): bump eslint-config-prettier from 6.10.0 to 6.10.1 ([185b106](prettier/eslint-plugin-prettier@185b106)) - build(deps): \[security] bump acorn from 6.1.0 to 6.4.1 ([bba5881](prettier/eslint-plugin-prettier@bba5881)) - build(deps-dev): bump eslint-config-prettier from 6.9.0 to 6.10.0 ([9a47a6f](prettier/eslint-plugin-prettier@9a47a6f)) - build(deps-dev): bump eslint-plugin-eslint-plugin from 2.2.0 to 2.2.1 ([aad671d](prettier/eslint-plugin-prettier@aad671d)) - build(deps-dev): bump eslint-plugin-eslint-plugin from 2.1.0 to 2.2.0 ([e2458c2](prettier/eslint-plugin-prettier@e2458c2)) - build(deps-dev): bump eslint-config-prettier from 6.8.0 to 6.9.0 ([05ef06f](prettier/eslint-plugin-prettier@05ef06f)) - build(deps-dev): bump eslint-config-prettier from 6.7.0 to 6.8.0 ([ab80b3c](prettier/eslint-plugin-prettier@ab80b3c)) - build(deps-dev): bump eslint from 6.7.2 to 6.8.0 ([dea1b30](prettier/eslint-plugin-prettier@dea1b30)) #### v3.1.2 (2019-12-15) - Resolve config when getting list of inferred parsers ([1ad45be](prettier/eslint-plugin-prettier@1ad45be)) - Fix tests now they to stop them inheriting from base prettierrc file ([14840fa](prettier/eslint-plugin-prettier@14840fa)) - Move prettier config into dedicated file, so vscode plugins pick it up ([c49334a](prettier/eslint-plugin-prettier@c49334a)) - build(deps-dev): bump eslint from 6.7.1 to 6.7.2 ([15e6cf9](prettier/eslint-plugin-prettier@15e6cf9)) - build(deps-dev): bump eslint from 6.6.0 to 6.7.1 ([e8ad019](prettier/eslint-plugin-prettier@e8ad019)) - build(deps-dev): bump eslint-config-prettier from 6.6.0 to 6.7.0 ([44f4bfe](prettier/eslint-plugin-prettier@44f4bfe)) - build(deps-dev): bump eslint-config-prettier from 6.5.0 to 6.6.0 ([46580c5](prettier/eslint-plugin-prettier@46580c5)) - build(deps-dev): bump prettier from 1.18.2 to 1.19.1 ([10b4676](prettier/eslint-plugin-prettier@10b4676)) - build(deps-dev): bump eslint from 6.5.1 to 6.6.0 ([53eaeae](prettier/eslint-plugin-prettier@53eaeae)) - build(deps-dev): bump eslint-config-prettier from 6.4.0 to 6.5.0 ([ad3321c](prettier/eslint-plugin-prettier@ad3321c)) - build(deps-dev): bump mocha from 6.2.1 to 6.2.2 ([b7280b6](prettier/eslint-plugin-prettier@b7280b6)) - build(deps-dev): bump eslint-config-prettier from 6.3.0 to 6.4.0 ([4c1d69a](prettier/eslint-plugin-prettier@4c1d69a)) - build(deps-dev): bump eslint from 6.5.0 to 6.5.1 ([c109a7a](prettier/eslint-plugin-prettier@c109a7a)) - build(deps-dev): bump mocha from 6.2.0 to 6.2.1 ([3134bea](prettier/eslint-plugin-prettier@3134bea)) - build(deps-dev): bump eslint from 6.4.0 to 6.5.0 ([7c290d7](prettier/eslint-plugin-prettier@7c290d7)) #### v3.1.1 (2019-09-18) - build(deps-dev): bump eslint from 6.3.0 to 6.4.0 ([8a793eb](prettier/eslint-plugin-prettier@8a793eb)) - build(deps-dev): bump eslint-config-prettier from 6.2.0 to 6.3.0 ([88c3f6c](prettier/eslint-plugin-prettier@88c3f6c)) - build(deps-dev): bump eslint-config-prettier from 6.0.0 to 6.2.0 ([5f9fbc1](prettier/eslint-plugin-prettier@5f9fbc1)) - build(deps-dev): bump eslint from 6.2.2 to 6.3.0 ([746b66d](prettier/eslint-plugin-prettier@746b66d)) - build(deps-dev): bump eslint from 6.1.0 to 6.2.2 ([97eedb4](prettier/eslint-plugin-prettier@97eedb4)) - build(deps-dev): bump eslint from 6.0.1 to 6.1.0 ([afef9d1](prettier/eslint-plugin-prettier@afef9d1)) - build(deps-dev): bump mocha from 6.1.4 to 6.2.0 ([0360a84](prettier/eslint-plugin-prettier@0360a84)) - build(deps): \[security] bump lodash from 4.17.11 to 4.17.14 ([9eceb68](prettier/eslint-plugin-prettier@9eceb68)) - Fix: When forcing the JS parser, use the modern name ([#212](prettier/eslint-plugin-prettier#212)) ([1385310](prettier/eslint-plugin-prettier@1385310)) - Add eslint 6 to test matrix ([#210](prettier/eslint-plugin-prettier#210)) ([bca77e6](prettier/eslint-plugin-prettier@bca77e6)) - build(deps-dev): bump eslint-config-prettier from 5.0.0 to 6.0.0 ([4c069bd](prettier/eslint-plugin-prettier@4c069bd)) - build(deps-dev): bump eslint-config-prettier from 4.3.0 to 5.0.0 ([60bb22f](prettier/eslint-plugin-prettier@60bb22f)) - build(deps-dev): bump prettier from 1.18.0 to 1.18.2 ([a183560](prettier/eslint-plugin-prettier@a183560)) - build(deps-dev): bump prettier from 1.17.1 to 1.18.0 ([0cad479](prettier/eslint-plugin-prettier@0cad479)) - build(deps-dev): bump eslint-config-prettier from 4.2.0 to 4.3.0 ([6f3c76f](prettier/eslint-plugin-prettier@6f3c76f)) - build(deps-dev): bump prettier from 1.17.0 to 1.17.1 ([03aecfd](prettier/eslint-plugin-prettier@03aecfd)) #### v3.1.0 (2019-05-11) - New: Allow options to be passed to prettier.getFileInfo ([#187](prettier/eslint-plugin-prettier#187)) ([21fa69a](prettier/eslint-plugin-prettier@21fa69a)) - build(deps-dev): bump eslint-plugin-eslint-plugin from 2.0.1 to 2.1.0 ([bb597e1](prettier/eslint-plugin-prettier@bb597e1)) - build(deps-dev): bump eslint-config-prettier from 4.1.0 to 4.2.0 ([0bb7c1d](prettier/eslint-plugin-prettier@0bb7c1d)) - build(deps-dev): bump vue-eslint-parser from 6.0.3 to 6.0.4 ([2f77df4](prettier/eslint-plugin-prettier@2f77df4)) - build(deps-dev): bump mocha from 6.1.3 to 6.1.4 ([222b87a](prettier/eslint-plugin-prettier@222b87a)) - build(deps-dev): bump prettier from 1.16.4 to 1.17.0 ([58d8ff8](prettier/eslint-plugin-prettier@58d8ff8)) - build(deps-dev): bump mocha from 6.1.2 to 6.1.3 ([e94e56c](prettier/eslint-plugin-prettier@e94e56c)) - build(deps-dev): bump mocha from 6.1.1 to 6.1.2 ([c02244b](prettier/eslint-plugin-prettier@c02244b)) - build(deps-dev): bump mocha from 6.0.2 to 6.1.1 ([a9a2e4e](prettier/eslint-plugin-prettier@a9a2e4e)) - build(deps-dev): bump eslint from 5.15.3 to 5.16.0 ([073c14c](prettier/eslint-plugin-prettier@073c14c)) - build(deps-dev): bump eslint from 5.15.2 to 5.15.3 ([bda931f](prettier/eslint-plugin-prettier@bda931f)) - build(deps-dev): bump eslint from 5.15.1 to 5.15.2 ([19f53d6](prettier/eslint-plugin-prettier@19f53d6)) - build(deps-dev): bump eslint from 5.15.0 to 5.15.1 ([34b39de](prettier/eslint-plugin-prettier@34b39de)) - build(deps-dev): bump eslint from 5.14.1 to 5.15.0 ([13bcc66](prettier/eslint-plugin-prettier@13bcc66)) - build(deps-dev): bump eslint-plugin-self from 1.1.0 to 1.2.0 ([5b4adb8](prettier/eslint-plugin-prettier@5b4adb8)) - build(deps-dev): bump vue-eslint-parser from 6.0.2 to 6.0.3 ([e676cd1](prettier/eslint-plugin-prettier@e676cd1)) - build(deps-dev): bump eslint-config-prettier from 4.0.0 to 4.1.0 ([b8a9215](prettier/eslint-plugin-prettier@b8a9215)) - build(deps-dev): bump mocha from 6.0.1 to 6.0.2 ([cde36e4](prettier/eslint-plugin-prettier@cde36e4)) - build(deps-dev): bump mocha from 6.0.0 to 6.0.1 ([eb39699](prettier/eslint-plugin-prettier@eb39699)) - build(deps-dev): bump mocha from 5.2.0 to 6.0.0 ([5d75421](prettier/eslint-plugin-prettier@5d75421)) - build(deps-dev): bump eslint from 5.14.0 to 5.14.1 ([829156e](prettier/eslint-plugin-prettier@829156e)) - build(deps-dev): bump eslint from 5.13.0 to 5.14.0 ([b76d0b4](prettier/eslint-plugin-prettier@b76d0b4)) - build(deps-dev): bump vue-eslint-parser from 6.0.0 to 6.0.2 ([15439e8](prettier/eslint-plugin-prettier@15439e8)) - build(deps-dev): bump vue-eslint-parser from 5.0.0 to 6.0.0 ([0ea70e5](prettier/eslint-plugin-prettier@0ea70e5)) - build(deps-dev): bump eslint from 5.12.1 to 5.13.0 ([5f18729](prettier/eslint-plugin-prettier@5f18729)) - build(deps-dev): bump prettier from 1.16.3 to 1.16.4 ([ef637fe](prettier/eslint-plugin-prettier@ef637fe)) - build(deps-dev): bump prettier from 1.16.1 to 1.16.3 ([58ab20c](prettier/eslint-plugin-prettier@58ab20c)) - build(deps-dev): bump eslint-config-prettier from 3.6.0 to 4.0.0 ([14393bd](prettier/eslint-plugin-prettier@14393bd)) - build(deps-dev): bump prettier from 1.16.0 to 1.16.1 ([00198b9](prettier/eslint-plugin-prettier@00198b9)) - build(deps-dev): bump prettier from 1.15.3 to 1.16.0 ([7890a87](prettier/eslint-plugin-prettier@7890a87)) - build(deps-dev): bump eslint from 5.12.0 to 5.12.1 ([92a8984](prettier/eslint-plugin-prettier@92a8984)) - build(deps-dev): bump eslint-config-prettier from 3.5.0 to 3.6.0 ([5292d12](prettier/eslint-plugin-prettier@5292d12)) - build(deps-dev): bump eslint-config-prettier from 3.4.0 to 3.5.0 ([44a2558](prettier/eslint-plugin-prettier@44a2558)) - build(deps-dev): bump eslint-config-prettier from 3.3.0 to 3.4.0 ([425cfce](prettier/eslint-plugin-prettier@425cfce)) - build(deps-dev): bump eslint from 5.11.1 to 5.12.0 ([3e9aa39](prettier/eslint-plugin-prettier@3e9aa39)) - build(deps-dev): bump eslint-plugin-node from 8.0.0 to 8.0.1 ([e913afd](prettier/eslint-plugin-prettier@e913afd)) - build(deps-dev): bump vue-eslint-parser from 4.0.3 to 5.0.0 ([ecfd5ba](prettier/eslint-plugin-prettier@ecfd5ba)) #### v3.0.1 (2018-12-28) - Catch and format SyntaxErrors as eslint violations ([#141](prettier/eslint-plugin-prettier#141)) ([4a0e57d](prettier/eslint-plugin-prettier@4a0e57d)) - build(deps-dev): bump eslint from 5.11.0 to 5.11.1 ([d34daed](prettier/eslint-plugin-prettier@d34daed)) - build(deps-dev): bump eslint from 5.10.0 to 5.11.0 ([7f4f45d](prettier/eslint-plugin-prettier@7f4f45d)) - build(deps-dev): bump eslint-plugin-eslint-plugin from 2.0.0 to 2.0.1 ([5be3bcf](prettier/eslint-plugin-prettier@5be3bcf)) - build(deps-dev): bump eslint from 5.9.0 to 5.10.0 ([11e7c44](prettier/eslint-plugin-prettier@11e7c44)) - build(deps-dev): bump eslint-plugin-eslint-plugin from 1.4.1 to 2.0.0 ([9e5bf14](prettier/eslint-plugin-prettier@9e5bf14)) - build(deps-dev): bump vue-eslint-parser from 4.0.2 to 4.0.3 ([234583a](prettier/eslint-plugin-prettier@234583a)) - build(deps-dev): bump vue-eslint-parser from 3.3.0 to 4.0.2 ([8675d57](prettier/eslint-plugin-prettier@8675d57)) - Upgrade: Bump vue-eslint-parser from 3.2.2 to 3.3.0 ([2379e93](prettier/eslint-plugin-prettier@2379e93)) - Upgrade: Bump eslint-config-prettier from 3.1.0 to 3.3.0 ([3ea0021](prettier/eslint-plugin-prettier@3ea0021)) - Upgrade: Bump eslint from 5.8.0 to 5.9.0 ([c774fb8](prettier/eslint-plugin-prettier@c774fb8)) - build(deps-dev): bump eslint-plugin-node from 7.0.1 to 8.0.0 ([#121](prettier/eslint-plugin-prettier#121)) ([2a4fba0](prettier/eslint-plugin-prettier@2a4fba0)) - build(deps-dev): bump eslint-plugin-eslint-plugin from 1.4.0 to 1.4.1 ([#120](prettier/eslint-plugin-prettier#120)) ([29caa29](prettier/eslint-plugin-prettier@29caa29)) - build(deps-dev): bump eslint from 5.6.0 to 5.8.0 ([#119](prettier/eslint-plugin-prettier#119)) ([2836350](prettier/eslint-plugin-prettier@2836350)) #### v3.0.0 (2018-10-01) - Chore: Add eslint peer-dependency ([d55d79c](prettier/eslint-plugin-prettier@d55d79c)) - Breaking: Extract showInvisibles and generateDifferences ([bf7c40c](prettier/eslint-plugin-prettier@bf7c40c)) - Breaking: Defining prettier options must use an object ([478c7e5](prettier/eslint-plugin-prettier@478c7e5)) - Breaking: Drop support for ESLint v3 and v4 ([2326231](prettier/eslint-plugin-prettier@2326231)) - Chore: Update dependencies ([1ec94c8](prettier/eslint-plugin-prettier@1ec94c8)) - Chore: remove two unused dependencies ([bfe459c](prettier/eslint-plugin-prettier@bfe459c)) - Chore: Rename test files to keep them sequential ([d38ea52](prettier/eslint-plugin-prettier@d38ea52)) - Breaking: Remove pragma support ([3af422c](prettier/eslint-plugin-prettier@3af422c)) - Breaking: Update minimum required pretter version to 1.13.0 ([29c0506](prettier/eslint-plugin-prettier@29c0506)) - Breaking: Drop support for node v4, v7 and v9 ([be460bd](prettier/eslint-plugin-prettier@be460bd)) - Chore: Add vscode config to autoformat on save ([9fac6b4](prettier/eslint-plugin-prettier@9fac6b4)) - Chore: Improve travis matrix ([46d2444](prettier/eslint-plugin-prettier@46d2444)) - Chore: Add format script to run prettier ([d46aa6d](prettier/eslint-plugin-prettier@d46aa6d)) #### v2.7.0 (2018-09-26) - Update: Support prettierignore and custom processors ([#111](prettier/eslint-plugin-prettier#111)) ([38537ba](prettier/eslint-plugin-prettier@38537ba)) - Build: switch to release script package ([047dc8f](prettier/eslint-plugin-prettier@047dc8f)) #### v2.6.2 (2018-07-06) - Fix: Add representation for \r to showInvisibles ([#100](prettier/eslint-plugin-prettier#100)) ([731bbb5](prettier/eslint-plugin-prettier@731bbb5)) - Docs: Add clarification about Flow/React support to readme ([#96](prettier/eslint-plugin-prettier#96)) ([977aa77](prettier/eslint-plugin-prettier@977aa77)) #### v2.6.1 (2018-06-23) - Fix: respect editorconfig ([#92](prettier/eslint-plugin-prettier#92)) ([0b04dd3](prettier/eslint-plugin-prettier@0b04dd3)) #### v2.6.0 (2018-02-02) - Update: Add option to skip loading prettierrc ([#83](prettier/eslint-plugin-prettier#83)) ([9e0fb48](prettier/eslint-plugin-prettier@9e0fb48)) - Build: add Node 8 and 9 to Travis ([e5b5fa7](prettier/eslint-plugin-prettier@e5b5fa7)) - Chore: add test for vue parsing ([1ab43fd](prettier/eslint-plugin-prettier@1ab43fd)) #### v2.5.0 (2018-01-16) - Fix: pass filepath to prettier ([#76](prettier/eslint-plugin-prettier#76)) ([0b6ab55](prettier/eslint-plugin-prettier@0b6ab55)) - Update: Add URL to rule documentation to the metadata ([#75](prettier/eslint-plugin-prettier#75)) ([804ead7](prettier/eslint-plugin-prettier@804ead7)) #### v2.4.0 (2017-12-17) - New: Add 'recommended' configuration ([#73](prettier/eslint-plugin-prettier#73)) ([e529b60](prettier/eslint-plugin-prettier@e529b60)) - Docs: Create ISSUE\_TEMPLATE.md ([4335b08](prettier/eslint-plugin-prettier@4335b08)) #### v2.3.1 (2017-09-18) - Fix: Guard against older prettier installation ([#56](prettier/eslint-plugin-prettier#56)) ([8a115f9](prettier/eslint-plugin-prettier@8a115f9)) #### v2.3.0 (2017-09-18) - Update: Support .prettierrc config files (fixes [#46](prettier/eslint-plugin-prettier#46)) ([#55](prettier/eslint-plugin-prettier#55)) ([bc89153](prettier/eslint-plugin-prettier@bc89153)) - Docs: .eslintrc.json > .eslintrc ([#52](prettier/eslint-plugin-prettier#52)) ([95f0808](prettier/eslint-plugin-prettier@95f0808)) - Upgrade: jest-docblock to ^21.0.0 ([#50](prettier/eslint-plugin-prettier#50)) ([c777111](prettier/eslint-plugin-prettier@c777111)) - Chore: upgrade prettier to ^1.6.1 ([#49](prettier/eslint-plugin-prettier#49)) ([56deffa](prettier/eslint-plugin-prettier@56deffa)) - Chore: use eslint-plugin-self for linting ([#47](prettier/eslint-plugin-prettier#47)) ([5ea0526](prettier/eslint-plugin-prettier@5ea0526)) #### v2.2.0 (2017-08-16) - New: expose reporter api (fixes [#39](prettier/eslint-plugin-prettier#39)) ([#41](prettier/eslint-plugin-prettier#41)) ([1666067](prettier/eslint-plugin-prettier@1666067)) #### v2.1.2 (2017-06-14) - Chore: Relax peerDependencies ([#30](prettier/eslint-plugin-prettier#30)) ([a19b8af](prettier/eslint-plugin-prettier@a19b8af)) - Chore: Add release script ([#25](prettier/eslint-plugin-prettier#25)) ([8fbfe73](prettier/eslint-plugin-prettier@8fbfe73)) #### v2.1.1 (2017-05-19) - Fix: Support ESLint <3.11.0 ([#24](prettier/eslint-plugin-prettier#24)) ([fde7fdf](prettier/eslint-plugin-prettier@fde7fdf)) - Chore: add yarn.lock ([#23](prettier/eslint-plugin-prettier#23)) ([8b55518](prettier/eslint-plugin-prettier@8b55518)) - Docs: fix links in changelog ([#22](prettier/eslint-plugin-prettier#22)) ([7e70e11](prettier/eslint-plugin-prettier@7e70e11)) #### v2.1.0 (2017-05-16) - Merge with eslint-plugin-prettify ([#21](prettier/eslint-plugin-prettier#21)) ([6de494f](prettier/eslint-plugin-prettier@6de494f)) - Docs: update repo links to new URL ([#18](prettier/eslint-plugin-prettier#18)) ([6b69492](prettier/eslint-plugin-prettier@6b69492)) - Chore: Upgrade development dependencies ([#16](prettier/eslint-plugin-prettier#16)) ([12984ea](prettier/eslint-plugin-prettier@12984ea)) - Docs: fix outdated info about prettier's semicolon support ([da6aad1](prettier/eslint-plugin-prettier@da6aad1)) - Docs: update prettier options in example ([#14](prettier/eslint-plugin-prettier#14)) ([0ae173f](prettier/eslint-plugin-prettier@0ae173f)) - Docs: Change the order of dependencies install ([#13](prettier/eslint-plugin-prettier#13)) ([cbf803c](prettier/eslint-plugin-prettier@cbf803c)) - Docs: Add CONTRIBUTING.md (fixes [#9](prettier/eslint-plugin-prettier#9)) ([40fe55b](prettier/eslint-plugin-prettier@40fe55b)) #### v2.0.1 (2017-02-26) - Docs: add travis badge to README.md ([1daa495](prettier/eslint-plugin-prettier@1daa495)) - Upgrade: prettier to 0.18.0 ([1700e41](prettier/eslint-plugin-prettier@1700e41)) - Chore: use eslint-config-prettier ([c979b84](prettier/eslint-plugin-prettier@c979b84)) - Fix: avoid relying on an internal eslint function ([5296930](prettier/eslint-plugin-prettier@5296930)) - Docs: mention eslint-config-prettier in README.md ([3fd855d](prettier/eslint-plugin-prettier@3fd855d)) - Chore: pin the version of prettier used to lint this module (refs [#1](prettier/eslint-plugin-prettier#1)) ([db85633](prettier/eslint-plugin-prettier@db85633)) #### v2.0.0 (2017-01-28) - Docs: create changelog ([d388095](prettier/eslint-plugin-prettier@d388095)) - Docs: add 2.0.0 migration guide ([db508d7](prettier/eslint-plugin-prettier@db508d7)) - Breaking: Make prettier a peerDependency ([#1](prettier/eslint-plugin-prettier#1)) ([d8a8992](prettier/eslint-plugin-prettier@d8a8992)) - Docs: add repo url to package.json ([2474bc9](prettier/eslint-plugin-prettier@2474bc9)) - Docs: suggest prettier-eslint if eslint rules disagree with prettier ([3414437](prettier/eslint-plugin-prettier@3414437)) ## [v5.5.1](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#551) ##### Patch Changes - [#748](prettier/eslint-plugin-prettier#748) [`bfd1e95`](prettier/eslint-plugin-prettier@bfd1e95) Thanks [@JounQin](https://github.com/JounQin)! - fix: use `prettierRcOptions` directly for prettier 3.6+ ## [v5.5.0](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#550) ##### Minor Changes - [#743](prettier/eslint-plugin-prettier#743) [`92f2c9c`](prettier/eslint-plugin-prettier@92f2c9c) Thanks [@dotcarmen](https://github.com/dotcarmen)! - feat: support non-js languages like `css` for `@eslint/css` and `json` for `@eslint/json` ## [v5.4.1](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#541) ##### Patch Changes - [#740](prettier/eslint-plugin-prettier#740) [`c21521f`](prettier/eslint-plugin-prettier@c21521f) Thanks [@JounQin](https://github.com/JounQin)! - fix(deps): bump `synckit` to v0.11.7 to fix potential `TypeError: Cannot read properties of undefined (reading 'message')` error
Hello! This PR adds an option to allow you to skip loading the prettierrc file. I have a use case for this in some external tooling and it would really come in handy.