Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@umijs/fabric

2.3.1 • Public • Published

umi-fabric

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

A collection of configuration files containing prettier, eslint, stylelint

Use

in .eslintrc.js

module.exports = {
  extends: [require.resolve('@umijs/fabric/dist/eslint')],
 
  // in antd-design-pro
  globals: {
    ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true,
    page: true,
  },
 
  rules: {
    // your rules
  },
};

in .stylelintrc.js

module.exports = {
  extends: [require.resolve('@umijs/fabric/dist/stylelint')],
  rules: {
    // your rules
  },
};

in .prettierrc.js

const fabric = require('@umijs/fabric');
 
module.exports = {
  ...fabric.prettier,
};
 

Install

npm i @umijs/fabric

DownloadsWeekly Downloads

20,607

Version

2.3.1

License

ISC

Unpacked Size

12.8 kB

Total Files

13

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar