0.0.0 • Published 4 years ago
eslint-plugin-template-no-unused-data v0.0.0
eslint-plugin-template-no-unused-data
未在template使用的数据则不需要在data中定义
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-template-no-unused-data:
npm install eslint-plugin-template-no-unused-data --save-devUsage
Add template-no-unused-data to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"template-no-unused-data"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"template-no-unused-data/rule-name": 2
}
}Supported Rules
- Fill in provided rules here
0.0.0
4 years ago