Installations
npm install eslint-plugin-mediawiki
Developer
wikimedia
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
18.17.0
NPM Version
9.6.7
Statistics
1 Stars
89 Commits
3 Forks
18 Watching
1 Branches
32 Contributors
Updated on 10 Oct 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
1,825,874
Last day
-28.9%
1,655
Compared to previous day
Last week
57.4%
21,564
Compared to previous week
Last month
117.5%
61,736
Compared to previous month
Last year
101.7%
688,352
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
1
eslint-plugin-mediawiki
MediaWiki-specific linting rules, for use in MediaWiki core and extensions.
Usage
If you are developing in MediaWiki you should be using eslint-config-wikimedia which includes this plugin.
Add mediawiki
to the plugins section of your .eslintrc
configuration file, then enable the required rules.
1{ 2 "plugins": [ 3 "mediawiki" 4 ], 5 "rules": { 6 "mediawiki/msg-doc": "error" 7 } 8}
There are two shared configs: vue
which contains all Vue-related rules, and common
which includes all other rules.
1{ 2 "plugins": [ 3 "mediawiki" 4 ], 5 "extends": [ 6 "plugin:mediawiki/common" 7 ], 8 "overrides": [ 9 { 10 "files": [ "**/*.vue" ], 11 "extends": [ 12 "plugin:mediawiki/vue" 13 ] 14 } 15 ] 16}
Rules
mediawiki/class-doc
mediawiki/msg-doc
mediawiki/no-extended-unicode-identifiers
mediawiki/no-nodelist-unsupported-methods
mediawiki/no-vue-dynamic-i18n
mediawiki/valid-package-file-require
mediawiki/vue-exports-component-directive
Development
1npm install 2npm test
License
Distributed under the MIT license. See LICENSE for details.
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: MIT License: LICENSE:0
Reason
Found 26/29 approved changesets -- score normalized to 8
Reason
3 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-952p-6rrq-rcjv
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/wikimedia/eslint-plugin-mediawiki/nodejs.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/wikimedia/eslint-plugin-mediawiki/nodejs.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/wikimedia/eslint-plugin-mediawiki/nodejs.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
1 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/nodejs.yml:1
- Info: no jobLevel write permissions found
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 30 are checked with a SAST tool
Score
4.6
/10
Last Scanned on 2024-11-18
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