eslint-plugin-prettier 3.1.3 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## v3.1.4 (2020-06-14)
4
+
5
+ * Avoid clearing Prettier cache when not using prettierrc ([#303](git@github.com:prettier/eslint-plugin-prettier/issues/303)) ([3c8e2d9](git@github.com:prettier/eslint-plugin-prettier/commit/3c8e2d9871d86a82b10fe3d54f32bb5a54f2913b))
6
+ * build(deps-dev): bump eslint-plugin-eslint-plugin from 2.2.1 to 2.2.2 ([93f7c8b](git@github.com:prettier/eslint-plugin-prettier/commit/93f7c8be7c99a0c3e4b11be6a5311316f76e6e08))
7
+ * build(deps-dev): bump eslint from 7.1.0 to 7.2.0 ([650ac7a](git@github.com:prettier/eslint-plugin-prettier/commit/650ac7a40c1f4d46b0bd37efad3eed84f8155a44))
8
+ * build(deps-dev): bump eslint-plugin-self from 1.2.0 to 1.2.1 ([6449ec1](git@github.com:prettier/eslint-plugin-prettier/commit/6449ec151f119e98d69da91ad6d10dbb374162d8))
9
+ * build(deps-dev): bump eslint from 7.0.0 to 7.1.0 ([fd30022](git@github.com:prettier/eslint-plugin-prettier/commit/fd30022a51a57a4e96dd4ab3e04956b945886874))
10
+ * Chore: Add CI tests for ESLint 7 ([#291](git@github.com:prettier/eslint-plugin-prettier/issues/291)) ([cc2979b](git@github.com:prettier/eslint-plugin-prettier/commit/cc2979b68258b8545931ce37168adfe17b1d3a7b))
11
+ * build(deps-dev): bump eslint-config-prettier from 6.10.1 to 6.11.0 ([35a7ee6](git@github.com:prettier/eslint-plugin-prettier/commit/35a7ee68b02ea3088270210ac8dc85ff47ef65a9))
12
+
3
13
  ## v3.1.3 (2020-04-13)
4
14
 
5
15
  * Fix: Set `meta.type` to "layout" ([#283](git@github.com:prettier/eslint-plugin-prettier/issues/283)) ([97152e2](git@github.com:prettier/eslint-plugin-prettier/commit/97152e2787bf9bb27f053d6a91ccf826dc96a505))
@@ -152,7 +152,12 @@ module.exports = {
152
152
  const filepath = context.getFilename();
153
153
  const source = sourceCode.text;
154
154
 
155
- if (prettier && prettier.clearConfigCache) {
155
+ // This allows long-running ESLint processes (e.g. vscode-eslint) to
156
+ // pick up changes to .prettierrc without restarting the editor. This
157
+ // will invalidate the prettier plugin cache on every file as well which
158
+ // will make ESLint very slow, so it would probably be a good idea to
159
+ // find a better way to do this.
160
+ if (usePrettierrc && prettier && prettier.clearConfigCache) {
156
161
  prettier.clearConfigCache();
157
162
  }
158
163
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-prettier",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Runs prettier as an eslint rule",
5
5
  "keywords": [
6
6
  "eslint",
@@ -31,12 +31,12 @@
31
31
  "prettier-linter-helpers": "^1.0.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "eslint": ">= 5.0.0",
35
- "prettier": ">= 1.13.0"
34
+ "eslint": ">=5.0.0",
35
+ "prettier": ">=1.13.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@not-an-aardvark/node-release-script": "^0.1.0",
39
- "eslint": "^6.0.0",
39
+ "eslint": "^7.0.0",
40
40
  "eslint-config-not-an-aardvark": "^2.1.0",
41
41
  "eslint-config-prettier": "^6.0.0",
42
42
  "eslint-plugin-eslint-plugin": "^2.0.0",