textlint-rule-ja-no-mixed-period
Advanced tools
Comparing version 2.1.3 to 3.0.0
// LICENSE : MIT | ||
"use strict"; | ||
var RuleHelper = require("textlint-rule-helper").RuleHelper; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _checkEndsWithPeriod = require("check-ends-with-period"); | ||
var _textlintRuleHelper = require("textlint-rule-helper"); | ||
var japaneseRegExp = /(?:[々〇〻\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD87F][\uDC00-\uDFFF]|[ぁ-んァ-ヶ])/; | ||
@@ -12,3 +17,2 @@ /*** | ||
var classicPeriodMarkPattern = /[。\.]/; | ||
var checkEndsWithPeriod = require("check-ends-with-period"); | ||
var defaultOptions = { | ||
@@ -41,3 +45,3 @@ // 優先する句点文字 | ||
} = context; | ||
var helper = new RuleHelper(context); | ||
var helper = new _textlintRuleHelper.RuleHelper(context); | ||
// 優先する句点記号 | ||
@@ -82,3 +86,3 @@ var preferPeriodMark = options.periodMark || defaultOptions.periodMark; | ||
index | ||
} = checkEndsWithPeriod(lastStrText, { | ||
} = (0, _checkEndsWithPeriod.checkEndsWithPeriod)(lastStrText, { | ||
periodMarks: allowPeriodMarks, | ||
@@ -123,6 +127,7 @@ allowEmoji: allowEmojiAtEnd | ||
}; | ||
module.exports = { | ||
var _default = { | ||
linter: reporter, | ||
fixer: reporter | ||
}; | ||
exports.default = _default; | ||
//# sourceMappingURL=textlint-rule-ja-no-mixed-period.js.map |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "2.1.3", | ||
"version": "3.0.0", | ||
"description": "文末の句点(。)の統一 OR 抜けをチェックするtextlintルール", | ||
@@ -39,10 +39,10 @@ "main": "lib/textlint-rule-ja-no-mixed-period.js", | ||
"lint-staged": "^13.1.0", | ||
"prettier": "^2.8.1", | ||
"prettier": "^2.8.3", | ||
"textlint-plugin-review": "^0.4.1", | ||
"textlint-scripts": "^12.2.4", | ||
"textlint-tester": "^12.2.4" | ||
"textlint-scripts": "^12.5.0", | ||
"textlint-tester": "^12.5.0" | ||
}, | ||
"dependencies": { | ||
"check-ends-with-period": "^1.0.1", | ||
"textlint-rule-helper": "^2.2.3" | ||
"check-ends-with-period": "^3.0.0", | ||
"textlint-rule-helper": "^2.2.4" | ||
}, | ||
@@ -49,0 +49,0 @@ "prettier": { |
// LICENSE : MIT | ||
"use strict"; | ||
const RuleHelper = require("textlint-rule-helper").RuleHelper; | ||
import { checkEndsWithPeriod } from "check-ends-with-period"; | ||
import { RuleHelper } from "textlint-rule-helper"; | ||
const japaneseRegExp = | ||
@@ -12,3 +14,3 @@ /(?:[々〇〻\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD87F][\uDC00-\uDFFF]|[ぁ-んァ-ヶ])/; | ||
const classicPeriodMarkPattern = /[。\.]/; | ||
const checkEndsWithPeriod = require("check-ends-with-period"); | ||
const defaultOptions = { | ||
@@ -132,5 +134,5 @@ // 優先する句点文字 | ||
module.exports = { | ||
export default { | ||
linter: reporter, | ||
fixer: reporter | ||
}; |
Sorry, the diff of this file is not supported yet
28592
259
+ Addedcheck-ends-with-period@3.0.2(transitive)
+ Addedemoji-regex@10.4.0(transitive)
- Removedarray-buffer-byte-length@1.0.2(transitive)
- Removedarray.prototype.find@2.2.3(transitive)
- Removedarraybuffer.prototype.slice@1.0.4(transitive)
- Removedasync-function@1.0.0(transitive)
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedcall-bind@1.0.8(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removedcheck-ends-with-period@1.0.1(transitive)
- Removeddata-view-buffer@1.0.2(transitive)
- Removeddata-view-byte-length@1.0.2(transitive)
- Removeddata-view-byte-offset@1.0.1(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedemoji-regex@6.5.1(transitive)
- Removedend-with@1.0.2(transitive)
- Removedes-abstract@1.23.9(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedes-set-tostringtag@2.1.0(transitive)
- Removedes-shim-unscopables@1.0.2(transitive)
- Removedes-to-primitive@1.3.0(transitive)
- Removedfor-each@0.3.4(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedfunction.prototype.name@1.1.8(transitive)
- Removedfunctions-have-names@1.2.3(transitive)
- Removedget-intrinsic@1.2.7(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedget-symbol-description@1.1.0(transitive)
- Removedglobalthis@1.0.4(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-bigints@1.1.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.2.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinternal-slot@1.1.0(transitive)
- Removedis-array-buffer@3.0.5(transitive)
- Removedis-async-function@2.1.1(transitive)
- Removedis-bigint@1.1.0(transitive)
- Removedis-boolean-object@1.2.1(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-data-view@1.0.2(transitive)
- Removedis-date-object@1.1.0(transitive)
- Removedis-finalizationregistry@1.1.1(transitive)
- Removedis-generator-function@1.1.0(transitive)
- Removedis-map@2.0.3(transitive)
- Removedis-number-object@1.1.1(transitive)
- Removedis-regex@1.2.1(transitive)
- Removedis-set@2.0.3(transitive)
- Removedis-shared-array-buffer@1.0.4(transitive)
- Removedis-string@1.1.1(transitive)
- Removedis-symbol@1.1.1(transitive)
- Removedis-typed-array@1.1.15(transitive)
- Removedis-weakmap@2.0.2(transitive)
- Removedis-weakref@1.1.0(transitive)
- Removedis-weakset@2.0.4(transitive)
- Removedisarray@2.0.5(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedobject.assign@4.1.7(transitive)
- Removedown-keys@1.0.1(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedreflect.getprototypeof@1.0.10(transitive)
- Removedregexp.prototype.flags@1.5.4(transitive)
- Removedsafe-array-concat@1.1.3(transitive)
- Removedsafe-push-apply@1.0.0(transitive)
- Removedsafe-regex-test@1.1.0(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedset-function-name@2.0.2(transitive)
- Removedset-proto@1.0.0(transitive)
- Removedside-channel@1.1.0(transitive)
- Removedside-channel-list@1.0.0(transitive)
- Removedside-channel-map@1.0.1(transitive)
- Removedside-channel-weakmap@1.0.2(transitive)
- Removedstring.prototype.trim@1.2.10(transitive)
- Removedstring.prototype.trimend@1.0.9(transitive)
- Removedstring.prototype.trimstart@1.0.8(transitive)
- Removedtyped-array-buffer@1.0.3(transitive)
- Removedtyped-array-byte-length@1.0.3(transitive)
- Removedtyped-array-byte-offset@1.0.4(transitive)
- Removedtyped-array-length@1.0.7(transitive)
- Removedunbox-primitive@1.1.0(transitive)
- Removedwhich-boxed-primitive@1.1.1(transitive)
- Removedwhich-builtin-type@1.2.1(transitive)
- Removedwhich-collection@1.0.2(transitive)
- Removedwhich-typed-array@1.1.18(transitive)
Updatedtextlint-rule-helper@^2.2.4