File tree Expand file tree Collapse file tree 2 files changed +142
-3
lines changed
content/getting-started/setting-up-your-npm-user-account Expand file tree Collapse file tree 2 files changed +142
-3
lines changed Original file line number Diff line number Diff line change @@ -45,5 +45,145 @@ module.exports = {
45
45
'no-irregular-whitespace' : 'off' ,
46
46
} ,
47
47
} ,
48
+ {
49
+ files : [ '*.mdx' , 'shared.js' ] ,
50
+ rules : {
51
+ 'react/forbid-elements' : [
52
+ 'error' ,
53
+ {
54
+ // See https://github.com/npm/documentation/pull/791
55
+ // https://gist.githubusercontent.com/cecchi/99772a8483914b112400/raw/bcaecc4ba809caec518158bb46f9dead456ae5da/html-tags.json
56
+ forbid : [
57
+ 'abbr' ,
58
+ 'acronym' ,
59
+ 'address' ,
60
+ 'applet' ,
61
+ 'area' ,
62
+ 'article' ,
63
+ 'audio' ,
64
+ 'b' ,
65
+ 'base' ,
66
+ 'basefont' ,
67
+ 'bdi' ,
68
+ 'bdo' ,
69
+ 'big' ,
70
+ 'blink' ,
71
+ 'br' ,
72
+ 'button' ,
73
+ 'canvas' ,
74
+ 'caption' ,
75
+ 'center' ,
76
+ 'cite' ,
77
+ 'code' ,
78
+ 'col' ,
79
+ 'colgroup' ,
80
+ 'content' ,
81
+ 'data' ,
82
+ 'datalist' ,
83
+ 'dd' ,
84
+ 'del' ,
85
+ 'details' ,
86
+ 'dfn' ,
87
+ 'dialog' ,
88
+ 'dir' ,
89
+ 'div' ,
90
+ 'dl' ,
91
+ 'dt' ,
92
+ 'element' ,
93
+ 'em' ,
94
+ 'embed' ,
95
+ 'fieldset' ,
96
+ 'figcaption' ,
97
+ 'figure' ,
98
+ 'footer' ,
99
+ 'form' ,
100
+ 'frame' ,
101
+ 'frameset' ,
102
+ 'h1' ,
103
+ 'h2' ,
104
+ 'h3' ,
105
+ 'h4' ,
106
+ 'h5' ,
107
+ 'h6' ,
108
+ 'head' ,
109
+ 'header' ,
110
+ 'hgroup' ,
111
+ 'hr' ,
112
+ 'html' ,
113
+ 'i' ,
114
+ 'input' ,
115
+ 'ins' ,
116
+ 'isindex' ,
117
+ 'kbd' ,
118
+ 'keygen' ,
119
+ 'label' ,
120
+ 'legend' ,
121
+ // ok because there is no mdx replacement and styles are provided via parent ul/ol
122
+ // 'li',
123
+ 'listing' ,
124
+ 'main' ,
125
+ 'map' ,
126
+ 'mark' ,
127
+ 'menu' ,
128
+ 'menuitem' ,
129
+ 'meter' ,
130
+ 'nav' ,
131
+ 'noembed' ,
132
+ 'noscript' ,
133
+ 'object' ,
134
+ 'ol' ,
135
+ 'optgroup' ,
136
+ 'option' ,
137
+ 'output' ,
138
+ 'p' ,
139
+ 'param' ,
140
+ 'plaintext' ,
141
+ 'pre' ,
142
+ 'progress' ,
143
+ 'q' ,
144
+ 'rp' ,
145
+ 'rt' ,
146
+ 'rtc' ,
147
+ 'ruby' ,
148
+ 's' ,
149
+ 'samp' ,
150
+ 'script' ,
151
+ 'section' ,
152
+ 'select' ,
153
+ 'shadow' ,
154
+ 'small' ,
155
+ 'source' ,
156
+ 'spacer' ,
157
+ 'span' ,
158
+ 'strike' ,
159
+ // ok since there is no mdx replacement
160
+ // 'strong'
161
+ 'style' ,
162
+ 'sub' ,
163
+ 'summary' ,
164
+ 'sup' ,
165
+ 'table' ,
166
+ 'tbody' ,
167
+ 'td' ,
168
+ 'template' ,
169
+ 'tfoot' ,
170
+ 'th' ,
171
+ 'thead' ,
172
+ 'time' ,
173
+ 'title' ,
174
+ 'tr' ,
175
+ 'track' ,
176
+ 'tt' ,
177
+ 'u' ,
178
+ 'ul' ,
179
+ 'var' ,
180
+ 'video' ,
181
+ 'wbr' ,
182
+ 'xmp' ,
183
+ ] ,
184
+ } ,
185
+ ] ,
186
+ } ,
187
+ } ,
48
188
] ,
49
189
}
Original file line number Diff line number Diff line change @@ -138,14 +138,13 @@ Although security-key with WebAuthn can be used for authentication from both the
138
138
139
139
2 . On the command line, type the [ ` npm profile ` ] ( /cli/profile ) command along with the option for the 2FA mode you want to enable:
140
140
141
- - To enable 2FA for authorization and writes, type:< br />
141
+ - To enable 2FA for authorization and writes, type:
142
142
143
143
```
144
144
npm profile enable-2fa auth-and-writes
145
-
146
145
```
147
146
148
- - To enable 2FA for authorization only, type:< br />
147
+ - To enable 2FA for authorization only, type:
149
148
150
149
```
151
150
npm profile enable-2fa auth-only
You can’t perform that action at this time.
0 commit comments