Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
eslint-plugin-wxml
Advanced tools
## 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
eslint.config.mjs
)Use eslint.config.mjs
file to configure rules. This is the default in ESLint v9, but can be used starting from ESLint v8.57.0. See also: https://eslint.org/docs/latest/use/configure/configuration-files-new.
Example eslint.config.mjs:
import wxml from "eslint-plugin-wxml";
import wxmlParser from "@wxml/parser";
export default [
{
files: ["**/*.wxml"],
plugins: {
wxml: wxml,
},
languageOptions: {
parser: wxmlParser,
},
rules: {
"wxml/report-wxml-syntax-error": "error",
},
},
];
.eslintrc
)Use .eslintrc.*
file to configure rules. See also: https://eslint.org/docs/v8.x/use/configure/configuration-files.
+ "overrides": [
+ {
+ "files": ["*.wxml"],
+ "rules": {
+ "wxml/report-wxml-syntax-error": "error"
+ },
+ "plugins": ["wxml"],
+ "processor": "wxml/wxml",
+ "parser": "@wxml/parser"
+ }
+ ],
Missing your wanted rule ? please report it as a new github issue, thanks !
Copyright (c) 2021-present, Lei Chen
FAQs
eslint plugin for wxml
The npm package eslint-plugin-wxml receives a total of 26 weekly downloads. As such, eslint-plugin-wxml popularity was classified as not popular.
We found that eslint-plugin-wxml demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.