Gathering detailed insights and metrics for eslint-plugin-relay-ds
Gathering detailed insights and metrics for eslint-plugin-relay-ds
Gathering detailed insights and metrics for eslint-plugin-relay-ds
Gathering detailed insights and metrics for eslint-plugin-relay-ds
A plugin for the code linter ESLint to lint specific details about Relay.
npm install eslint-plugin-relay-ds
Typescript
Module System
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
104 Stars
267 Commits
50 Forks
17 Watchers
5 Branches
33 Contributors
Updated on Jul 03, 2025
Latest Version
1.9.0
Package Id
eslint-plugin-relay-ds@1.9.0
Unpacked Size
95.45 kB
Size
15.46 kB
File Count
17
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
eslint-plugin-relay
is a plugin for ESLint to catch common problems in code using Relay early.
npm i --save-dev eslint-plugin-relay
"relay"
to your eslint plugins
section."relay/graphql-syntax": "error"
to your eslint rules
section, see the example for all rules.Example .eslintrc.js:
1module.exports = { 2 // Other eslint properties here 3 rules: { 4 'relay/graphql-syntax': 'error', 5 'relay/compat-uses-vars': 'warn', 6 'relay/graphql-naming': 'error', 7 'relay/generated-flow-types': 'warn', 8 'relay/must-colocate-fragment-spreads': 'warn', 9 'relay/no-future-added-value': 'warn', 10 'relay/unused-fields': 'warn', 11 'relay/function-required-argument': 'warn', 12 'relay/hook-required-argument': 'warn' 13 }, 14 plugins: ['relay'] 15};
You can also enable all the recommended or strict rules at once.
Add plugin:relay/recommended
or plugin:relay/strict
in extends
:
1{ 2 "extends": [ 3 "plugin:relay/recommended" 4 ] 5}
The following rules support suppression within graphql tags:
Supported rules can be suppressed by adding # eslint-disable-next-line relay/name-of-rule
to the preceding line:
1graphql`fragment foo on Page { 2 # eslint-disable-next-line relay/must-colocate-fragment-spreads 3 ...unused1 4}`
Note that only the eslint-disable-next-line
form of suppression works. eslint-disable-line
doesn't currently work until graphql-js provides support for parsing Comment nodes in their AST.
We actively welcome pull requests, learn how to contribute.
eslint-plugin-relay
is MIT licensed.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 9/10 approved changesets -- score normalized to 9
Reason
7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
6 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More