@fmfe/eslint-config-fmfe-vue
v0.0.2
Published
Vuejs ESLint configuration of Followme Frontend Team Edit
Downloads
1
Readme
eslint-config-fmfe-vue
ESLint configuration of Followme Frontend Team Vuejs group, base on standard.
usage
edit configuration file:
$ touch .eslintrc.js
module.exports = {
extends: '@fmfe/fmfe-vue',
};
install
$ npm install eslint @fmfe/eslint-config-fmfe-vue -D
$ ./node_modules/.bin/eslint *.vue
or
$ npm install eslint @fmfe/eslint-config-fmfe-vue -g
$ eslint *.vue
rules
- 基本规则
- 附加规则
- 行尾必须加分号
- 缩进使用 4 个空格
- 要求使用 let 或 const 而不是 var
- 优先使用 const,其次才是 let
contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
license
this repo is released under the MIT License.