JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q66364F
  • License BSD-3-Clause

LMC's ESLint config for javascript applications that use GraphQL and Apollo client.

Package Exports

  • @lmc-eu/eslint-config-graphql
  • @lmc-eu/eslint-config-graphql/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lmc-eu/eslint-config-graphql) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@lmc-eu/eslint-config-graphql

Install

npm install @lmc-eu/eslint-config-graphql -D

Usage

Create a .eslintrc.js file with the following contents:

module.exports = {
  extends: [
    // ... (base eslint config)
    '@lmc-eu/eslint-config-graphql',
  ],
};

The shareable config can be customized in your eslint configuration file.

Additionally don't forget to have .graphqlconfig file:

{
  // ...
  "schemaPath": "schema.json"
  // ...
}

Plugins

This configuration uses the following plugins: