Skip to content

Commit

Permalink
docs: add prettier to ignore rules in IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 2, 2023
1 parent 6cfefa2 commit b538b48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ Add the following settings to your `.vscode/settings.json`:
// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "prettier/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
Expand Down Expand Up @@ -313,7 +314,7 @@ export default antfu(
)
```

We also provided a `overrides` options to make it easier:
We also provided an `overrides` options to make it easier:

```js
// eslint.config.js
Expand Down
1 change: 1 addition & 0 deletions src/cli/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const vscodeSettingsString = `
// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "prettier/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
Expand Down

0 comments on commit b538b48

Please sign in to comment.