0.0.5 • Published 3 years ago

eslint-plugin-mini v0.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

eslint-plugin-mini

eslint plugin for mini program.

support codes:

  • wxml Wechat mini program tpl
  • wxs Wechat mini program wxs module
  • axml Alipay tpl
  • swan Baidu smart program tpl
  • js JavasSript code
  • json Includes app.json, component.json

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-mini:

$ npm install eslint-plugin-mini --save-dev

Usage

Add mini to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "mini"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "mini/xml-indent": [2, 4]
    }
}

Supported Rules