yllon-eslint-plugin
v1.0.1
Published
yllon自定义eslint插件
Downloads
4
Readme
yllon-eslint-plugin
安装
除了本包,你需要同时安装 ESlint
$ npm install yllon-eslint-plugin eslint --save-dev
使用
引入插件
// .eslintrc.cjs
module.exports = {
plugin: ['yllon-eslint-config'],
rules: {
'yllon-eslint-plugin/no-http-url': 'warn',
},
};
使用 presets
// .eslintrc.cjs
module.exports = {
extends: 'plugin:yllon-eslint-plugin/commands',
};
支持的规则
no-http-url
使用 HTTPS 协议头的 URL,而不是 HTTP