Rules for Kiwi.com GraphQL
$ cnpm install eslint-plugin-kiwi-graphql
Rules for Kiwi.com GraphQL
You'll first need to install ESLint. Next, install this plugin:
yarn add --dev eslint-plugin-kiwi-graphql
Add kiwi-graphql
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"kiwi-graphql"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"kiwi-graphql/only-nullable-fields": "error"
}
}
Not sure about the AST? Try this: https://astexplorer.net/
Release new version:
npm version patch
- or -
npm version minor
- or -
npm version major
npm publish --access public
Copyright 2014 - 2016 © taobao.org |