Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Update major yandex-speller package #197

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v10.0.0
- Update major `yandex-speller` package.
- Remove unsupported options of new API Yandex Speller: `flagLatin`, `ignoreLatin`, `byWords`, `ignoreRomanNumerals` and `ignoreUppercase`.

## v9.1.0
- Update `yandex-speller` package.

Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,12 @@ To run the linter:<br/>
| `dictionary` | `Array` | [`--dictionary`](#--dictionary-file) |
| `report` | `Array` | [`--report`](#--report-type) |
| `checkYo` | `Boolean` | [`--check-yo`](#--check-yo) |
| `byWords` | `Boolean` | [`--by-words`](#--by-words) |
| `findRepeatWords` | `Boolean` | [`--find-repeat-words`](#--find-repeat-words) |
| `flagLatin` | `Boolean` | [`--flag-latin`](#--flag-latin) |
| `ignoreTags` | `Array` | [`--ignore-tags`](#--ignore-tags-tags) |
| `ignoreText` | `Array` | [`--ignore-text`](#--ignore-text-regexp) |
| `ignoreCapitalization` | `Boolean` | [`--ignore-capitalization`](#--ignore-capitalization) |
| `ignoreDigits` | `Boolean` | [`--ignore-digits`](#--ignore-digits) |
| `ignoreLatin` | `Boolean` | [`--ignore-latin`](#--ignore-latin) |
| `ignoreRomanNumerals` | `Boolean` | [`--ignore-roman-numerals`](#--ignore-roman-numerals) |
(#--ignore-roman-numerals) |
| `ignoreUppercase` | `Boolean` | [`--ignore-uppercase`](#--ignore-uppercase) |
| `ignoreUrls` | `Boolean` | [`--ignore-urls`](#--ignore-urls) |
| `maxRequests` | `Number` | [`--max-requests`](#--max-requests-value) |
Expand Down
5 changes: 0 additions & 5 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,11 @@ JSON-файл собственного словаря.
| `dictionary` | `Array` | [`--dictionary`](#--dictionary-file) |
| `report` | `Array` | [`--report`](#--report-type) |
| `checkYo` | `Boolean` | [`--check-yo`](#--check-yo) |
| `byWords` | `Boolean` | [`--by-words`](#--by-words) |
| `findRepeatWords` | `Boolean` | [`--find-repeat-words`](#--find-repeat-words) |
| `flagLatin` | `Boolean` | [`--flag-latin`](#--flag-latin) |
| `ignoreTags` | `Array` | [`--ignore-tags`](#--ignore-tags-tags) |
| `ignoreText` | `Array` | [`--ignore-text`](#--ignore-text-regexp) |
| `ignoreCapitalization` | `Boolean` | [`--ignore-capitalization`](#--ignore-capitalization) |
| `ignoreDigits` | `Boolean` | [`--ignore-digits`](#--ignore-digits) |
| `ignoreLatin` | `Boolean` | [`--ignore-latin`](#--ignore-latin) |
| `ignoreRomanNumerals` | `Boolean` | [`--ignore-roman-numerals`](#--ignore-roman-numerals) |
| `ignoreUppercase` | `Boolean` | [`--ignore-uppercase`](#--ignore-uppercase) |
| `ignoreUrls` | `Boolean` | [`--ignore-urls`](#--ignore-urls) |
| `maxRequests` | `Number` | [`--max-requests`](#--max-requests-value) |

Expand Down
7 changes: 1 addition & 6 deletions lib/cli/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ const { kebabCase, splitTrim, splitByCommas } = require('../helpers/string');
const { packageJson } = require('../helpers/package');

const apiOptions = [
['byWords', 'do not use a dictionary environment (context) during the scan. This is useful in cases where the service is transmitted to the input of a list of individual words'],
['findRepeatWords', 'highlight repetitions of words, consecutive. For example, "I flew to to to Cyprus"'],
['flagLatin', 'celebrate words, written in Latin, as erroneous'],
['ignoreCapitalization', 'ignore the incorrect use of UPPERCASE / lowercase letters, for example, in the word "moscow"'],
['ignoreDigits', 'ignore words with numbers, such as "avp17h4534"'],
['ignoreLatin', 'ignore words, written in Latin, for example, "madrid"'],
['ignoreRomanNumerals', 'ignore Roman numerals ("I, II, III, ...")'],
['ignoreUrls', 'ignore Internet addresses, email addresses and filenames'],
['ignoreUppercase', 'ignore words written in capital letters']
['ignoreUrls', 'ignore Internet addresses, email addresses and filenames']
];

function setCliOptions(defaultConfig) {
Expand Down
7 changes: 1 addition & 6 deletions lib/config/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@
"dictionary": { "type": "array" },
"report": { "type": "array" },
"checkYo": { "type": "boolean" },
"byWords": { "type": "boolean" },
"findRepeatWords": { "type": "boolean" },
"flagLatin": { "type": "boolean" },
"ignoreTags": { "type": "array" },
"ignoreText": { "type": "array" },
"ignoreCapitalization": { "type": "boolean" },
"ignoreDigits": { "type": "boolean" },
"ignoreLatin": { "type": "boolean" },
"ignoreRomanNumerals": { "type": "boolean" },
"ignoreUppercase": { "type": "boolean" },
"ignoreUrls": { "type": "boolean" },
"maxRequests": { "type": "number" }
"maxRequests": { "type": "number" }
}
Loading
Loading