eslint-config-sensu-apollo

1.3.0 • Public • Published

eslint-config-sensu-apollo

This package provides Sensu's Apollo GraphQL ESLint settings as an extensible configuration.

version license build

Usage

First, add the package to your project.

yarn add --dev eslint eslint-config-sensu-apollo

# or with npm

npm install --save-dev eslint eslint-config-sensu-apollo

If you did not already have an .eslintrc file you can add one.

./node_modules/.bin/eslint --init

Finally, add the following to your .eslintrc.

{
  "extends": [
    "sensu",
    "sensu-apollo"
  ]
}

graphql-config

The plugin assumes that you have a .graphqlrc file present. See graphql-config for more details on it's options.

{
  "schemaPath": "schema.graphql",
  "includes": ["*.graphql"],
  "excludes": ["tmp/**"]
}

/eslint-config-sensu-apollo/

    Package Sidebar

    Install

    npm i eslint-config-sensu-apollo

    Weekly Downloads

    1

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    5.67 kB

    Total Files

    7

    Last publish

    Collaborators

    • jamesdphillips