web-common-config

1.1.0 • Public • Published

web-common-config

web 开发常用配置项,包括:

安装方式

$ npm install web-common-config -D 

使用方式

  • eslint + prettier

在项目根目录下新建文件 .eslintrc.js(目前仅支持 js 格式文件)

// eslint-config 返回一个 json 对象,可自行扩展
module.exports = require('web-common-config/lib/eslint-config')
  • babel

在项目根目录下新建文件 .babelrc.js (目前仅支持 js 格式文件)

// babel-config 返回一个 json 对象,可自行扩展
module.exports = require('web-common-config/lib/babel-config')

升级说明

从 v1.0.2 开始,web-common-config 将去除对 babel-loader 的依赖,如果项目中需要 babel-loader,请自行安装。

Readme

Keywords

Package Sidebar

Install

npm i web-common-config

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

5.57 kB

Total Files

8

Last publish

Collaborators

  • delblank