0.1.0 • Published 2 months ago
@ifanrx/eslint-plugin v0.1.0
@ifanrx/eslint-plugin
💼 Configurations enabled in.\
🔧 Automatically fixable by the --fix
CLI option.
Name | Description | 💼 | 🔧 |
---|---|---|---|
no-use-wx | Use uni instead of wx | 🔧 | |
require-create-faas | Enforce the use of createFaaS function in cloud function | ||
vue-pascal-case-imports | Vue component import names should be in PascalCase. | 🔧 |
新增 rule
pnpm new:rule
自动生成 rule 文档
pnpm update:eslint-docs
允许自动化测试用例
pnpm test
Usage
const {init} = require('@ifanrx/eslint-config-standard/init')
module.exports = init({
root: true,
extends: ['plugin:@ifanrx/faas', ...],
})
禁用规则
const {init} = require('@ifanrx/eslint-config-standard/init')
module.exports = init({
root: true,
extends: ['plugin:@ifanrx/faas', ...],
rules: {
'@ifanrx/require-create-faas': 'off',
},
})