@@ -20,7 +20,7 @@ This JSCS plugin checks for words that can't be found in a dictionary, and tells
20
20
you where they are so that you can spell them correctly. You can choose which
21
21
dictionaries and languages to use. You can add more words and ignore existing
22
22
ones. You can define exceptions for names used by 3rd parties. You can even
23
- restrict a word's usage to property names only.
23
+ restrict a word's usage to identifiers or property names only.
24
24
25
25
## Installation
26
26
@@ -65,11 +65,13 @@ Values:
65
65
- ` Object ` :
66
66
- ` dictionaries ` : (default ` ["english"] ` ) array of dictionary names including
67
67
` "english" ` , ` "american" ` , ` "british" ` and ` "canadian" `
68
- - ` allowWordsInIdentifiersAndProperties ` : additional words allowed anywhere
69
- - ` allowWordsInProperties ` : additional words allowed only as properties
70
- - ` allowNamesForIdentifiersAndProperties ` : names ignored by spellcheck
71
- - ` allowNamesForProperties ` : names ignored by spellcheck when used as properties
72
- - ` excluded ` : words to exclude from the dictionaries
68
+ - ` allowWords ` : additional words allowed anywhere
69
+ - ` allowWordsInIdentifiers ` : additional words allowed only in identifiers
70
+ - ` allowWordsInProperties ` : additional words allowed only in properties
71
+ - ` allowNames ` : whole names ignored by spellcheck
72
+ - ` allowNamesAsIdentifiers ` : whole names ignored by spellcheck when used as identifiers
73
+ - ` allowNamesAsProperties ` : whole names ignored by spellcheck when used as properties
74
+ - ` excludeWords ` : words to exclude from the dictionaries
73
75
74
76
#### Example
75
77
@@ -78,11 +80,11 @@ Values:
78
80
79
81
" requireDictionaryWords" : {
80
82
" dictionaries" : [ " english" , " american" ],
81
- " allowWordsInIdentifiersAndProperties " : [ " transclude" ],
83
+ " allowWords " : [ " transclude" ],
82
84
" allowWordsInProperties" : [ " chmod" ],
83
- " allowNamesForIdentifiersAndProperties " : [ " $stateParams" , " util" ],
84
- " allowNamesForProperties " : [ " src" ],
85
- " excluded " : [ " i" ]
85
+ " allowNamesAsIdentifiers " : [ " $stateParams" , " util" ],
86
+ " allowNamesAsProperties " : [ " src" ],
87
+ " excludeWords " : [ " i" ]
86
88
}
87
89
```
88
90
@@ -116,7 +118,7 @@ var color = 'papayawhip';
116
118
var colour = ' papayawhip' ;
117
119
```
118
120
119
- ##### Valid for mode ` "allowWordsInIdentifiersAndProperties ": [ "transclude" ] `
121
+ ##### Valid for mode ` "allowWords ": [ "transclude" ] `
120
122
121
123
``` js
122
124
var transclude = function () {};
@@ -138,33 +140,33 @@ fs.chmodSync('/', mode);
138
140
var chmod = 0777 ;
139
141
```
140
142
141
- ##### Valid for mode ` "allowNamesForIdentifiersAndProperties ": [ "$stateParams", "util" ] `
143
+ ##### Valid for mode ` "allowNamesAsIdentifiers ": [ "$stateParams", "util" ] `
142
144
143
145
``` js
144
146
var util = require (' util' );
145
147
function Controller ($stateParams ) {}
146
148
```
147
149
148
- ##### Invalid for mode ` "allowNamesForIdentifiersAndProperties ": [ "$stateParams", "util" ] `
150
+ ##### Invalid for mode ` "allowNamesAsIdentifiers ": [ "$stateParams", "util" ] `
149
151
150
152
``` js
151
153
var stringUtil = {};
152
154
var params = {};
153
155
```
154
156
155
- ##### Valid for mode ` "allowNamesForProperties ": [ "src" ] `
157
+ ##### Valid for mode ` "allowNamesAsProperties ": [ "src" ] `
156
158
157
159
``` js
158
160
element .src = ' https://youtu.be/dQw4w9WgXcQ' ;
159
161
```
160
162
161
- ##### Invalid for mode ` "allowNamesForProperties ": [ "src" ] `
163
+ ##### Invalid for mode ` "allowNamesAsProperties ": [ "src" ] `
162
164
163
165
``` js
164
166
var data = { videoSrc: ' youtube' };
165
167
```
166
168
167
- ##### Invalid for mode ` "excluded ": [ "i" ] `
169
+ ##### Invalid for mode ` "excludeWords ": [ "i" ] `
168
170
169
171
``` js
170
172
for (var i = 0 ; i < array .length ; i++ ) {}
0 commit comments