Installations
npm install eslint-plugin-suitescript
Developer
acdvs
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
18.20.3
NPM Version
10.7.0
Statistics
19 Stars
69 Commits
6 Forks
2 Watching
2 Branches
3 Contributors
Updated on 25 Nov 2024
Bundle Size
16.19 kB
Minified
4.53 kB
Minified + Gzipped
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
124,277
Last day
-42.9%
121
Compared to previous day
Last week
-15.5%
1,338
Compared to previous week
Last month
35.7%
4,991
Compared to previous month
Last year
36.7%
44,253
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
5
eslint-plugin-suitescript
NetSuite SuiteScript v1/v2 linting rules for ESLint
Installation
Installation per project is highly recommended:
1$ npm i -D eslint eslint-plugin-suitescript
Configuration
Add "suitescript" to the plugins section of your ESLint config file.
1"plugins": ["suitescript"]
Enable the rules that you would like to use.
1"rules": { 2 "suitescript/script-type": "error", 3 "suitescript/no-log-module": "error", 4}
Or use a predefined setting for quick setup (choose one).
1// All available rules 2"extends": ["plugin:suitescript/all"] 3 4// Just the recommended rules 5"extends": ["plugin:suitescript/recommended"]
List of supported rules
- suitescript/api-version: Enforces valid
@NApiVersion
tag values - suitescript/entry-points: Enforces inclusion of at least one entry point based on
@NScriptType
- suitescript/log-args: Enforces correct log arguments
- suitescript/module-vars: Enforces correct module identifiers for each configured module
- suitescript/no-amd-name: Restricts naming of AMD modules
- suitescript/no-extra-modules: Enforces equal number of module literals and identifiers
- suitescript/no-invalid-modules: Enforces valid SuiteScript modules in
define
array - suitescript/no-log-module: Restricts loading of the N/log module in favor of global
log
- suitescript/no-module-extensions: Restricts filename extensions on module dependencies
- suitescript/script-type: Enforces valid
@NScriptType
tag values
License
eslint-plugin-suitescript is licensed under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
branch protection is not maximal on development and all release branches
Details
- Info: 'allow deletion' disabled on branch 'master'
- Info: 'force pushes' disabled on branch 'master'
- Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'
- Info: 'stale review dismissal' is required to merge on branch 'master'
- Warn: required approving review count is 1 on branch 'master'
- Warn: codeowners review is not required on branch 'master'
- Info: 'last push approval' is required to merge on branch 'master'
- Warn: no status checks found to merge onto branch 'master'
- Info: PRs are required in order to make changes on branch 'master'
Reason
6 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
Reason
Found 4/21 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/npm-publish.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/acdvs/eslint-plugin-suitescript/npm-publish.yml/master?enable=pin
- Info: 0 out of 6 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
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
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 13 are checked with a SAST tool
Score
3.5
/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