@bdlite/lint

3.2.0 • Public • Published

@bdlite/link

一个包含 prettier,eslint,stylelint 的配置文件合集

A collection of configuration files containing prettier, eslint, stylelint

部分jsx规则详解

Use

in .eslintrc.js

module.exports = {
  extends: [require.resolve('@bdlite/link/lib/eslint')],
  rules: {
    // your rules
  },
};

in .eslintrc

{
  extends: [require.resolve('@bdlite/link/lib/eslint')],
  rules: {
    // your rules
  },
};

in .stylelintrc.js

module.exports = {
  extends: [require.resolve('@bdlite/lint/lib/stylelint')],
  rules: {
    // your rules
  },
};

in .prettierrc.js

const feLint = require('@bdlite/lint');

module.exports = {
  ...feLint.prettier,
};

tips

治理和雷达接入的时候需要把package.json内依赖的所有npm包都复制一份到项目根目录,否则yarn安装的时候没有安装到项目根目录的node_modules内,怀疑是别的包也依赖相同的包,并且版本冲突导致的

Package Sidebar

Install

npm i @bdlite/lint

Weekly Downloads

1

Version

3.2.0

License

ISC

Unpacked Size

14.2 kB

Total Files

6

Last publish

Collaborators

  • svichao
  • shirley-xie
  • doujiangxiaozi
  • cloudfly