Skip to content

Commit

Permalink
Version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Oct 4, 2022
1 parent 1d6d6a6 commit 2e77058
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 15 deletions.
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,22 @@ Now the `.autocorrectrc` file has created.
Config file example:

```yml
# Config for Speelcheck
# Config rules
rules:
# Auto add spacing between CJK (Chinese, Japanese, Korean) and English words.
# 0 - off, 1 - error, 2 - warning
space-word: 1
# Add space between some punctuations.
space-punctuation: 1
# Convert to fullwidth.
fullwidth: 1
# Convert to halfwidth.
halfwidth: 1
# To remove space near the fullwidth.
no-space-fullwidth: 1
# Spellcheck
spellcheck: 2
spellcheck:
# 0 - Disabled, 1 - Format and Lint, 2 - LintOnly
mode: 1
# Correct Words (Case insensitive) for by Spellcheck
words:
- GitHub
Expand Down Expand Up @@ -211,16 +223,11 @@ function hello() {

#### Disable some rules

You can use `autocorrect-disable <rule>` in comment to disable some rules.
> Since: 2.0

Rules:
You can use `autocorrect-disable <rule>` in comment to disable some rules.

- `space-word` - Disable to add space between words.
- `space-punctuation` - Disable to add space between some punctuations.
- `no-space-fullwidth` - Disable to remove space near the fullwidth.
- `fullwidth` - Disable to convert to fullwidth.
- `halfwidth` - Disable to convert to halfwidth.
- `spellcheck` - Disable to check spell.
> Rule names please see: [Configuration](#configuration)

```js
function hello() {
Expand Down
2 changes: 1 addition & 1 deletion autocorrect-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
name = "autocorrect-cli"
readme = "../README.md"
repository = "https://github.com/huacnlee/autocorrect"
version = "1.11.0"
version = "2.0.0"

[[bin]]
name = "autocorrect"
Expand Down
2 changes: 1 addition & 1 deletion autocorrect-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "autocorrect-wasm"
version = "1.11.0"
version = "2.0.0"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
9 changes: 8 additions & 1 deletion autocorrect/.autocorrectrc.default
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
rules:
# Auto add spacing between CJK (Chinese, Japanese, Korean) and English words.
# 0 - off, 1 - error, 2 - warning
space-word: 1
# Add space between some punctuations.
space-punctuation: 1
# Convert to fullwidth.
fullwidth: 1
# Convert to halfwidth.
halfwidth: 1
# To remove space near the fullwidth.
no-space-fullwidth: 1
# Spellcheck
spellcheck: 2
spellcheck:
words:
# Please do not add a general English word (eg. apple, python) here.
# Users can add their special words to their .autocorrectrc file by their need.
# Users can add their special words to their .autocorrectrc file by their need.
2 changes: 1 addition & 1 deletion autocorrect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
name = "autocorrect"
readme = "../README.md"
repository = "https://github.com/huacnlee/autocorrect"
version = "1.11.0"
version = "2.0.0"

[lib]
name = "autocorrect"
Expand Down

0 comments on commit 2e77058

Please sign in to comment.