File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ const getLoc = utils.getLoc;
13
13
const getModuleName = utils . getModuleName ;
14
14
const getRange = utils . getRange ;
15
15
const isGraphQLTag = utils . isGraphQLTag ;
16
- const isGraphQLDeprecatedTag = utils . isGraphQLDeprecatedTag ;
17
16
const shouldLint = utils . shouldLint ;
18
17
19
18
const CREATE_CONTAINER_FUNCTIONS = new Set ( [
@@ -148,10 +147,7 @@ module.exports = {
148
147
property . computed === false &&
149
148
property . value . type === 'TaggedTemplateExpression'
150
149
) {
151
- if (
152
- ! isGraphQLTag ( property . value . tag ) &&
153
- ! isGraphQLDeprecatedTag ( property . value . tag )
154
- ) {
150
+ if ( ! isGraphQLTag ( property . value . tag ) ) {
155
151
context . report ( {
156
152
node : property . value . tag ,
157
153
message :
Original file line number Diff line number Diff line change @@ -104,10 +104,6 @@ function isGraphQLTag(tag) {
104
104
return tag . type === 'Identifier' && tag . name === 'graphql' ;
105
105
}
106
106
107
- function isGraphQLDeprecatedTag ( tag ) {
108
- return tag . type === 'Identifier' && tag . name === 'graphql_DEPRECATED' ;
109
- }
110
-
111
107
function shouldLint ( context ) {
112
108
return / g r a p h q l | r e l a y / i. test ( context . getSourceCode ( ) . text ) ;
113
109
}
@@ -126,6 +122,5 @@ module.exports = {
126
122
getRange : getRange ,
127
123
hasPrecedingEslintDisableComment : hasPrecedingEslintDisableComment ,
128
124
isGraphQLTag : isGraphQLTag ,
129
- isGraphQLDeprecatedTag : isGraphQLDeprecatedTag ,
130
125
shouldLint : shouldLint
131
126
} ;
Original file line number Diff line number Diff line change @@ -47,12 +47,6 @@ const valid = [
47
47
code : `createFragmentContainer(Component, {
48
48
user: graphql\`fragment MyComponent_user on User {id}\`,
49
49
});`
50
- } ,
51
- {
52
- filename : 'path/to/MyDeprecatedComponent.jsx' ,
53
- code : `createFragmentContainer(Component, {
54
- user: graphql_DEPRECATED\`fragment MyComponent_user on User {id}\`,
55
- });`
56
50
}
57
51
] ;
58
52
You can’t perform that action at this time.
0 commit comments