eslint-config-prettier 10.0.3 → 10.1.0

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/package.json CHANGED
@@ -1,16 +1,31 @@
1
1
  {
2
2
  "name": "eslint-config-prettier",
3
- "version": "10.0.3",
3
+ "version": "10.1.0",
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",
7
7
  "author": "Simon Lydell",
8
8
  "license": "MIT",
9
- "bin": "build/bin/cli.js",
10
- "main": "build/index.js",
11
- "types": "build/index.d.ts",
9
+ "bin": "bin/cli.js",
10
+ "main": "index.js",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./index.d.ts",
14
+ "default": "./index.js"
15
+ },
16
+ "./prettier": {
17
+ "types": "./prettier.d.ts",
18
+ "default": "./prettier.js"
19
+ },
20
+ "./package.json": "./package.json"
21
+ },
22
+ "types": "index.d.ts",
12
23
  "files": [
13
- "build"
24
+ "bin",
25
+ "index.d.ts",
26
+ "index.js",
27
+ "prettier.d.ts",
28
+ "prettier.js"
14
29
  ],
15
30
  "keywords": [
16
31
  "eslint",
package/prettier.d.ts ADDED
@@ -0,0 +1 @@
1
+ export const rules: Record<string, 0>;
package/prettier.js ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ exports.rules = {
4
+ // These are safe to use as long as the `"prettier/prettier"` rule from
5
+ // eslint-plugin-prettier isn’t enabled.
6
+ // These are also included in `"plugin:prettier/recommended"`:
7
+ // https://github.com/prettier/eslint-plugin-prettier#recommended-configuration
8
+ "arrow-body-style": 0,
9
+ "prefer-arrow-callback": 0,
10
+ };
@@ -1,3 +0,0 @@
1
- throw new Error(
2
- '"prettier/@typescript-eslint" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21'
3
- );
package/build/babel.js DELETED
@@ -1,3 +0,0 @@
1
- throw new Error(
2
- '"prettier/babel" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21'
3
- );
package/build/flowtype.js DELETED
@@ -1,3 +0,0 @@
1
- throw new Error(
2
- '"prettier/flowtype" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21'
3
- );
package/build/prettier.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = {
4
- rules: {
5
- // These are safe to use as long as the `"prettier/prettier"` rule from
6
- // eslint-plugin-prettier isn’t enabled.
7
- // These are also included in `"plugin:prettier/recommended"`:
8
- // https://github.com/prettier/eslint-plugin-prettier#recommended-configuration
9
- "arrow-body-style": 0,
10
- "prefer-arrow-callback": 0,
11
- },
12
- };
package/build/react.js DELETED
@@ -1,3 +0,0 @@
1
- throw new Error(
2
- '"prettier/react" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21'
3
- );
package/build/standard.js DELETED
@@ -1,3 +0,0 @@
1
- throw new Error(
2
- '"prettier/standard" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21'
3
- );
package/build/unicorn.js DELETED
@@ -1,3 +0,0 @@
1
- throw new Error(
2
- '"prettier/unicorn" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21'
3
- );
package/build/vue.js DELETED
@@ -1,3 +0,0 @@
1
- throw new Error(
2
- '"prettier/vue" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21'
3
- );
File without changes
File without changes
File without changes
File without changes