File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
1
github :
2
2
- JounQin
3
+ - prettier-eslint
3
4
- 1stG
4
5
- rx-ts
5
6
- un-ts
6
- patreon : 1stG
7
+ patreon : PrettierESLint
7
8
open_collective : eslint-plugin-prettier
8
9
custom :
9
10
- https://opencollective.com/1stG
10
11
- https://opencollective.com/rxts
11
12
- https://opencollective.com/unts
13
+ - https://www.patreon.com/1stG
12
14
- https://afdian.net/@JounQin
Original file line number Diff line number Diff line change
1
+ test /fixtures
2
+ /pnpm-lock.yaml
1
3
# this file doesn't exist, but we use it as a filename that should be ignored
2
4
# by prettier in the tests
3
5
ignore-me.js
Original file line number Diff line number Diff line change 10
10
11
11
- [ #621 ] ( https://github.com/prettier/eslint-plugin-prettier/pull/621 ) [ ` 2b09e7f ` ] ( https://github.com/prettier/eslint-plugin-prettier/commit/2b09e7fc64f38297c8ca39d087dba1f122ef999c ) Thanks [ @JounQin ] ( https://github.com/JounQin ) ! - feat: support parsing ` markdown ` via ` eslint-mdx ` natively
12
12
13
+ What means the following is unnecessary anymore when using with ` eslint-mdx ` /` eslint-plugin-mdx ` !
14
+
15
+ ``` json5
16
+ [
17
+ {
18
+ files: [' **/*.md' ],
19
+ rules: { ' prettier/prettier' : [' error' , { parser: ' markdown' }] },
20
+ },
21
+ {
22
+ files: [' **/*.mdx' ],
23
+ rules: { ' prettier/prettier' : [' error' , { parser: ' mdx' }] },
24
+ },
25
+ ]
26
+ ```
27
+
13
28
## 5.1.1
14
29
15
30
### Patch Changes
26
41
27
42
``` js
28
43
// eslint.config.js
29
- const eslintPluginPrettierRecommended = require (" eslint-plugin-prettier/recommended" );
44
+ const eslintPluginPrettierRecommended = require (' eslint-plugin-prettier/recommended' );
30
45
31
46
module .exports = [
32
47
// Any other config imports go at the top
Original file line number Diff line number Diff line change 43
43
"format" : " prettier --write . && pnpm lint --fix" ,
44
44
"lint" : " eslint . --cache -f friendly --max-warnings 10" ,
45
45
"prepare" : " simple-git-hooks" ,
46
- "prerelease" : " pnpm format && pnpm test" ,
47
- "release" : " changeset publish" ,
46
+ "release" : " pnpm format && pnpm test && changeset publish" ,
48
47
"test" : " pnpm lint && mocha"
49
48
},
50
49
"peerDependencies" : {
You can’t perform that action at this time.
0 commit comments