File tree Expand file tree Collapse file tree 7 files changed +34
-73
lines changed Expand file tree Collapse file tree 7 files changed +34
-73
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " eslint-config-prettier " : minor
3
+ ---
4
+
5
+ feat: migrate to exports field
Original file line number Diff line number Diff line change 40
40
41
41
- name : Prettier
42
42
run : yarn prettier --check .
43
-
44
- - name : Build
45
- run : yarn build
Original file line number Diff line number Diff line change 10
10
],
11
11
"license" : " MIT" ,
12
12
"packageManager" : " yarn@4.7.0" ,
13
- "bin" : " build/bin/cli.js" ,
14
- "main" : " build/index.js" ,
15
- "types" : " build/index.d.ts" ,
13
+ "bin" : " bin/cli.js" ,
14
+ "main" : " index.js" ,
15
+ "exports" : {
16
+ "." : {
17
+ "types" : " ./index.d.ts" ,
18
+ "default" : " ./index.js"
19
+ },
20
+ "./prettier" : {
21
+ "types" : " ./prettier.d.ts" ,
22
+ "default" : " ./prettier.js"
23
+ },
24
+ "./package.json" : " ./package.json"
25
+ },
26
+ "types" : " index.d.ts" ,
16
27
"files" : [
17
- " build"
28
+ " bin" ,
29
+ " index.d.ts" ,
30
+ " index.js" ,
31
+ " prettier.d.ts" ,
32
+ " prettier.js"
18
33
],
19
34
"keywords" : [
20
35
" eslint" ,
24
39
" prettier"
25
40
],
26
41
"scripts" : {
27
- "build" : " node scripts/build.js" ,
28
42
"prettier" : " prettier --write ." ,
29
- "release" : " yarn build && clean-pkg-json && changeset publish" ,
43
+ "release" : " clean-pkg-json && changeset publish" ,
30
44
"test" : " yarn test:prettier && ESLINT_CONFIG_PRETTIER_NO_DEPRECATED=true yarn test:with-env && ESLINT_USE_FLAT_CONFIG=false yarn test:with-env && yarn build" ,
31
45
"test:cli-sanity" : " node ./bin/cli.js index.js" ,
32
46
"test:cli-sanity-warning" : " node ./bin/cli.js react.js ./bin/cli.js" ,
Original file line number Diff line number Diff line change
1
+ export const rules : Record < string , 0 > ;
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
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
- } ,
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 ,
12
10
} ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2703,7 +2703,7 @@ __metadata:
2703
2703
peerDependencies :
2704
2704
eslint : " >=7.0.0"
2705
2705
bin :
2706
- eslint-config-prettier : build/ bin/cli.js
2706
+ eslint-config-prettier : bin/cli.js
2707
2707
languageName : unknown
2708
2708
linkType : soft
2709
2709
You can’t perform that action at this time.
0 commit comments