Skip to content

Commit

Permalink
fix!: disable js-block by default
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 12, 2022
1 parent dc2dc69 commit 91c2b74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -107,6 +107,8 @@ import { ref } from 'vue'
└───────────────────────┘
```

This rule is *disabled* by default.

#### [`js-colon`](https://github.com/antfu/vscode-smart-clicks/blob/main/src/rules/js-colon.ts)

`:` to the value.
Expand Down Expand Up @@ -137,7 +139,8 @@ All the rules are enabled by default. To disable a specific rule, set the rule t
{
"smartClicks.rules": {
"dash": false,
"html-element": false
"html-element": false,
"js-block": true
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -84,7 +84,7 @@
},
"js-block": {
"type": "boolean",
"default": true,
"default": false,
"description": "Blocks like `if`, `for`, `while`, etc. in JavaScript.\n\n```js\n\nfunction () { }\n└─────────────────┘\n```\n\n```js\n\nimport { ref } from 'vue'\n└───────────────────────┘\n```"
},
"js-colon": {
Expand Down

0 comments on commit 91c2b74

Please sign in to comment.