Skip to content

ESLint configuration of Followme Frontend Team Node.js group, base on standard.

License

Notifications You must be signed in to change notification settings

fmfe/eslint-config-fmfe-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-fmfe-nodejs

ESLint configuration of Followme Frontend Team Node.js group, base on standard.

usage

edit configuration file:

$ touch .eslintrc.js
module.exports = {
  extends: '@fmfe/fmfe-nodejs',
};

install

$ npm install eslint @fmfe/eslint-config-fmfe-nodejs -D
$ ./node_modules/.bin/eslint *.js

or

$ npm install eslint @fmfe/eslint-config-fmfe-nodejs -g
$ eslint *.js

rules

  • 基本规则
  • 附加规则
    • 行尾必须加分号
    • 缩进使用 4 个空格
    • 要求使用 let 或 const 而不是 var
    • 优先使用 const,其次才是 let

contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

license

this repo is released under the MIT License.

About

ESLint configuration of Followme Frontend Team Node.js group, base on standard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published