Skip to content

Commit

Permalink
feat: use eslint-plugin-mdx for md/mdx files
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 10, 2023
1 parent 1a0529c commit f626b54
Show file tree
Hide file tree
Showing 6 changed files with 1,077 additions and 136 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = antfu(
'eslint:recommended',
// Other extends...
],
})
}),

// Other flat configs...
)
Expand Down Expand Up @@ -189,7 +189,7 @@ export default antfu({
ignores: [
'./fixtures',
// ...globs
]
],
})
```

Expand Down Expand Up @@ -235,8 +235,6 @@ import {
jsonc,
markdown,
node,
sortPackageJson,
sortTsconfig,
stylistic,
typescript,
unicorn,
Expand Down Expand Up @@ -311,7 +309,7 @@ export default antfu(
rules: {
'style/semi': ['error', 'never'],
},
}
},
)
```

Expand All @@ -331,7 +329,7 @@ export default antfu({
},
yaml: {},
// ...
}
},
})
```

Expand Down Expand Up @@ -372,8 +370,8 @@ export default antfu({
* Supports Prettier and dprint
* By default uses Prettier
*/
markdown: 'prettier'
}
markdown: 'prettier',
},
})
```

Expand Down Expand Up @@ -435,7 +433,7 @@ It's recommended to opt-in on each file individually using [configuration commen

```js
/* eslint perfectionist/sort-objects: "error" */
const objectWantedToSort = {
export const objectWantedToSort = {
a: 2,
b: 1,
c: 3,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"eslint-plugin-i": "^2.29.0",
"eslint-plugin-jsdoc": "^46.9.0",
"eslint-plugin-jsonc": "^2.10.0",
"eslint-plugin-markdown": "^3.0.1",
"eslint-plugin-mdx": "^2.2.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-perfectionist": "^2.5.0",
Expand Down
Loading

0 comments on commit f626b54

Please sign in to comment.