Installations
npm install eslint-plugin-type-graphql
Releases
Unable to fetch releases
Developer
borremosch
Developer Guide
Module System
CommonJS
Min. Node Version
^10.12.0 || >=12.0.0
Typescript Support
No
Node Version
14.18.0
NPM Version
8.3.1
Statistics
17 Stars
70 Commits
3 Forks
3 Watching
1 Branches
4 Contributors
Updated on 09 Nov 2023
Languages
TypeScript (99.47%)
JavaScript (0.53%)
Total Downloads
Cumulative downloads
Total Downloads
330,197
Last day
-4.5%
529
Compared to previous day
Last week
-9%
3,016
Compared to previous week
Last month
-6.6%
13,607
Compared to previous month
Last year
42.4%
128,932
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Peer Dependencies
2
eslint-plugin-type-graphql
TypeGraphQL linting rules for ESLint
Installation
Install prerequisites:
1npm i -D eslint @typescript-eslint/parser
Install eslint-plugin-type-graphql:
1npm i -D eslint-plugin-type-graphql
Recommended configuration
Create an ESLint configuration and add the plugin rules like so:
1{ 2 "plugins": ["type-graphql"], 3 "extends": [ 4 "plugin:@typescript-eslint/recommended", 5 "plugin:@typescript-eslint/recommended-requiring-type-checking", 6 "plugin:type-graphql/recommended" 7 ], 8 "parser": "@typescript-eslint/parser" 9}
Provided rules
- invalid-decorated-type: Find errors in types that are decorated
- invalid-decorator-type: Find errors in decorators
- invalid-nullable-input-type: Prevent errors on nullable input types
- invalid-nullable-output-type: Prevent errors on nullable output types
- missing-decorator-type: Find missing type functions in decorators
- wrong-decorator-signature: Find mismatches between decorators and decorated types
License
This plugin is licensed under the Apache 2.0 license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/borremosch/eslint-plugin-type-graphql/node.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/borremosch/eslint-plugin-type-graphql/node.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/node.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/borremosch/eslint-plugin-type-graphql/node.yml/main?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
- Info: 1 out of 1 npmCommand dependencies pinned
Reason
Found 4/18 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/node.yml:1
- Info: no jobLevel write permissions found
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 23 are checked with a SAST tool
Reason
13 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-fj58-h2fr-3pp2
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
2.9
/10
Last Scanned on 2024-11-25
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