gqlcheck
Version:
Performs additional checks on your GraphQL documents and operations to ensure they conform to your rules, whilst allow-listing existing operations and their constituent parts (and allowing overrides on a per-field basis). Rules include max selection set d
79 lines (78 loc) • 2.52 kB
JSON
{
"name": "gqlcheck",
"version": "0.4.1",
"description": "Performs additional checks on your GraphQL documents and operations to ensure they conform to your rules, whilst allow-listing existing operations and their constituent parts (and allowing overrides on a per-field basis). Rules include max selection set depth, max list nesting, require pagination, limit self-referencing loops, etc. Add your own rules!",
"main": "dist/index.js",
"bin": {
"gqlcheck": "dist/cli.js"
},
"scripts": {
"build": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json -w",
"lint": "yarn run eslint . && yarn prettier:check",
"lint:fix": "yarn run eslint --fix . && yarn prettier:fix",
"test": "node --test",
"prepack": "rm -Rf dist && yarn build",
"version": "node scripts/postversion.mjs && git add src/version.ts",
"-----": "-----",
"eslint": "eslint --ext .js,.jsx,.ts,.tsx,.mjs,.cjs",
"prettier": "prettier --cache --ignore-path ./.eslintignore",
"prettier:all": "yarn prettier '**/*.{json,md,mdx,html,js,jsx,ts,tsx,mjs,cjs,mts,cts,yml}'",
"prettier:fix": "yarn prettier:all --write",
"prettier:check": "yarn prettier:all --list-different"
},
"repository": {
"type": "git",
"url": "git+https://github.com/graphile/gqlcheck.git"
},
"keywords": [
"graphql",
"validation",
"persisted",
"trusted",
"stored",
"queries",
"operations",
"documents",
"check",
"checkin",
"rules",
"checks",
"gql"
],
"author": "Benjie Gillam <code@benjiegillam.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/graphile/gqlcheck/issues"
},
"homepage": "https://github.com/graphile/gqlcheck#readme",
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@types/debug": "^4.1.12",
"@types/node": "^20.14.2",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"eslint": "8.x",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-tsdoc": "^0.3.0",
"eslint_d": "^13.1.2",
"jest-diff": "^29.7.0",
"prettier": "^3.3.2",
"typescript": "^5.5.1-rc"
},
"dependencies": {
"graphile-config": "^0.0.1-beta.9",
"graphql": "15.x || ^16.8.2 || ^17.0.0-alpha.3",
"json5": "^2.2.3",
"kjsonl": "^0.3.0",
"tslib": "^2.6.3"
},
"files": [
"dist"
],
"prettier": {
"proseWrap": "always"
}
}