eslint-config-dst
v1.0.5
Published
A set of opinionated ESLint (http://eslint.org) rules (all rules included) tailored for Vue.js projects
Downloads
11
Readme
eslint-config-dst
A set of opinionated ESLint (http://eslint.org) rules (all rules included) tailored for Vue.js projects
Usage
npm install --save-dev eslint-config-dst
- create a file named
.eslintrc.js
in your project:
module.exports = {
extends: ['dst'],
rules: {
// 其他配置
}
}
- create a file named
stylelint.config.js
in your project:
module.exports = {
extends: [
"eslint-config-dst/stylelint.config"
]
};
- 确保 Stylelint 和 Prettier 配置生效
需要:vscode安装插件
- eslint
- Prettier
- Stylelint >>> 特定版本 >>> v1.2.2 (使用最新版本有警告提示)
Effect
实现保存后自动格式化