Skip to content

Commit af5784d

Browse files
committed
aa
1 parent 394d8ed commit af5784d

File tree

11 files changed

+33
-26
lines changed

11 files changed

+33
-26
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@graphql-eslint/example-custom-rule",
2+
"name": "@graphql-eslint/example-custom-rules",
33
"version": "0.0.0",
44
"type": "module",
55
"repository": "https://github.com/dimaMachina/graphql-eslint",

packages/plugin/__tests__/examples.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe('Examples', () => {
123123
});
124124

125125
it('should work with custom rules', () => {
126-
const cwd = path.join(CWD, 'examples', 'custom-rule');
126+
const cwd = path.join(CWD, 'examples', 'custom-rules');
127127
const flatResults = getFlatESLintOutput(cwd);
128128
expect(normalizeResults(flatResults)).toMatchSnapshot();
129129
expect(countErrors(flatResults)).toBe(1);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
sidebarTitle: Custom GraphQL Rules
3+
---
4+
5+
# Usage with custom GraphQL rules
6+
7+
<ESLintConfigs gitFolder="custom-rules" additionalFiles={{ 'My Rule': 'my-rule.js' }} />

website/content/docs/usage/graphql.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ icon: GraphQLIcon
55

66
# Usage with `.graphql` files
77

8-
<ESLintConfigs gitFolder="graphql-config" graphqlConfigFile="graphql.config.js" />
8+
<ESLintConfigs gitFolder="graphql-config" additionalFiles={{ 'GraphQL Config': 'graphql.config.js' }} />

website/content/docs/usage/js.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ export default [
4141
4242
---
4343

44-
<ESLintConfigs gitFolder="code-file" graphqlConfigFile="graphql.config.js" />
44+
<ESLintConfigs gitFolder="code-file" additionalFiles={{ 'GraphQL Config': 'graphql.config.js' }} />

website/content/docs/usage/multiple-projects.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ icon: StackIcon
55

66
# Usage to lint different schemas
77

8-
<ESLintConfigs gitFolder="multiple-projects-graphql-config" graphqlConfigFile="graphql.config.ts" />
8+
<ESLintConfigs gitFolder="multiple-projects-graphql-config" additionalFiles={{ 'GraphQL Config': 'graphql.config.ts' }} />

website/content/docs/usage/schema-and-operations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ icon: HalfIcon
55

66
# Usage to lint both schema/operations
77

8-
<ESLintConfigs gitFolder="monorepo" graphqlConfigFile="graphql.config.js" />
8+
<ESLintConfigs gitFolder="monorepo" additionalFiles={{ 'GraphQL Config': 'graphql.config.js' }} />

0 commit comments

Comments
 (0)