@dmail/shared-config

2020-01-16

@dmail/shared-config

Share configuration of eslint, babel, prettier and vscode config amongst projects

shared-config

Share configuration of eslint, babel, prettier and vscode config amongst projects

Usage

Add this in your package.json

{
  "devDependencies": {
    "@dmail/shared-config": "6.0.0"
  }
}

Eslint config sharing

Create eslintrc.jsat the root of your project

module.exports = require("@dmail/shared-config/dist/eslint.js").config

Prettier config sharing

Create prettier.config.jsat the root of your project

module.exports = require("@dmail/shared-config/dist/prettier.js").config

Babel config sharing

Create .babelrcat the root of your project

{
    "presets": ["@dmail/shared-config/dist/babel-preset.js"]
}

Note: I plan to use babel.config.js, this is tracked in https://github.com/dmail/shared-config/issues/10

以上是 @dmail/shared-config 的使用教程帮助文档。


上一篇:@commitlint/config-conventional
下一篇:@crpt/react-data-grid
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章
暂无相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部