0.0.1 • Published 9 months ago

@ygkn/textlint-rule-preset-ygkn v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@ygkn/textlint-rule-preset-ygkn

@ygkn's textlint preset rule.

Install

Install with npm:

npm install @ygkn/textlint-rule-preset-ygkn

Rules

This preset based on some presets and rules as follows.

See src/rules.ts for more details.

Presets

Rules

Usage

rc file (Recommended)

JavaScript (with type checking)

/** @type {import("@textlint/config-loader").TextlintRcConfig}*/
module.exports = {
  rules: {
    "@ygkn/preset-ygkn": true,
  },
};

JSON

{
  "rules": {
    "@ygkn/preset-ygkn": true
  }
}

Via CLI

textlint --rule @ygkn/preset-ygkn README.md

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

MIT © ygkn