0.0.133 • Published 12 days ago

@anchan828/textlint-rule-decorators v0.0.133

Weekly downloads
300
License
MIT
Repository
github
Last release
12 days ago

@anchan828/textlint-rule-decorators

Install

npm i @anchan828/textlint-rule-decorators reflect-metadata

Usage

import { createReportModule, TextlintRule, TextlintASTNodeType } from "@anchan828/textlint-rule-decorators";

@TextlintRule()
class MyRule {
  constructor(private context: Readonly<TextlintRuleContext>) {}

  @TextlintASTNodeType(ASTNodeTypes.Str)
  async strReporter(node: TypeofTxtNode<ASTNodeTypes.Str>): Promise<void> {
    if (node.value === "error") {
      const ruleError = new this.context.RuleError(`error`, {
        fix: this.context.fixer.replaceText(node, "valid"),
      });

      this.context.report(node, ruleError);
    }
  }
}

export = createReportModule([MyRule]);
0.0.131

26 days ago

0.0.130

1 month ago

0.0.133

12 days ago

0.0.132

19 days ago

0.0.128

2 months ago

0.0.127

2 months ago

0.0.126

2 months ago

0.0.125

2 months ago

0.0.129

1 month ago

0.0.124

2 months ago

0.0.123

3 months ago

0.0.122

3 months ago

0.0.117

4 months ago

0.0.116

4 months ago

0.0.115

5 months ago

0.0.114

5 months ago

0.0.119

4 months ago

0.0.118

4 months ago

0.0.113

5 months ago

0.0.112

5 months ago

0.0.111

6 months ago

0.0.110

6 months ago

0.0.120

3 months ago

0.0.121

3 months ago

0.0.106

7 months ago

0.0.109

6 months ago

0.0.108

6 months ago

0.0.107

6 months ago

0.0.105

7 months ago

0.0.104

7 months ago

0.0.103

7 months ago

0.0.102

8 months ago

0.0.101

8 months ago

0.0.100

8 months ago

0.0.99

8 months ago

0.0.98

9 months ago

0.0.97

9 months ago

0.0.96

9 months ago

0.0.95

9 months ago

0.0.94

9 months ago

0.0.93

10 months ago

0.0.92

10 months ago

0.0.91

10 months ago

0.0.90

10 months ago

0.0.89

11 months ago

0.0.88

11 months ago

0.0.87

11 months ago

0.0.86

11 months ago

0.0.85

12 months ago

0.0.84

12 months ago

0.0.83

12 months ago

0.0.81

1 year ago

0.0.82

1 year ago

0.0.80

1 year ago

0.0.78

1 year ago

0.0.79

1 year ago

0.0.77

1 year ago

0.0.76

1 year ago

0.0.75

1 year ago

0.0.74

1 year ago

0.0.73

1 year ago

0.0.72

1 year ago

0.0.71

1 year ago

0.0.70

1 year ago

0.0.69

1 year ago

0.0.68

1 year ago

0.0.67

1 year ago

0.0.66

1 year ago

0.0.65

1 year ago

0.0.64

1 year ago

0.0.63

1 year ago

0.0.62

1 year ago

0.0.61

1 year ago

0.0.60

1 year ago

0.0.59

1 year ago

0.0.58

1 year ago

0.0.57

1 year ago

0.0.56

2 years ago

0.0.55

2 years ago

0.0.54

2 years ago

0.0.53

2 years ago

0.0.52

2 years ago

0.0.51

2 years ago

0.0.50

2 years ago

0.0.49

2 years ago

0.0.48

2 years ago

0.0.47

2 years ago

0.0.46

2 years ago

0.0.45

2 years ago

0.0.44

2 years ago

0.0.43

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.40

2 years ago

0.0.39

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago