File tree Expand file tree Collapse file tree 1 file changed +0
-56
lines changed
packages/plugin/src/rules/naming-convention Expand file tree Collapse file tree 1 file changed +0
-56
lines changed Original file line number Diff line number Diff line change @@ -375,40 +375,6 @@ exports[`naming-convention > invalid > Invalid #10 1`] = `
375375 1 | query Foo { foo } query Bar { bar }
376376`;
377377
378- exports[ ` naming-convention > invalid > forbiddenPattern 1 ` ] = `
379- #### ⌨️ Code
380-
381- 1 | query queryFoo { foo } query getBar { bar }
382-
383- #### ⚙️ Options
384-
385- {
386- "OperationDefinition": {
387- "forbiddenPattern": [
388- "/^(get|query)/"
389- ]
390- }
391- }
392-
393- #### ❌ Error 1/2
394-
395- > 1 | query queryFoo { foo } query getBar { bar }
396- | ^^^^^^^^ Query "queryFoo" should not contain the forbidden pattern "/^(get|query)/"
397-
398- #### 💡 Suggestion: Rename to \` Foo\`
399-
400- 1 | query Foo { foo } query getBar { bar }
401-
402- #### ❌ Error 2/2
403-
404- > 1 | query queryFoo { foo } query getBar { bar }
405- | ^^^^^^ Query "getBar" should not contain the forbidden pattern "/^(get|query)/"
406-
407- #### 💡 Suggestion: Rename to \` Bar\`
408-
409- 1 | query queryFoo { foo } query Bar { bar }
410- `;
411-
412378exports[ ` naming-convention > invalid > forbiddenPatterns 1 ` ] = `
413379#### ⌨️ Code
414380
@@ -2007,28 +1973,6 @@ exports[`naming-convention > invalid > operations-recommended config 1`] = `
20071973 13 | fragment Test on Test { id }
20081974`;
20091975
2010- exports[ ` naming-convention > invalid > requiredPattern 1 ` ] = `
2011- #### ⌨️ Code
2012-
2013- 1 | type Test { enabled: Boolean! }
2014-
2015- #### ⚙️ Options
2016-
2017- {
2018- "FieldDefinition[gqlType.gqlType.name.value=Boolean]": {
2019- "style": "camelCase",
2020- "requiredPattern": [
2021- "/^(is|has)/"
2022- ]
2023- }
2024- }
2025-
2026- #### ❌ Error
2027-
2028- > 1 | type Test { enabled: Boolean! }
2029- | ^^^^^^^ Field "enabled" should contain the required pattern: ^(is|has)
2030- `;
2031-
20321976exports[ ` naming-convention > invalid > requiredPatterns 1 ` ] = `
20331977#### ⌨️ Code
20341978
You can’t perform that action at this time.
0 commit comments