New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

textlint-rule-ja-no-mixed-period

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-rule-ja-no-mixed-period - npm Package Compare versions

Comparing version 2.1.3 to 3.0.0

15

lib/textlint-rule-ja-no-mixed-period.js
// 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc