eslint-config-prettier 10.1.3 → 10.1.5

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/bin/cli.js CHANGED
@@ -60,8 +60,13 @@ if (module === require.main) {
60
60
  })
61
61
  )
62
62
  .then((configs) => {
63
- const rules = configs.flatMap(({ rules }, index) =>
64
- Object.entries(rules).map((entry) => [...entry, args[index]])
63
+ const rules = configs.flatMap(
64
+ (
65
+ // Initializing config and rules for files that aren't included in the flat config,
66
+ // which is a very unlikely scenario, but should still be treated as a success
67
+ { rules = {} } = {},
68
+ index
69
+ ) => Object.entries(rules).map((entry) => [...entry, args[index]])
65
70
  );
66
71
  const result = processRules(rules);
67
72
  if (result.stderr) {
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare const eslintConfigPrettier: {
2
- rules: Record<string, 0 | "off">;
3
- };
4
-
2
+ rules: Record<string, 0 | "off">;
3
+ };
4
+
5
5
  export = eslintConfigPrettier;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-prettier",
3
- "version": "10.1.3",
3
+ "version": "10.1.5",
4
4
  "type": "commonjs",
5
5
  "description": "Turns off all rules that are unnecessary or might conflict with Prettier.",
6
6
  "repository": "prettier/eslint-config-prettier",
@@ -9,9 +9,11 @@
9
9
  "maintainers": [
10
10
  "JounQin (https://www.1stG.me) <admin@1stg.me>"
11
11
  ],
12
+ "funding": "https://opencollective.com/eslint-config-prettier",
12
13
  "license": "MIT",
13
14
  "bin": "bin/cli.js",
14
15
  "main": "index.js",
16
+ "types": "index.d.ts",
15
17
  "exports": {
16
18
  ".": {
17
19
  "types": "./index.d.ts",
@@ -27,7 +29,6 @@
27
29
  },
28
30
  "./package.json": "./package.json"
29
31
  },
30
- "types": "index.d.ts",
31
32
  "files": [
32
33
  "bin",
33
34
  "flat.d.ts",