# textlint-rule-period-in-list-item

> textlint rule that check with or without period in list item.

Latest version **1.0.1** (published 2023-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install textlint-rule-period-in-list-item
pnpm add textlint-rule-period-in-list-item
yarn add textlint-rule-period-in-list-item
bun add textlint-rule-period-in-list-item
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-01-15 |
| First published | 2017-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 27.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | azu |
| Maintainers | azu |
| Keywords | textlintrule |

## Links

- npm: https://www.npmjs.com/package/textlint-rule-period-in-list-item
- Repository: https://github.com/textlint-rule/textlint-rule-period-in-list-item
- Issues: https://github.com/textlint-rule/textlint-rule-period-in-list-item/issues
- npm.io page: https://npm.io/package/textlint-rule-period-in-list-item

## Dependencies (1)

- [check-ends-with-period](https://npm.io/package/check-ends-with-period.md) ^3.0.1

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-01-15
- 1.0.0 — 2023-01-15
- 0.3.3 — 2022-09-04
- 0.3.2 — 2019-07-10
- 0.3.1 — 2019-06-15
- 0.3.0 — 2019-03-28
- 0.2.0 — 2017-03-22
- 0.1.1 — 2017-03-22

## README

# textlint-rule-period-in-list-item

textlint rule that check with or without period in list item.

**Default** 

No period mark at end of the list item.
You can change the behavior by options.

**OK**:

```
- item
```

**NG**:

```
- item.
```


## Install

Install with [npm](https://www.npmjs.com/):

    npm install textlint-rule-period-in-list-item

## Usage

Via `.textlintrc`(Recommended)

```json
{
    "rules": {
        "period-in-list-item": true
    }
}
```

Via CLI

```
textlint --rule period-in-list-item README.md
```

## Options

```json5
{
    // prefer to use period mark.
    // "" (default is no period)
    // You can select period mark like "." from "periodMarks".
    "periodMark": "",
    // Built-in recognized period mark list
    // if the period of the text is not `periodMark` and it is a string in the `periodMarks`,
    "periodMarks": [".", "。", "．"],
    // Ignore only link tag
    // - [text](link)
    // It is not needed period mark
    "ignoreLinkEnd": true,
    // define exception period mark list at end of the list item
    // Ignore this period mark
    "allowPeriodMarks": [],
    // Allow emoji at end of the list item
    "allowEmoji": false,
    // Allow ordered list item
    // 1. ~.
    // 2. ~.
    "allowOrderedList": false,
    // If not exist `periodMark` at end of the list item
    // Automatically, append `periodMark` when does textlint --fix
    "forceAppendPeriod": false
}
```

## Example

Use `.` as period mark at end of the list item.
Automatically, force append periodMark.

```json
{
    "rules": {
        "period-in-list-item": {
           "periodMark": ".",
           "forceAppendPeriod": true
        }
    }
}
```

**Before**

```
- item

<!-- Not exist period mark(".") at end of list item. -->
```

**After**

`textlint --fix` fixes this issue.

```
- item.
```

## Related

- [textlint-ja/textlint-rule-ja-no-mixed-period: 文末の句点(。)の統一 と 抜けをチェックするtextlintルール](https://github.com/textlint-ja/textlint-rule-ja-no-mixed-period/ "textlint-ja/textlint-rule-ja-no-mixed-period: 文末の句点(。)の統一 と 抜けをチェックするtextlintルール")

## Changelog

See [Releases page](https://github.com/textlint-rule/textlint-rule-period-in-list-item/releases).

## Running tests

Install devDependencies and Run `npm test`:

    npm i -d && npm test

## Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, [please create an issue](https://github.com/textlint-rule/textlint-rule-period-in-list-item/issues).

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

- [github/azu](https://github.com/azu)
- [twitter/azu_re](https://twitter.com/azu_re)

## License

MIT © azu

---
_Source: https://npm.io/package/textlint-rule-period-in-list-item · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
