Skip to content

Commit a3bdded

Browse files
authored
Merge pull request #57 from dotansimha/package-fixes
Fixes for package publication and docs
2 parents 39764a5 + 5809bdc commit a3bdded

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.changeset/green-melons-approve.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': minor
3+
---
4+
5+
Fixes for docs and package publish

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,22 @@ To get started, create an override configuration for your ESLint, while applying
5353
}
5454
```
5555

56-
If you are using code files to store your GraphQL schema or your GraphQL operations, you can extend the behaviour of ESLint and extract those, by adding the following to your setup:
56+
If you are using code files to store your GraphQL schema or your GraphQL operations, you can extend the behaviour of ESLint and extract those, by adding **an additional `override`** that does that extraction processes:
5757

5858
```json
5959
{
60-
"processor": "@graphql-eslint/graphql",
61-
"overrides": [ ... ]
60+
"overrides": [
61+
{
62+
"files": ["*.tsx", "*.ts", "*.jsx", "*.js"],
63+
"processor": "@graphql-eslint/graphql"
64+
},
65+
{
66+
"files": ["*.graphql"],
67+
"parser": "@graphql-eslint/eslint-plugin",
68+
"plugins": ["@graphql-eslint"],
69+
"rules": { ... }
70+
}
71+
]
6272
}
6373
```
6474

packages/plugin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"input": "./src/index.ts"
4040
},
4141
"publishConfig": {
42+
"directory": "dist",
4243
"access": "public"
4344
}
4445
}

0 commit comments

Comments
 (0)