hunnble / eslint-plugin-wxml

ESLint plugin for wxml

Home Page:https://eslint-plugin-wxml.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-wxml

npm version npmmirror version CI GitHub license PRs Welcome Twitter Follow Author

A ESLint plugin to lint wxml files.

Show Case

vscode eslint-plugin-wxml

Installation

## npm
$ npm install eslint-plugin-wxml --save-dev

## cnpm (for china user)
$ cnpm install eslint-plugin-wxml --save-dev

## pnpm
$ pnpm add eslint-plugin-wxml -D

## yarn
$ yarn add eslint-plugin-wxml -D

Basic Usage

change your eslintrc config

.eslintrc .eslintrc.yml .eslinrc.json .eslintrc.js

+  "overrides": [
+    {
+      "files": ["*.wxml"],
+      "rules": {
+        "wxml/report-wxml-syntax-error": "error"
+      },
+      "plugins": ["wxml"],
+      "processor": "wxml/wxml",
+      "parser": "@wxml/parser"
+    }
+  ],

Missing Rule

Missing your wanted rule ? please report it as a new github issue, thanks !

Documentation

See the official website

License

MIT

Copyright (c) 2021-present, Lei Chen

About

ESLint plugin for wxml

https://eslint-plugin-wxml.js.org

License:MIT License


Languages

Language:JavaScript 96.7%Language:Vue 2.9%Language:Stylus 0.4%