Style A:
// native module
const fs = require('fs')
const path = require('path')
// external module
const chalk = require('chalk')
const meow = require('meow')
// external helper
const util = require('./util')
const main = require('./')
Style B (不加换行):
const fs = require('fs')
const path = require('path')
const chalk = require('chalk')
const meow = require('meow')
const util = require('./util')
const main = require('./')
Style C (native module 首字母大写):
const Fs = require('fs')
const Path = require('path')
const chalk = require('chalk')
const meow = require('meow')
const util = require('./util')
const main = require('./')
推荐这三种 style 😀
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too