-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
.textlintrc
126 lines (115 loc) · 3.86 KB
/
.textlintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"rules": {
"terminology": {
"severity": "warning",
"defaultTerms": false,
// Some terms borrowed from https://github.com/cypress-io/cypress-documentation/blob/main/.textlintrc
"terms": [
// NativeScript specifics
["absolute[- ]?layout(s?)", "AbsoluteLayout$1"],
["dock[- ]?layout(s?)", "DockLayout$1"],
["flex(?:box)?[- ]?layout(s?)", "FlexboxLayout$1"],
["grid[- ]?layout(s?)", "GridLayout$1"],
["root[- ]?layout(s?)", "RootLayout$1"],
["stack[- ]?layout(s?)", "StackLayout$1"],
["wrap[- ]?layout(s?)", "WrapLayout$1"],
["activity[- ]?indicator(s?)", "ActivityIndicator$1"],
["date[- ]?picker(s?)", "DatePicker$1"],
["html[- ]?view(s?)", "HtmlView$1"],
["list[- ]?picker(s?)", "ListPicker$1"],
["list[- ]?view(s?)", "ListView$1"],
["place[- ]?holder(s?)", "Placeholder$1"],
["scroll[- ]?view(s?)", "ScrollView$1"],
["search[- ]?bar(s?)", "SearchBar$1"],
["segmented[- ]?bar(s?)", "SegmentedBar$1"],
["tab[- ]?view(s?)", "TabView$1"],
["text[- ]?field(s?)", "TextField$1"],
["text[- ]?view(s?)", "TextView$1"],
["time[- ]?picker(s?)", "TimePicker$1"],
["web[- ]?view(s?)", "WebView$1"],
["action[- ]?bar(s?)", "ActionBar$1"],
// Prefer simple
["callback function", "callback"],
// Brands and Technologies
"JavaScript",
"TypeScript",
"NativeScript",
["ns", "NativeScript"],
"GitHub",
["VSCode", "VS Code"],
"webpack",
["WebSocket(s?)", "WebSocket$1"],
"WiFi",
"API",
["API['’]?s", "APIs"],
"CLI",
"CSS",
// Words and phrases
["\\(s\\)he", "they"],
["he or she", "they"],
["he/she", "they"],
["crazy", "complex"],
["crazier", "more complex"],
["craziest", "most complex"],
["dumb", "unintended"],
["insane", "outrageous"],
["blacklist", "block"],
["whitelist", "allow"],
["will be executed", "will be called"],
// Prefer American spelling
["behaviour", "behavior"],
["cancelled", "canceled"],
["cancelling", "canceling"],
["centre", "center"],
["colour", "color"],
["customise", "customize"],
["customisation", "customization"],
["favourite", "favorite"],
["labelled", "labeled"],
["licence", "license"],
["organise", "organize"],
["optimise", "optimize"],
// Common misspellings
["gaurantee", "guarantee"],
// Words we would like to not use altogether
["obviously", ""],
["basically", ""],
["simply", ""],
["of( )?course", ""],
["clearly", ""],
["just", ""],
["everyone knows", ""],
["easy", ""],
["which will( be)?", ""],
["which is the", ""],
// Words we would like to not use at the start of a sentence
["^so", ""],
["^and", ""],
["^but", ""],
["^however", ""],
// Single word
["change[- ]log(s?)", "changelog$1"],
["code[- ]base(es?)", "codebase$1"],
["e[- ]mail(s?)", "email$1"],
["end[- ]point(s?)", "endpoint$1"],
["file[- ]name(s?)", "filename$1"],
["can[- ]not", "cannot$1"],
["back-?end(s?)", "backend$1"],
["front-?end(s?)", "frontend$1"],
["full-?stack(s?)", "fullstack$1"],
// Multiple words
["open-?source(ed?)", "open source$1"],
// Hyphenated
["end ?to ?end", "end-to-end"],
["retryability", "retry-ability"],
["retriability", "retry-ability"],
// Shortened words
["repo\\b", "repository"],
["repos\\b", "repositories"]
]
}
},
"filters": {
"comments": true
}
}