Skip to content
forked from umijs/fabric

💪严格但是不严苛的编码规范

Notifications You must be signed in to change notification settings

liran19960215/fabric

 
 

Repository files navigation

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,
};

About

💪严格但是不严苛的编码规范

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 57.0%
  • JavaScript 34.1%
  • Less 6.7%
  • EJS 2.2%