Package Exports
- eslint-plugin-relay
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 (eslint-plugin-relay) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-relay

eslint-plugin-relay is a plugin for ESLint to catch common problems in code using Relay early.
Install
npm i --save-dev eslint-plugin-relay
How To Use
- Add
"relay"to your eslintpluginssection. - Add the relay rules such as
"relay/graphql-syntax": "error"to your eslintrulessection, see the example for all rules.
Example .eslintrc.js:
module.exports = {
// Other eslint properties here
rules: {
'relay/graphql-syntax': 'error',
'relay/compat-uses-vars': 'warn',
'relay/graphql-naming': 'error',
'relay/generated-flow-types': 'warn',
'relay/no-future-added-value': 'warn',
'relay/unused-fields': 'warn'
},
plugins: ['relay']
};Contribute
We actively welcome pull requests, learn how to contribute.
License
eslint-plugin-relay is BSD licensed. We also provide an additional patent grant.