File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,7 @@ module.exports = {
109
109
&& ! ast . isAssignmentLHS ( node )
110
110
&& ! isAllowedAssignment ( node )
111
111
) ) || (
112
- // The JSXText type is not present in the estree type definitions
113
- // @ts -expect-error
112
+ // @ts -expect-error The JSXText type is not present in the estree type definitions
114
113
( node . property . type === 'Literal' || node . property . type === 'JSXText' ) && node . property . value === 'propTypes'
115
114
&& ! ast . isAssignmentLHS ( node )
116
115
&& ! isAllowedAssignment ( node )
Original file line number Diff line number Diff line change @@ -196,11 +196,9 @@ module.exports = {
196
196
*/
197
197
function getTokensLocations ( node ) {
198
198
const sourceCode = context . getSourceCode ( ) ;
199
- // The types differ between ASTNode and ESTree.Node.
200
- // @ts -expect-error
199
+ // @ts -expect-error The JSXText type is not present in the estree type definitions
201
200
const opening = sourceCode . getFirstToken ( node ) . loc . start ;
202
- // The types differ between ASTNode and ESTree.Node.
203
- // @ts -expect-error
201
+ // @ts -expect-error The JSXText type is not present in the estree type definitions
204
202
const closing = sourceCode . getLastTokens ( node , node . selfClosing ? 2 : 1 ) [ 0 ] . loc . start ;
205
203
const tag = sourceCode . getFirstToken ( node . name ) . loc . start ;
206
204
let lastProp ;
Original file line number Diff line number Diff line change @@ -141,8 +141,7 @@ module.exports = {
141
141
* @return {Number } Indent
142
142
*/
143
143
function getNodeIndent ( node ) {
144
- // The types differ between ASTNode and ESTree.Node.
145
- // @ts -expect-error
144
+ // @ts -expect-error The types differ between ASTNode and ESTree.Node.
146
145
let src = context . getSourceCode ( ) . getText ( node , node . loc . start . column + extraColumnStart ) ;
147
146
const lines = src . split ( '\n' ) ;
148
147
src = lines [ 0 ] ;
You can’t perform that action at this time.
0 commit comments