0.7.0 • Published 9 days ago

eslint-plugin-mediawiki v0.7.0

Weekly downloads
4,065
License
MIT
Repository
github
Last release
9 days ago

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.

0.7.0

9 days ago

0.6.0

2 months ago

0.5.0

1 year ago

0.4.0

2 years ago

0.3.0

3 years ago

0.2.7

3 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago