0.1.0 • Published 4 years ago

@dotlim/eslint-config v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@dotlim/eslint-config

ESLint base configuration.

Principles

  1. 能够帮助发现代码错误的规则,全部开启
  2. 配置不应该依赖于某个具体项目,而应尽可能的合理
  3. 帮助保持团队的代码风格统一,而不是限制开发体验

Usage

const _ = require('lodash');

module.exports = _.merge(require('@dotlim/eslint-config').eslint, {
  rules: {
    'no-console': 'off',
    'no-debugger': 'warn',
  },
});

References