Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use eslint-plugin-mdx for md/mdx files #353

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = antfu(
'eslint:recommended',
// Other extends...
],
})
}),

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

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

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

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

Expand Down Expand Up @@ -436,7 +434,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.4.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-perfectionist": "^2.5.0",
Expand Down