### Install JTF Style Preset for textlint Source: https://github.com/textlint-ja/textlint-rule-preset-jtf-style/blob/master/README.md This command installs the `textlint-rule-preset-jtf-style` package using npm, making it available for use with textlint. It's the first step to integrate the JTF style guide into your linting workflow. ```shell npm install textlint-rule-preset-jtf-style ``` -------------------------------- ### Use JTF Style Preset Globally with textlint Source: https://github.com/textlint-ja/textlint-rule-preset-jtf-style/blob/master/README.md This method demonstrates how to install textlint and the JTF style preset globally, allowing you to lint files directly from the command line using the `--preset` option. It's a quick way to get started without project-specific configurations. ```shell npm install -g textlint textlint-rule-preset-jtf-style textlint --preset textlint-rule-preset-jtf-style README.md ``` -------------------------------- ### Install textlint and JTF Style Preset Locally (Recommended) Source: https://github.com/textlint-ja/textlint-rule-preset-jtf-style/blob/master/README.md This approach installs textlint and the JTF style preset as development dependencies within your project, ensuring a clean and reproducible environment. It's recommended for project-specific linting configurations. ```shell npm init # package.jsonがないなら npm install -D textlint textlint-rule-preset-jtf-style ``` -------------------------------- ### Execute textlint with Local JTF Style Configuration Source: https://github.com/textlint-ja/textlint-rule-preset-jtf-style/blob/master/README.md This command runs textlint against a target file, automatically picking up the `.textlintrc` configuration in the current directory. When executed via `npm run-script`, the `node_modules/.bin/` prefix can be omitted for convenience. ```shell node_modules/.bin/textlint /path/to/target.md ``` -------------------------------- ### Configure .textlintrc for JTF Style Preset Source: https://github.com/textlint-ja/textlint-rule-preset-jtf-style/blob/master/README.md This JSON5 snippet shows how to configure your `.textlintrc` file to enable the `preset-jtf-style` rule. By adding this entry under the `rules` property, textlint will automatically apply the JTF style checks to your documents. ```json5 { "rules": { "preset-jtf-style": true } } ``` -------------------------------- ### Automatically Fix Documents with textlint JTF Style Rules Source: https://github.com/textlint-ja/textlint-rule-preset-jtf-style/blob/master/README.md Some rules within the JTF style preset support automatic fixing. Using the `--fix` option with the textlint command will attempt to automatically correct issues identified by these rules. Always back up your files before running `--fix` as it modifies the original content. ```shell textlint --fix /path/to/target.md ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.