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