Socket
Socket
Sign inDemoInstall

eslint-plugin-mediawiki

Package Overview
Dependencies
102
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-mediawiki

MediaWiki-specific linting rules, for use in MediaWiki core and extensions.


Version published
Weekly downloads
28K
decreased by-22.54%
Maintainers
4
Install size
6.50 MB
Created
Weekly downloads
 

Readme

Source

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.

{
  "plugins": [
    "mediawiki"
  ],
  "rules": {
    "mediawiki/msg-doc": "error"
  }
}

There are two shared configs: vue which contains all Vue-related rules, and common which includes all other rules.

{
  "plugins": [
    "mediawiki"
  ],
  "extends": [
    "plugin:mediawiki/common"
  ],
  "overrides": [
    {
      "files": [ "**/*.vue" ],
      "extends": [
        "plugin:mediawiki/vue"
      ]
    }
  ]
}

Rules

Development

npm install
npm test

License

Distributed under the MIT license. See LICENSE for details.

Keywords

FAQs

Last updated on 27 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc