Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.